This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Issues with latest gcc/glibc and static linking (modutils)


Hi

Latest CVS glibc and current gcc-3.3 (rh branch) or gcc-3.3.1
have the following result when trying to compile modutils with
static insmod:

---------------------------------------------------------------
gcc -mcpu=pentium4 -march=pentium3 -O2 -pipe -freorder-blocks -fprefetch-loop-arrays -o insmod insmod.o rmmod.o modprobe.o lsmod.o ksyms.o kallsyms.o ../obj/libobj.a ../util/libutil.a
gcc -static -mcpu=pentium4 -march=pentium3 -O2 -pipe -freorder-blocks -fprefetch-loop-arrays -o insmod.static insmod.o rmmod.o modprobe.o lsmod.o ksyms.o kallsyms.o ../obj/libobj.a ../util/libutil.a
ln -sf insmod modprobe
ln -sf insmod rmmod
ln -sf insmod lsmod
ln -sf insmod ksyms
ln -sf insmod kallsyms
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/libgcc_eh.a(unwind-dw2.o)(.text+0x331): In function `extract_cie_info':
/space/var/tmp/portage/gcc-3.3.1/work/gcc-3.3.1/gcc/unwind-dw2.c:247: undefined reference to `strlen'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/libgcc_eh.a(unwind-dw2-fde-glibc.o)(.text+0x659): In function `get_cie_encoding':
/space/var/tmp/portage/gcc-3.3.1/work/gcc-3.3.1/gcc/unwind-dw2-fde.c:274: undefined reference to `strlen'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/libgcc_eh.a(unwind-dw2-fde-glibc.o)(.text+0x1651): In function `_Unwind_Find_FDE':
/space/var/tmp/portage/gcc-3.3.1/work/gcc-3.3.1/gcc/unwind-dw2-fde-glibc.c:283: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[1]: *** [insmod.static] Error 1
make[1]: Leaving directory `/space/var/tmp/portage/modutils-2.4.25/work/modutils-2.4.25/insmod'
make: *** [all] Error 2
---------------------------------------------------

Any ideas will be appreciated.


Thanks,

-- 

Martin Schlemmer



Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]