Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34537 - libvorbis-1.0.1 and 1.0-r4 doesnt compile with -fstack-protector
Summary: libvorbis-1.0.1 and 1.0-r4 doesnt compile with -fstack-protector
Status: RESOLVED DUPLICATE of bug 25299
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-27 11:56 UTC by Simon Cooper
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Cooper 2003-11-27 11:56:17 UTC
the compile bombs out if -fstack-protector is in your CFLAGS:

gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -march=athlon-xp -Os -pipe
-fomit-frame-pointer -ffast-math -fforce-addr -ftracer -falign-functions=16
-falign-labels=1 -falign-loops=16 -falign-jumps=16 -fstack-protector
-maccumulate-outgoing-args -mfpmath=sse,387 -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'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.bss+0x0):/var/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':
: multiple definition of `__stack_smash_handler'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/var/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' changed from 728 in
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to
571 in 
collect2: ld returned 1 exit status
make[1]: *** [decoder_example] Error 1
make[1]: *** Waiting for unfinished jobs....
gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -march=athlon-xp -Os -pipe
-fomit-frame-pointer -ffast-math -fforce-addr -ftracer -falign-functions=16
-falign-labels=1 -falign-loops=16 -falign-jumps=16 -fstack-protector
-maccumulate-outgoing-args -mfpmath=sse,387 -DUSE_MEMORY_H -static -o
encoder_example encoder_example.o  ../lib/.libs/libvorbisenc.a
/var/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'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.bss+0x0):/var/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':
: multiple definition of `__stack_smash_handler'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/var/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' changed from 728 in
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to
571 in 
collect2: ld returned 1 exit status
make[1]: *** [encoder_example] Error 1
make[1]: Leaving directory
`/var/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/examples'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libvorbis-1.0.1 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! (no error message)

works if you remove -fstack-protector from my extensive CFLAGS
("-march=athlon-xp -Os -pipe -fomit-frame-pointer -ffast-math -fforce-addr
-ftracer -falign-functions=16 -falign-labels=1 -falign-loops=16 -falign-jumps=16
-fstack-protector -maccumulate-outgoing-args -mfpmath=sse,387)

Only need to add a filter-flags to the relevant ebuilds.
libogg compiles fine though

Reproducible: Always
Steps to Reproduce:
Comment 1 Alexander Gabert (RETIRED) gentoo-dev 2003-12-01 15:06:54 UTC
deja vu

go home to 25299

*** This bug has been marked as a duplicate of 25299 ***