Compile dies with "cannot find -lm/libxml2.la"

Andrew Jergens oscilated at hotmail.com
Tue Aug 9 15:17:09 PDT 2005


Hello, and thank you in advance for your time.

I've attempted to make both nALFS-1.2.4 and nALFS-SVN (30-Nov-2004) only to 
find that both die at compile time (error below).

I'm NOT a programmer, however, from browsing the nALFS-lists, it appears as 
if this problem has happened before.  Apparently the linker is being run 
with an added argument 'm', resulting in "-lm/libxml2.la" instead of 
"-l/libxml2.la".  Unfortunately, no solution was given in the previous 
posts.

For background, I'm compiling this on an Athlon64 running Gentoo 2005.0

Thanks again for your time and any assistance with this issue,

-Andrew

----- snip -----
/bin/sh ./libtool --silent --mode=link gcc -W -Wall -Wshadow -Winline  -g 
-O2   -o src/nALFS -dlopen self  -dlopen src/handlers/alfs.la  -dlopen 
src/handlers/check.la  -dlopen src/handlers/conditionals.la -dlopen 
src/handlers/configure.la -dlopen src/handlers/copy.la -dlopen 
src/handlers/digest.la -dlopen src/handlers/download.la -dlopen 
src/handlers/execute.la -dlopen src/handlers/link.la -dlopen 
src/handlers/log.la -dlopen src/handlers/make.la -dlopen 
src/handlers/mkdir.la -dlopen src/handlers/move.la  -dlopen 
src/handlers/ownership.la -dlopen src/handlers/package.la -dlopen 
src/handlers/patch.la -dlopen src/handlers/permissions.la   -dlopen 
src/handlers/remove.la -dlopen src/handlers/search_replace.la -dlopen 
src/handlers/setenv.la -dlopen src/handlers/stage.la   -dlopen 
src/handlers/textdump.la -dlopen src/handlers/unpack.la 
src/src_nALFS-backend.o src/src_nALFS-comm.o src/src_nALFS-editor.o 
src/src_nALFS-find.o src/src_nALFS-handlers.o src/src_nALFS-init.o 
src/src_nALFS-libXML-tree.o src/src_nALFS-logfiles.o src/src_nALFS-logging.o 
src/src_nALFS-nalfs.o src/src_nALFS-options.o src/src_nALFS-parser.o 
src/src_nALFS-utility.o src/src_nALFS-win.o -lxml2 -lz -lpthread 
-lm/libxml2.la   src/lib/libnALFS.la -lform -lncurses src/ltdl/ltdl.la
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lm/libxml2.la
collect2: ld returned 1 exit status
make[2]: *** [src/nALFS] Error 1
make[2]: Leaving directory `/usr/src/nALFS-SVN'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/nALFS-SVN'
make: *** [all] Error 2





More information about the alfs-discuss mailing list