Re: [mpls-linux-general] make problem with mplsadm on fresh Mdk9.0 distro
Status: Beta
                
                Brought to you by:
                
                    jleu
                    
                
            | 
      
      
      From:  <fde...@sy...> - 2002-10-18 21:01:17
      
     | 
| Removing the -static worked. Having installed the mandrake glibc-static-devel package would have been a good idea as well ;-) By the way is there a good reason to link it static ? (Isn't glibc.so always there?) FD On October 18, 2002 13:52, James R. Leu wrote: > On Thu, Oct 17, 2002 at 04:31:47PM -0400, François 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 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 > > > 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 > > > > > > > > ------------------------------------------------------- > > 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 |