Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33292 - bind-tools 9.2.3 fails to compile with fstack-protector
Summary: bind-tools 9.2.3 fails to compile with fstack-protector
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stewart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 03:07 UTC by Roy Marples (RETIRED)
Modified: 2005-01-25 07:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/portage/net-dns/bind/files/bind-9.2.3-bin-tests-db-t_db.c.patch (bind-9.2.3-bin-tests-db-t_db.c.patch,3.82 KB, patch)
2003-11-28 17:03 UTC, Scott Taylor (RETIRED)
Details | Diff
bind-9.2.3-r1 (bind-9.2.3-r1.ebuild.diff,506 bytes, patch)
2003-11-28 17:05 UTC, Scott Taylor (RETIRED)
Details | Diff
bind-9.2.2-r4 (bind-9.2.2-r4.ebuild.diff,546 bytes, patch)
2003-11-28 17:05 UTC, Scott Taylor (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2003-11-12 03:07:19 UTC
bind-tools 9.2.3 fails to compile with fstack-protector

Removing fstack-protector enables a clean compile

Reproducible: Always
Steps to Reproduce:
1. ensure you have gcc 3.3.2-r2
2. add -fstack-protector to your CFLAGS
3. emerge bind-tools

Actual Results:  
gcc  -march=pentium4 -msse2 -mfpmath=sse -O2 -pipe -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -falign-labels=1 -falign-loops=16
-falign-jumps=16 -fomit-frame-pointer -fstack-protector
-I/var/tmp/portage/bind-tools-9.2.3/work/bind-9.2.3 -I./include
-I/var/tmp/portage/bind-tools-9.2.3/work/bind-9.2.3/lib/dns/include
-I../../lib/dns/include -I../../lib/dns/sec/dst/include
-I/var/tmp/portage/bind-tools-9.2.3/work/bind-9.2.3/lib/isc/include
-I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include
-I../../lib/isc/nothreads/include   -DVERSION=\"9.2.3\"   -W -Wall
-Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c dighost.c
gcc -march=pentium4 -msse2 -mfpmath=sse -O2 -pipe -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -falign-labels=1 -falign-loops=16
-falign-jumps=16 -fomit-frame-pointer -fstack-protector -o dig dig.o dighost.o 
libdns.so   libisc.so -lnsl
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
dig: hidden symbol `__stack_smash_handler' in
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) is
referenced by DSO
collect2: ld returned 1 exit status
make: *** [dig] Error 1
 
!!! ERROR: net-dns/bind-tools-9.2.3 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! make failed in /bin/dig


Expected Results:  
Compiled cleanly

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8,
2.6.0-test9-mm1)=================================================================
System uname: 2.6.0-test9-mm1 i686 Mobile Intel(R) Celeron(R) CPU 1.60GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -msse2 -mfpmath=sse -O2 -pipe -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -falign-labels=1 -falign-loops=16
-falign-jumps=16 -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -msse2 -mfpmath=sse -O2 -pipe -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -falign-labels=1 -falign-loops=16
-falign-jumps=16 -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod
mpeg ncurses pdflib png quicktime spell truetype xml2 xv zlib directfb alsa gdbm
berkdb slang readline aalib svga java X sdl gpm tcpd pam ssl perl python esd
imlib oggvorbis gnome gtk opengl mozilla acpi apache2 bluetooth bonobo cdr dga
dv dvd ethereal evo faad fam fbcon ffmpeg gd gphoto2 gstreamer gtk2 gtkhtml ipv6
javascript justify lcd libgda maildir md5sum mdb moznocompose moznoirc moznomail
nptl odbc offensive pcmcia pda php pic pnp sasl sse tcltk threads tiff usb v4l
X509 xvid -apm -arts -kde -motif nls -qt -xmms"
Comment 1 Peter Gantner (a.k.a. nephros) 2003-11-12 13:25:58 UTC
Yepp. Me too! :)
Although that somehow smells like a feature, not a bug(?)
Comment 2 Stewart (RETIRED) gentoo-dev 2003-11-13 14:13:30 UTC
Sounds rather like an upstream problem to me. Have you tried contacting ISC or one of the BIND*-USERS mailing lists?
Comment 3 Roy Marples (RETIRED) gentoo-dev 2003-11-14 01:43:46 UTC
Not yet, but I will if you like.
Comment 4 Scott Taylor (RETIRED) gentoo-dev 2003-11-28 16:58:51 UTC
test directories lack main() functions. revised ebuilds and patch file to follow.
Comment 5 Scott Taylor (RETIRED) gentoo-dev 2003-11-28 17:03:12 UTC
Created attachment 21425 [details, diff]
/usr/portage/net-dns/bind/files/bind-9.2.3-bin-tests-db-t_db.c.patch

applies to 9.2.2 and 9.2.3
Comment 6 Scott Taylor (RETIRED) gentoo-dev 2003-11-28 17:05:03 UTC
Created attachment 21426 [details, diff]
bind-9.2.3-r1
Comment 7 Scott Taylor (RETIRED) gentoo-dev 2003-11-28 17:05:53 UTC
Created attachment 21427 [details, diff]
bind-9.2.2-r4
Comment 8 Scott Taylor (RETIRED) gentoo-dev 2003-11-28 17:09:28 UTC
The initial bug here should be fixed by the latest move-propolice-to-glibc patch applied in the recent update of gcc. Once it gets past that point, the new binutils properly fails to compile these test programs that have no main(), which the attached patches fix.
Comment 9 Roy Marples (RETIRED) gentoo-dev 2005-01-25 07:33:18 UTC
Fixed now thanks :)

(sorry about the delay - I completely forgot about this bug)