public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Not able to compile modutils-2.4.21-7.src.rpm
@ 2002-12-14 12:05 Paolo Ciarrocchi
  0 siblings, 0 replies; 5+ messages in thread
From: Paolo Ciarrocchi @ 2002-12-14 12:05 UTC (permalink / raw)
  To: greg, rusty; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Not able to compile modutils-2.4.21-7.src.rpm
@ 2002-12-14  0:09 Paolo Ciarrocchi
  2002-12-14  1:27 ` Rusty Russell
  2002-12-14 11:13 ` Gregoire Favre
  0 siblings, 2 replies; 5+ messages in thread
From: Paolo Ciarrocchi @ 2002-12-14  0:09 UTC (permalink / raw)
  To: adam, rusty; +Cc: linux-kernel

Hi Rusty and Adam,
I send you again this bug report.

[root@frodo module-init-tools-0.9.3]# rpm --rebuild /mnt/nt/linux/kernel/modules/modutils-2.4.21-7.src.rpm

gcc -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -o modinfo modinfo.o ../obj/libobj.a ../util/libutil.a
gcc -static -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -o insmod.static insmod.o rmmod.o modprobe.o lsmod.o ksyms.o kallsyms.o ../obj/libobj.a ../util/libutil.a
/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)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.76637 (%build)

[root@frodo module-init-tools-0.9.3]# ld -v
GNU ld version 2.12.90.0.15 20020717

Do you need further information ?

Ciao,
Paolo

-- 
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr

Powered by Outblaze

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-14 21:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-14 12:05 Not able to compile modutils-2.4.21-7.src.rpm Paolo Ciarrocchi
  -- strict thread matches above, loose matches on Subject: below --
2002-12-14  0:09 Paolo Ciarrocchi
2002-12-14  1:27 ` Rusty Russell
2002-12-14 21:34   ` Andrew McGregor
2002-12-14 11:13 ` Gregoire Favre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox