Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259970 - net-libs/libnet-1.1.2.1-r1 compilation error on hardened 64 bit.
Summary: net-libs/libnet-1.1.2.1-r1 compilation error on hardened 64 bit.
Status: RESOLVED DUPLICATE of bug 254355
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 02:57 UTC by 7v5w7go9ub0o
Modified: 2009-03-09 00:23 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 7v5w7go9ub0o 2009-02-23 02:57:08 UTC
- net-libs/libnet-1.1.2.1-r1 compilation error on hardened 64 bit.  

- 1.1.3-RC-01 from the author's site compiled fine and works well (in Arpon)

x86_64-pc-linux-gnu-gcc -O2 -march=native -msse4 -pipe -Wall -Wl,-O1 -Wl,--sort-common -Wl,--warn-once -Wl,--hash-style=gnu -o .libs/bgp4_notification bgp4_notification.o  ../src/.libs/libnet.so 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: gre.o: relocation R_X86_64_PC32 against `libnet_getgre_length' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [gre] Error 1
make[1]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -O2 -march=native -msse4 -pipe -Wall -Wl,-O1 -Wl,--sort-common -Wl,--warn-once -Wl,--hash-style=gnu -o .libs/tftp tftp.o  ../src/.libs/libnet.so 
creating bgp4_notification
creating synflood6_frag
creating tftp
x86_64-pc-linux-gnu-gcc -O2 -march=native -msse4 -pipe -Wall -Wl,-O1 -Wl,--sort-common -Wl,--warn-once -Wl,--hash-style=gnu -o .libs/ip_link ip_link.o  ../src/.libs/libnet.so 
x86_64-pc-linux-gnu-gcc -O2 -march=native -msse4 -pipe -Wall -Wl,-O1 -Wl,--sort-common -Wl,--warn-once -Wl,--hash-style=gnu -o .libs/ip_raw ip_raw.o  ../src/.libs/libnet.so 
x86_64-pc-linux-gnu-gcc -O2 -march=native -msse4 -pipe -Wall -Wl,-O1 -Wl,--sort-common -Wl,--warn-once -Wl,--hash-style=gnu -o .libs/sebek sebek.o  ../src/.libs/libnet.so 
creating ip_link
creating ip_raw
creating sebek
make[1]: Leaving directory `/var/tmp/portage/net-libs/libnet-1.1.2.1-r1/work/libnet/sample'
make: *** [all-recursive] Error 1
 * 
 * ERROR: net-libs/libnet-1.1.2.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2882:  Called _eapi0_src_compile
 *               ebuild.sh, line  609:  Called _eapi2_src_compile
 *               ebuild.sh, line  643:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 


Reproducible: Always
Comment 1 Dan Reidy 2009-03-03 04:33:30 UTC
ditto here - same output.
Comment 2 Dan Reidy 2009-03-03 04:36:28 UTC
maybe i jumped the gun
my output is:

libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -fomit-frame-pointer -fforce-addr -pipe -Wall -Wl,-O1 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o .libs/gre gre.o  ../src/.libs/libnet.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: gre.o: relocation R_X86_64_PC32 against undefined symbol `libnet_getgre_length' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [gre] Error 1
make[1]: *** Waiting for unfinished jobs....
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -O2 -fomit-frame-pointer -fforce-addr -pipe -Wall  -Wl,-O1 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o synflood6_frag synflood6_frag.o ../src/libnet.la 
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -fomit-frame-pointer -fforce-addr -pipe -Wall -Wl,-O1 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o .libs/synflood6_frag synflood6_frag.o  ../src/.libs/libnet.so
make[1]: Leaving directory `/var/tmp/portage/net-libs/libnet-1.1.2.1-r1/work/libnet/sample'
make: *** [all-recursive] Error 1
 * 
 * ERROR: net-libs/libnet-1.1.2.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2619:  Called _eapi0_src_compile
 *               ebuild.sh, line  609:  Called _eapi2_src_compile
 *               ebuild.sh, line  643:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 

linux-headers: 2.6.28-r1
sys-devel/gcc: 4.3.2-r3
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-09 00:23:54 UTC

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