From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 2 14:30:07 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6A2F106566B for ; Wed, 2 Jun 2010 14:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 954898FC18 for ; Wed, 2 Jun 2010 14:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o52EU7YY088934 for ; Wed, 2 Jun 2010 14:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o52EU7q1088929; Wed, 2 Jun 2010 14:30:07 GMT (envelope-from gnats) Date: Wed, 2 Jun 2010 14:30:07 GMT Message-Id: <201006021430.o52EU7q1088929@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: wahjava@gmail.com (Ashish SHUKLA) Cc: Subject: Re: ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ashish SHUKLA List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2010 14:30:07 -0000 The following reply was made to PR ports/146979; it has been noted by GNATS. From: wahjava@gmail.com (Ashish SHUKLA) To: Anonymous Cc: keramida@freebsd.org (Giorgos Keramidas), Paul Hoffman , bug-followup@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@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----- --=-=-=--