Skip to contentSkip to conversation

Not able to compile modutils-2.4.21-7.src.rpm

DISCUSSION Paolo Ciarrocchi 4 participants 4 messages Dec 14, 2002

lore
Share & tools
lore
#0 lore raw

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

Signature · 5 lines
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr

Powered by Outblaze
#1 lore raw

In message <[email protected]> you write:

Quoted 4 lines

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

Quoted 2 lines

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

Quoted 1 line

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

Quoted 6 lines

/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.

#2 lore raw

Yep, glibc-devel.

Andrew

Quoted 41 lines · --On Saturday, December 14, 2002 12:27:34 +1100 Rusty Russell…

In message <[email protected]> you write:

Quoted 5 lines

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

Quoted 3 lines

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

Quoted 2 lines

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

Quoted 6 lines

/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/

#3 lore raw
In reply to Paolo Ciarrocchi
Quoted 10 lines · Paolo Ciarrocchi

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]