Re: [mpls-linux-general] make problem with mplsadm on fresh Mdk9.0 distro
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2002-10-18 16:50:48
|
On Thu, Oct 17, 2002 at 04:31:47PM -0400, Fran=E7ois Desloges wrote: > Hi Jim et all, >=20 > 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 kern= el=20 > include directory. >=20 > Doing make in utils results in: >=20 > 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 >=20 > 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 Argh. I haven't made the move to gcc 3.x yet. Does the lates debain hav= e gcc 3.x yet? If so maybe I'll try moving one of my machine to gcc 3.x (and assocaited binutils versions) and see if I can work out any of these type of problems. You might try and remove the '-static' from the Makefile line, or try and compile/link my hand and see if you can figure out a combination that works. Jim >=20 > man ld says: > -larchive > --library=3Darchive > 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-l= ist for > occurrences of "libarchive.a" for every archive specified. >=20 > On systems which support shared libraries, ld may also sear= ch 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 exten= sion of > ".a". By convention, a ".so" extension indicates a shared l= ibrary. >=20 > The linker will search an archive only once, at the locatio= n where > it is specified on the command line. If the archive defines= a sym- > bol which was undefined in some object which appeared bef= ore the > archive on the command line, the linker will include the ap= propri- > ate file(s) from the archive. However, an undefined symbo= l in an > object appearing later on the command line will not cau= se the > linker to search the archive again. >=20 > See the -( option for a way to force the linker to search a= rchives > multiple times. >=20 > Where am I suppose to find the "c" "archive" (I obviously know nothing = about=20 > ld) ? >=20 > Thanks! >=20 > FD=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: viaVerio will pay you up to > $1,000 for every account that you consolidate with us. > http://ad.doubleclick.net/clk;4749864;7604308;v? > http://www.viaverio.com/consolidator/osdn.cfm > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu |