ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11"
Ashish SHUKLA
wahjava at gmail.com
Wed Jun 2 14:30:07 UTC 2010
The following reply was made to PR ports/146979; it has been noted by GNATS.
From: wahjava at gmail.com (Ashish SHUKLA)
To: Anonymous <swell.k at gmail.com>
Cc: keramida at freebsd.org (Giorgos Keramidas), Paul Hoffman <phoffman at proper.com>, bug-followup at freebsd.org
Subject: Re: ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11"
Date: Wed, 02 Jun 2010 19:59:28 +0530
--=-=-=
Content-Transfer-Encoding: quoted-printable
Hi Anonymous,
Sorry for the late reply.
Anonymous writes:
> wahjava at gmail.com (Ashish SHUKLA) writes:
>> Anonymous writes:
>>=20
>> [...]
>>=20
>>> I'm aware that ports should use ${PTHREAD_LIBS} (-pthread) but it may be
>>> because of linking flags, e.g. `-nostdlib'.
>>=20
>> Can you confirm this, and may be generate a patch wiping off '-nostdlib'
>> instead, since build process is adding all other libraries manually.
> It's not clear what else GCC skips from reading manpage and whether it
> affects -pthread option.
> $ echo 'void main(void) { }' | gcc -v -xc -o/dev/null - -pthread |& fgr=
ep ld-elf
> /usr/bin/ld --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1 -o/=
dev/null /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib -L/=
usr/lib /var/tmp//cc7qVe4q.o -lgcc --as-needed -lgcc_s --no-as-needed -lpth=
read -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/li=
b/crtn.o
> $ echo 'void main(void) { }' | gcc -v -xc -o/dev/null - -pthread -nostd=
lib |& fgrep ld-elf
> /usr/bin/ld --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1 -o/=
dev/null -L/usr/lib -L/usr/lib /var/tmp//ccOFKiwN.o
> $ echo 'void main(void) { }' | gcc45 -v -xc -o/dev/null - -pthread |& f=
grep ld-elf
> .../4.5.1/collect2 --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.s=
o.1 -o /dev/null /usr/lib/crt1.o /usr/lib/crti.o .../4.5.1/crtbegin.o -L...=
/4.5.1 -L.../4.5.1/../../../../../x86_64-portbld-freebsd9.0/lib -L.../4.5.1=
/../../.. /var/tmp//cc3SBfLM.o -lgcc --as-needed -lgcc_s --no-as-needed -lp=
thread -lc -lgcc --as-needed -lgcc_s --no-as-needed .../4.5.1/crtend.o /usr=
/lib/crtn.o
> $ echo 'void main(void) { }' | gcc45 -v -xc -o/dev/null - -pthread -nos=
tdlib |& fgrep ld-elf
> .../4.5.1/collect2 --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.s=
o.1 -o /dev/null -L.../4.5.1 -L.../4.5.1/../../../../../x86_64-portbld-free=
bsd9.0/lib -L.../4.5.1/../../.. /var/tmp//cc0OdbQg.o
> Note: -lpthread is only present when -nostdilb is *not* specified.
So the problem is the exclusion of 'pthread_*' routines from '-lgcc -lgcc_s'
of GCC 3.4 (or whatever version ships with 6.x) and GCC 4.5 ? or is it
exclusion of those routines from 'libc' of 9.x and 6.x ?
> I'm not sure why we should invent even more hacky way to solve -nostdlib
> issue. I think my REINPLACE_CMD hack is simple enough. And we can
> probably drop BROKEN on 6.x, too.
> The interesting question is how other ports that have -nostdlib but need
> threading support handle it.
Also I've got a diff related to Japanese IM (Canna) support in Emacs from a
contributor, I'll send another diff for that. So please delay committing the
new port.
Thanks
=2D-=20
Ashish SHUKLA
Sent via Gnus from GNU Emacs
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
iQIcBAEBCgAGBQJMBmrIAAoJEMdGz6nnT6SwrDcQAKmrm/DJG8DLLYoO+LP4mgmH
oEWK9NmSqdTJuT8OqC6pcJQSJr9lwkknidY5oW+UVB22DNQ0i322WF2xjUr7oK4S
UE8AkRm4ik7Awh0utuQSbNTfjPc4ezT2i/WdaebBWFUmLKvCVurA24SfH31zqL3i
VjaFZ0VIA14F6r4Yt06AJLcOf4rwG99vfJLaLY6cmyQNSpaP/h+2Y04V3+G+Wd+S
Q8HSlk7bvc1cpYdlP+K+eRkANuTuFbtNgIjXgjPPmaT2qSRYyyQ1jeFnC5Ptg7Ok
pDqUxpuqsoT1KiV9edwVG28VtVm/VkxBH9gt4dfbNM2BlU6d5MGRrR085vSGSGT8
KvpTuovSDJkbQKPdZ0lEcaSTvxne61Yn/88SL/yoV+wxq3+7uML8aMsq2wlWY+Od
+v1jQgxGCEzXdcsb6yj/Elaa3FnWZLd+i6hzp6Vcnxjf+5io/HbGOjrKc4D8Tq5E
H9KP5cTKMMlAURxuZVwKEXvquIElxXFN+fWFHj3PGfFg0PkSHayvEY6knd4MB4kl
+hwMWMotSS9E5ruMxZWktZV216rt80ETd9cC1x0UcWnOZkgBVV4wIUpOpbVW70y9
ba9r3RRJFtqfLjojbDbShwa2K7o9k/oh1VyGrTpeRpaA3lDxFw8lcXMLWo70RBLI
1nrqCZr+MUo4pk4+vI7w
=RtLp
-----END PGP SIGNATURE-----
--=-=-=--
More information about the freebsd-ports-bugs
mailing list