* 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* Re: 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 21:34 ` Andrew McGregor
2002-12-14 11:13 ` Gregoire Favre
1 sibling, 1 reply; 5+ messages in thread
From: Rusty Russell @ 2002-12-14 1:27 UTC (permalink / raw)
To: Paolo Ciarrocchi; +Cc: adam, linux-kernel
In message <20021214000944.30118.qmail@linuxmail.org> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Not able to compile modutils-2.4.21-7.src.rpm
2002-12-14 1:27 ` Rusty Russell
@ 2002-12-14 21:34 ` Andrew McGregor
0 siblings, 0 replies; 5+ messages in thread
From: Andrew McGregor @ 2002-12-14 21:34 UTC (permalink / raw)
To: Rusty Russell, Paolo Ciarrocchi; +Cc: adam, linux-kernel
Yep, glibc-devel.
Andrew
--On Saturday, December 14, 2002 12:27:34 +1100 Rusty Russell
<rusty@rustcorp.com.au> wrote:
> In message <20021214000944.30118.qmail@linuxmail.org> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 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
1 sibling, 0 replies; 5+ messages in thread
From: Gregoire Favre @ 2002-12-14 11:13 UTC (permalink / raw)
To: Paolo Ciarrocchi; +Cc: linux-kernel
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:greg@ulima.unil.ch
^ 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