lkml.org 
[lkml]   [2002]   [Dec]   [14]   [last100]   RSS-feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Complete thread (EXPERIMENTAL)
/
From"Paolo Ciarrocchi" <>
DateSat, 14 Dec 2002 20:05:26 +0800
SubjectRe: Not able to compile modutils-2.4.21-7.src.rpm
Digg This
From: Rusty Russell <rusty@rustcorp.com.au>
[...]
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [insmod.static] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/modutils-2.4.21/insmod' make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.76637 (%build)

It looks like you don't have the ability to make static binaries. Does this fail for you, too?

echo 'int main(){return 0;}' > /tmp/foo.c && gcc -static -o foo foo.c
Perhaps there is some RH devel package you need to install to allow this to work?

Yes, you are correct and I am a stupid guy ;-)
Gregoire told me what the package is,
glibc-static-devel...

Ok, now rpm --rebuild --target i686 blabla.src.rpm
works perfectly.

No problem with modules, thank you very much!

Paolo

From: Gregoire Favre <greg@ulima.unil.ch>
[...]
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [insmod.static] Error 1

Just install glibc-static-devel...

Ahh... you are correct! Now it compiles,
sorry for the silly report and thank you!

Paolo
-- 
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr
Powered by Outblaze
\
ISP Services
Valid XHTML 1.0!\ /
Valid CSS! Last update: 2005-03-22 12:31    [W:0.128 / U:0.330 seconds]
©2003-2005 Jasper Spaans