Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Apr 2002 19:16:56 +0800
From:      chris <chris@chrisland.net>
To:        freebsd-stable@freebsd.org
Subject:   /usr/libexec/elf/ld: cannot find -lc while buildworld
Message-ID:  <3CAED928.1807C784@chrisland.net>

next in thread | raw e-mail | index | archive | help
Hi all,

Few days ago I tried buildworld/installworld.  However my disk containg
/usr/obj was corrupted and I had to bring it offline.  Now when I create
/usr/obj in another disk and want to buildworld again, the following
error is encountered:

==== quote ====
--------------------------------------------------------------
>>> stage 1: bootstrap tools
--------------------------------------------------------------
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386  DESTDIR= 
INSTALL="sh /usr/src/tools/install.sh" make -f Makefile.inc1
-DBOOTSTRAPPING  -DNOHTML -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE
-DNOSHARED bootstrap-tools
cd /usr/src/games/fortune/strfile;  make obj;  make depend;  make all; 
make DESTDIR=/usr/obj/usr/src/i386 install
/usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for
/usr/src/games/fortune/strfile
rm -f .depend
mkdep -f .depend -a      /usr/src/games/fortune/strfile/strfile.c
cd /usr/src/games/fortune/strfile; make _EXTRADEPEND
echo strfile: /usr/lib/libc.a  >> .depend
cc -O -pipe -march=pentium -Wall    -c
/usr/src/games/fortune/strfile/strfile.c
cc -O -pipe -march=pentium -Wall     -static -o strfile strfile.o  
/usr/libexec/elf/ld: cannot find -lc
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
==== end of quote =====

I guess the error occurs as a result of my previouis
buildworld/installworld.  I look at libc.so.4 and it is a "new" one:

=== quote ===
gw# ll /usr/lib/libc.so.4
-r--r--r--  1 root  wheel  585668 Apr  6 17:57 /usr/lib/libc.so.4
=== end of quote ===

My last successful installworld was in 16/2.

How can I solve this problem and update my system?

Thanks a lot.

Regards,
Chris

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CAED928.1807C784>