[mpls-linux-general] make problem with mplsadm on fresh Mdk9.0 distro
Status: Beta
Brought to you by:
jleu
|
From: <fde...@sy...> - 2002-10-17 20:36:29
|
Hi Jim et all,
I've build 2.4.19+ mpls-linux-1.1 on a fresh Mandrake 9.0 distro.
I've rebooted and can now see the /proc/net/mpls_* (empty) entries
I've changed the /usr/include/linux and asm link t use my new mpls kernel
include directory.
Doing make in utils results in:
gcc -g -Wall -c -o mplsadm.o mplsadm.c
gcc -g -static -o mplsadm2 mplsadm.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [mplsadm2] Error 1
The mdk 9.0 stock gcc and ld version are
gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
GNU ld version 2.12.90.0.15 20020717
man ld says:
-larchive
--library=archive
Add archive file archive to the list of files to link. This option
may be used any number of times. ld will search its path-list for
occurrences of "libarchive.a" for every archive specified.
On systems which support shared libraries, ld may also search for
libraries with extensions other than ".a". Specifically, on ELF
and SunOS systems, ld will search a directory for a library with an
extension of ".so" before searching for one with an extension of
".a". By convention, a ".so" extension indicates a shared library.
The linker will search an archive only once, at the location where
it is specified on the command line. If the archive defines a sym-
bol which was undefined in some object which appeared before the
archive on the command line, the linker will include the appropri-
ate file(s) from the archive. However, an undefined symbol in an
object appearing later on the command line will not cause the
linker to search the archive again.
See the -( option for a way to force the linker to search archives
multiple times.
Where am I suppose to find the "c" "archive" (I obviously know nothing about
ld) ?
Thanks!
FD
|