<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>34125</bug_id>
          
          <creation_ts>2003-11-22 11:26 0000</creation_ts>
          <short_desc>dietlibc 0.24 fails to compile</short_desc>
          <delta_ts>2005-07-17 13:06:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>leroutier@gmail.com</reporter>
          <assigned_to>pappy@gentoo.org</assigned_to>
          <cc>gcc-porting@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-22 11:26:25 0000</bug_when>
            <thetext>additionaly to the compilation problem, it seems it uses an old/deprecated
syntax for the &apos;head&apos; tool as seen in warnings :

head: option </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-22 11:26:25 0000</bug_when>
            <thetext>additionaly to the compilation problem, it seems it uses an old/deprecated
syntax for the &apos;head&apos; tool as seen in warnings :

head: option « -1 » est obsolète; utiliser « -n 1 »
Pour en savoir davantage, faites: « head --help ».

Reproducible: Always
Steps to Reproduce:
1. emerge dietlibc
2.
3.

Actual Results:  
ar cru bin-i386/libpthread.a bin-i386/pthread_atfork.o
bin-i386/pthread_attr_getdetachstate.o bin-i386/pthread_attr_getinheritsched.o
bin-i386/pthread_attr_getschedparam.o bin-i386/pthread_attr_getschedpolicy.o
bin-i386/pthread_attr_getscope.o bin-i386/pthread_attr_getstackaddr.o
bin-i386/pthread_attr_getstacksize.o bin-i386/pthread_attr_setdetachstate.o
bin-i386/pthread_attr_setinheritsched.o bin-i386/pthread_attr_setschedparam.o
bin-i386/pthread_attr_setschedpolicy.o bin-i386/pthread_attr_setscope.o
bin-i386/pthread_attr_setstackaddr.o bin-i386/pthread_attr_setstacksize.o
bin-i386/pthread_cleanup.o bin-i386/pthread_condattr_getshared.o
bin-i386/pthread_condattr_setshared.o bin-i386/pthread_cond_broadcast.o
bin-i386/pthread_cond_destroy.o bin-i386/pthread_cond_init.o
bin-i386/pthread_cond_signal.o bin-i386/pthread_cond_timedwait.o
bin-i386/pthread_cond_wait.o bin-i386/pthread_create.o bin-i386/pthread_detach.o
bin-i386/pthread_dns_cruft.o bin-i386/pthread_equal.o bin-i386/pthread_errno.o
bin-i386/pthread_fdglue2.o bin-i386/pthread_fflush.o bin-i386/pthread_fgetc.o
bin-i386/pthread_flockfile.o bin-i386/pthread_fputc.o
bin-i386/pthread_funlockfile.o bin-i386/pthread_internal.o
bin-i386/pthread_join.o bin-i386/pthread_key.o bin-i386/pthread_kill.o
bin-i386/pthread_mutexattr_getkind_np.o bin-i386/pthread_mutexattr_init.o
bin-i386/pthread_mutexattr_setkind_np.o bin-i386/pthread_mutex_destroy.o
bin-i386/pthread_mutex_init.o bin-i386/pthread_mutex_lock.o
bin-i386/pthread_mutex_trylock.o bin-i386/pthread_mutex_unlock.o
bin-i386/pthread_self.o bin-i386/pthread_semaphore_destroy.o
bin-i386/pthread_semaphore_getvalue.o bin-i386/pthread_semaphore_init.o
bin-i386/pthread_semaphore_misc.o bin-i386/pthread_semaphore_post.o
bin-i386/pthread_semaphore_trywait.o bin-i386/pthread_semaphore_wait.o
bin-i386/pthread_setcancelstate.o bin-i386/pthread_setschedparam.o
bin-i386/pthread_sigaction.o bin-i386/pthread_sigmask.o
bin-i386/pthread_spinlock.o bin-i386/pthread_sys_alloc.o
bin-i386/pthread_sys_close.o bin-i386/pthread_sys_create.o
bin-i386/pthread_sys_fcntl.o bin-i386/pthread_sys_fdatasync.o
bin-i386/pthread_sys_fsync.o bin-i386/pthread_sys_logging.o
bin-i386/pthread_sys_msync.o bin-i386/pthread_sys_nanosleep.o
bin-i386/pthread_sys_open.o bin-i386/pthread_sys_pause.o
bin-i386/pthread_sys_read.o bin-i386/pthread_sys_sigsuspend.o
bin-i386/pthread_sys_sleep.o bin-i386/pthread_sys_tcdrain.o
bin-i386/pthread_sys_waitpid.o bin-i386/pthread_sys_write.o bin-i386/__testandset.o
head: option « -1 » est obsolète; utiliser « -n 1 »
Pour en savoir davantage, faites: « head --help ».
gcc -Iinclude -march=athlon-xp -O3 -pipe -fomit-frame-pointer -nostdlib -o
bin-i386/diet bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a
bin-i386/dyn_stop.o
-DDIETHOME=\&quot;/usr/portage/tmp/portage/dietlibc-0.24/work/dietlibc-0.24\&quot;
-DVERSION=\&quot;dietlibc-\&quot; -lgcc
head: option « -1 » est obsolète; utiliser « -n 1 »
Pour en savoir davantage, faites: « head --help ».
gcc -Iinclude -march=athlon-xp -O3 -pipe -fomit-frame-pointer -nostdlib -o
bin-i386/diet-i bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a
bin-i386/dyn_stop.o -DDIETHOME=\&quot;/usr/diet\&quot; -DVERSION=\&quot;dietlibc-\&quot;
-DINSTALLVERSION -lgcc
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x6f):
dans la fonction « __guard_setup »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2027:
undefined reference to `close&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xd9):
dans la fonction « __stack_smash_handler »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2050:
undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xea):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2051:
undefined reference to `sigdelset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x100):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2052:
undefined reference to `sigprocmask&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x118):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058:
undefined reference to `__progname&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x12c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058:
undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1b6):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2066:
undefined reference to `socket&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1f2):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2072:
undefined reference to `strncpy&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x225):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2075:
undefined reference to `sendto&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x244):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2084:
undefined reference to `memset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x252):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2085:
undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x27b):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2088:
undefined reference to `sigaction&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x280):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089:
undefined reference to `getpid&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x28c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089:
undefined reference to `kill&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x2b7):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2092:
undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x327):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2061:
undefined reference to `strncat&apos;
collect2:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x6f):
dans la fonction « __guard_setup »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2027:
undefined reference to `close&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xd9):
dans la fonction « __stack_smash_handler »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2050:
undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xea):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2051:
undefined reference to `sigdelset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x100):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2052:
undefined reference to `sigprocmask&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x118):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058:
undefined reference to `__progname&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x12c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058:
undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1b6):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2066:
undefined reference to `socket&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1f2):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2072:
undefined reference to `strncpy&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x225):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2075:
undefined reference to `sendto&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x244):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2084:
undefined reference to `memset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x252):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2085:
undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x27b):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2088:
undefined reference to `sigaction&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x280):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089:
undefined reference to `getpid&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x28c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089:
undefined reference to `kill&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x2b7):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2092:
undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x327):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2061:
undefined reference to `strncat&apos;
collect2: ld a retourné 1 code d&apos;état d&apos;exécution
make: *** [bin-i386/diet-i] Erreur 1
make: *** Attente des tâches non terminées....
ld a retourné 1 code d&apos;état d&apos;exécution
make: *** [bin-i386/diet] Erreur 1
 
!!! ERROR: dev-libs/dietlibc-0.24 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! emake failed


Expected Results:  
compiled flawlessly

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox buildpkg userpriv strict digest&quot;
GENTOO_MIRRORS=&quot;http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/usr/portage/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage/&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;-ppc nls gtk -wavelan -freewnn tcpd -sparc -selinux oss -zeo jpeg -3dfx
opengl -xosd -matrox -informix -gb ethereal apm -bindist -nocd gdbm cups xv
oggvorbis -scanner ncurses -gpm -arts samba java usb -qt -nas pdflib -fbcon
flash -snmp mikmod apache2 gif -emacs -afs spell ldap -lirc -junit -fastcgi -gps
-pcmcia -maildir -wxwindows -xinerama gtkhtml -pnp ipv6 libwww gtk2 -mcal
-memlimit encode libgda gnomedb -oci8 -jack foomaticdb -atlas sdl X berkdb svga
-ruby -imap png -firebird ppds -Xaw3d -guile evo truetype gstreamer -odbc xml2
pam gd innodb -ev6 gphoto2 doc -debug python -kerberos -jikes -mbox -lcms -krb4
-dedicated zlib -motif cdr videos slang -kde mysql -voodoo3 -imlib -directfb
-static avi -curl -acl -hppa -trusted postgres plotutils -cjk -prelude mpeg
-alpha -icc crypt -wmf -arm dvdr esd libg++ -build -leim sse -freetds -tcltk
-xface acpi -alsa -canna xml -dga mmx -tetex -ladcca x86 tiff -aalib -mule perl
quicktime mad -nocardbus -slp readline -mpi -ggi 3dnow -nhc98 mozilla -cscope
gnome ssl -mips dvd -bootstrap -socks5 -dvb -xmms sasl joystick bonobo pda
threads snmp tetex&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-22 13:13:49 0000</bug_when>
            <thetext>Give it 30 minutes, then resync and try it again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-22 17:43:18 0000</bug_when>
            <thetext>waited several hours, did a emerge sync then i retried to emerge dietlibc, still  breaks but now on gcc, not ar :

gcc -Iinclude -march=athlon-xp -O3 -pipe -fomit-frame-pointer -nostdlib -o bin-i386/diet-i bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a bin-i386/dyn_stop.o -DDIETHOME=\&quot;/usr/diet\&quot; -DVERSION=\&quot;dietlibc-0.24\&quot; -DINSTALLVERSION -lgcc
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x6f): dans la fonction </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-22 17:43:18 0000</bug_when>
            <thetext>waited several hours, did a emerge sync then i retried to emerge dietlibc, still  breaks but now on gcc, not ar :

gcc -Iinclude -march=athlon-xp -O3 -pipe -fomit-frame-pointer -nostdlib -o bin-i386/diet-i bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a bin-i386/dyn_stop.o -DDIETHOME=\&quot;/usr/diet\&quot; -DVERSION=\&quot;dietlibc-0.24\&quot; -DINSTALLVERSION -lgcc
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x6f): dans la fonction « __guard_setup »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2027: undefined reference to `close&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xd9): dans la fonction « __stack_smash_handler »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2050: undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xea):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2051: undefined reference to `sigdelset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x100):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2052: undefined reference to `sigprocmask&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x118):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058: undefined reference to `__progname&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x12c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058: undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1b6):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2066: undefined reference to `socket&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1f2):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2072: undefined reference to `strncpy&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x225):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2075: undefined reference to `sendto&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x244):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2084: undefined reference to `memset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x252):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2085: undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x27b):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2088: undefined reference to `sigaction&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x280):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089: undefined reference to `getpid&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x28c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089: undefined reference to `kill&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x2b7):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2092: undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x327):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2061: undefined reference to `strncat&apos;
collect2: ld a retourné 1 code d&apos;état d&apos;exécution
make: *** [bin-i386/diet-i] Erreur 1
make: *** Attente des tâches non terminées....
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x6f): dans la fonction « __guard_setup »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2027: undefined reference to `close&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xd9): dans la fonction « __stack_smash_handler »:
/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2050: undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0xea):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2051: undefined reference to `sigdelset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x100):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2052: undefined reference to `sigprocmask&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x118):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058: undefined reference to `__progname&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x12c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2058: undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1b6):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2066: undefined reference to `socket&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x1f2):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2072: undefined reference to `strncpy&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x225):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2075: undefined reference to `sendto&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x244):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2084: undefined reference to `memset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x252):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2085: undefined reference to `sigfillset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x27b):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2088: undefined reference to `sigaction&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x280):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089: undefined reference to `getpid&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x28c):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2089: undefined reference to `kill&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x2b7):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2092: undefined reference to `strncat&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x327):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2061: undefined reference to `strncat&apos;
collect2: ld a retourné 1 code d&apos;état d&apos;exécution
make: *** [bin-i386/diet] Erreur 1
 
!!! ERROR: dev-libs/dietlibc-0.24 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! emake failed

i also had the same kind of problem compiling libvorbis :


gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -march=athlon-xp -O3 -pipe -fomit-frame-pointer -DUSE_MEMORY_H -static -o decoder_example decoder_example.o  ../lib/.libs/libvorbis.a -L/usr/lib -lm /usr/lib/libogg.a
/usr/lib/libc.a(ssp.o)(.bss+0x0): multiple definition of `__guard&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.bss+0x0):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2021: first defined here
/usr/lib/libc.a(ssp.o)(.text+0x80): In function `__stack_smash_handler&apos;:
: multiple definition of `__stack_smash_handler&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2036: first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler&apos; changed from 728 in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to 562 in
collect2: ld returned 1 exit status
make[1]: *** [decoder_example] Erreur 1
make[1]: *** Attente des tâches non terminées....
gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -march=athlon-xp -O3 -pipe -fomit-frame-pointer -DUSE_MEMORY_H -static -o encoder_example encoder_example.o  ../lib/.libs/libvorbisenc.a /usr/portage/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/lib/.libs/libvorbis.a -L/usr/lib ../lib/.libs/libvorbis.a -lm /usr/lib/libogg.a
/usr/lib/libc.a(ssp.o)(.bss+0x0): multiple definition of `__guard&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.bss+0x0):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2021: first defined here
/usr/lib/libc.a(ssp.o)(.text+0x80): In function `__stack_smash_handler&apos;:
: multiple definition of `__stack_smash_handler&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/usr/portage/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2036: first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler&apos; changed from 728 in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to 562 in
collect2: ld returned 1 exit status
make[1]: *** [encoder_example] Erreur 1
make[1]: Leaving directory `/usr/portage/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/examples&apos;
make: *** [all-recursive] Erreur 1
 
!!! ERROR: media-libs/libvorbis-1.0.1 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! (no error message)
so, is it a gcc problem, a problem with my CFLAGS ? my glibc ?

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-22 17:53:55 0000</bug_when>
            <thetext>It&apos;s very difficult for me to help you with your error messages in french.
Can you try it with LANG=C please?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-22 19:07:43 0000</bug_when>
            <thetext>the only things i see in french in this bug report are :

LANG=&quot;C&quot; head -1
head: `-1&apos; option is obsolete; use `-n 1&apos;
Try `head --help&apos; for more information.

dans la fonction </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-22 19:07:43 0000</bug_when>
            <thetext>the only things i see in french in this bug report are :

LANG=&quot;C&quot; head -1
head: `-1&apos; option is obsolete; use `-n 1&apos;
Try `head --help&apos; for more information.

dans la fonction « __guard_setup »: =&gt; in function &lt;&lt; ... &gt;&gt;:

any clue about the source of those problems ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-22 19:21:36 0000</bug_when>
            <thetext>The head -1 issue is fixed in CVS.  That&apos;s not the problem.  I can&apos;t
tell what the issue is with the rest of the build.  It works fine for me.
I&apos;m guessing that it&apos;s a gcc 3.3 issue, but I&apos;m not sure.  Are you
able to try it with a different version of gcc?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2003-11-24 02:51:35 0000</bug_when>
            <thetext>found a related bug :
http://bugs.gentoo.org/show_bug.cgi?id=34183

seems related to propolice/hardened-gcc

bug list containing &quot;stack_smash_handler.oS&quot; in comments :
http://bugs.gentoo.org/buglist.cgi?query_format=&amp;short_desc_type=allwordssubstr&amp;short_desc=&amp;long_desc_type=allwordssubstr&amp;long_desc=stack_smash_handler.oS&amp;bug_file_loc_type=allwordssubstr&amp;bug_file_loc=&amp;keywords_type=allwords&amp;keywords=&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;bug_status=RESOLVED&amp;bug_status=VERIFIED&amp;bug_status=CLOSED&amp;emailassigned_to1=1&amp;emailtype1=substring&amp;email1=&amp;emailassigned_to2=1&amp;emailreporter2=1&amp;emailcc2=1&amp;emailtype2=substring&amp;email2=&amp;bugidtype=include&amp;bug_id=&amp;changedin=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;cmdtype=doit&amp;order=Reuse+same+sort+as+last+time&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pappy@gentoo.org</who>
            <bug_when>2003-11-24 13:18:29 0000</bug_when>
            <thetext>i take this bug

pappy</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pappy@gentoo.org</who>
            <bug_when>2003-12-13 02:48:05 0000</bug_when>
            <thetext>can you emerge to the latest glibc/gcc and try to reinstall dietlibc again?

TIA,

Alex

*** This bug has been marked as a duplicate of 25299 ***</thetext>
          </long_desc>
      
    </bug>

</bugzilla>