2002-12-14 00:01:59

by Paolo Ciarrocchi

[permalink] [raw]
Subject: Not able to compile modutils-2.4.21-7.src.rpm

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


2002-12-14 01:41:33

by Rusty Russell

[permalink] [raw]
Subject: Re: Not able to compile modutils-2.4.21-7.src.rpm

In message <[email protected]> you write:
> 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/modu
les/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 -ffas
t-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)

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?

YA Debian User,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

2002-12-14 11:05:38

by Gregoire Favre

[permalink] [raw]
Subject: Re: Not able to compile modutils-2.4.21-7.src.rpm

On Sat, Dec 14, 2002 at 08:09:43AM +0800, Paolo Ciarrocchi wrote:
> 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

Just install glibc-static-devel...

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

2002-12-14 11:57:41

by Paolo Ciarrocchi

[permalink] [raw]
Subject: Re: Not able to compile modutils-2.4.21-7.src.rpm

From: Rusty Russell <[email protected]>
[...]
> > /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 <[email protected]>
[...]
> > /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

2002-12-14 21:52:11

by Andrew McGregor

[permalink] [raw]
Subject: Re: Not able to compile modutils-2.4.21-7.src.rpm

Yep, glibc-devel.

Andrew

--On Saturday, December 14, 2002 12:27:34 +1100 Rusty Russell
<[email protected]> wrote:

> In message <[email protected]> you write:
>> 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/modu
> les/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
>> -ffas
> t-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)
>
> 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?
>
> YA Debian User,
> Rusty.
> --
> Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>