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-19 03:23:03
|
At one point I had entertained the idea of distributing binaries, -static is a good way to get around any glibc version mismatches. Jim On Fri, Oct 18, 2002 at 04:56:33PM -0400, Fran=E7ois Desloges wrote: > Removing the -static worked. > Having installed the mandrake glibc-static-devel package would have bee= n a=20 > good idea as well ;-) >=20 > By the way is there a good reason to link it static ? > (Isn't glibc.so always there?) >=20 > FD >=20 > On October 18, 2002 13:52, James R. Leu wrote: > > On Thu, Oct 17, 2002 at 04:31:47PM -0400, Fran=E7ois Desloges wrote: > > > 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 > > > > Argh. I haven't made the move to gcc 3.x yet. Does the lates debain= have > > 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 t= hese > > 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 combinat= ion > > that works. > > > > Jim > > > > > 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. > > > > > > On systems which support shared libraries, ld may also = search > > > for libraries with extensions other than ".a". Specifically, o= n 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 loc= ation > > > 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=20 > > > file(s) from the archive. However, an undefined symbol in an obje= ct > > > 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 sear= ch > > > archives multiple times. > > > > > > Where am I suppose to find the "c" "archive" (I obviously know noth= ing > > > about ld) ? > > > > > > Thanks! > > > > > > FD > > > > > > > > > > > > ------------------------------------------------------- > > > 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 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu |