public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Paolo Ciarrocchi" <ciarrocchi@linuxmail.org>
Cc: adam@yggdrasil.com, linux-kernel@vger.kernel.org
Subject: Re: Not able to compile modutils-2.4.21-7.src.rpm
Date: Sat, 14 Dec 2002 12:27:34 +1100	[thread overview]
Message-ID: <20021214014915.734112C510@lists.samba.org> (raw)
In-Reply-To: Your message of "Sat, 14 Dec 2002 08:09:43 +0800." <20021214000944.30118.qmail@linuxmail.org>

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.

  reply	other threads:[~2002-12-14  1:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-14  0:09 Not able to compile modutils-2.4.21-7.src.rpm Paolo Ciarrocchi
2002-12-14  1:27 ` Rusty Russell [this message]
2002-12-14 21:34   ` Andrew McGregor
2002-12-14 11:13 ` Gregoire Favre
  -- strict thread matches above, loose matches on Subject: below --
2002-12-14 12:05 Paolo Ciarrocchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021214014915.734112C510@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=adam@yggdrasil.com \
    --cc=ciarrocchi@linuxmail.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox