Hello,

Fink version:
Package manager version: 0.16.0
Distribution version: 0.6.1.cvs

OS X version: 10.3

I've installed ImageMagick from Fink to use libMagick++ from it. I've coocked up a autoconf script to configure it with the help of Magick++-config.

When I try to make my project, it compiles fine and then issues this command to link it (file names removed in order to shorten the message):

/bin/sh ./libtool --mode=link g++ -g -O2 -I/usr/local/include/cc++2 -D_GNU_SOURCE -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/freetype2 -I/sw/include -I/sw/include/libxml2 -D_REENTRANT -o [projectname].la -rpath [project src dir]/.libs -export-dynamic -module -version-info 1:0:1 [projects .lo files] -L/usr/local/lib -lccext2 -lccgnu2 -lxml2 -lz -liconv -lm -lz -ldl -lpthread -L/usr/X11R6/lib -L/sw/lib -lMagick++ -lMagick -llcms -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm

The libtool being used identifies itself as:
ltmain.sh (GNU libtool) 1.5 (1.1220 2003/04/05 19:32:58)
This came with 10.3 and hasn't been changed.

The above command however results in this:

g++ -bundle -Wl,-bind_at_load -flat_namespace -undefined suppress -o .libs/[projectname].0.so .libs/[projects object files] -all_load /usr/local/lib/libccext2.a /usr/local/lib/libccgnu2.a /sw/lib/libMagick++.a /sw/lib/libMagick.a -L/usr/libexec/gcc/darwin/ppc/3.3/../../.. -L/usr/lib/gcc/darwin -L/usr/lib/gcc/darwin/3.3 /sw/lib/libbz2.dylib /usr/X11R6/lib/libX11.dylib /usr/X11R6/lib/libICE.dylib /usr/X11R6/lib/libSM.dylib /usr/X11R6/lib/libXt.dylib /usr/X11R6/lib/libXext.dylib /usr/X11R6/lib/libdps.dylib /usr/X11R6/lib/libdpstk.dylib /sw/lib/libpng.dylib /usr/X11R6/lib/libfreetype.dylib /sw/lib/libtiff.dylib /sw/lib/liblcms.dylib /sw/lib -L/usr/local/lib /sw/lib/libiconv.dylib -ldl -L/usr/X11R6/lib -L/sw/lib -llcms -ltiff -lfreetype /sw/lib/libjpeg.dylib -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 /sw/lib/libxml2.dylib -lz -lpthread -lm

The error being that /sw/lib is listed as if it was a library to link in, i.e. without the -L prefix. This fails, of course:

ld: can't map file: /sw/lib ((os/kern) invalid argument)

I've searched trough /sw/lib/*.la looking for a possible culprit with a malformed dependency_libs line. I found several that has -L//sw/lib (libwww*, libxmlparse.la, libxmltok.la libmd5.la and libpics.la), but fixing those didn't help. I don't think it matters either as I've seen other system libraries with the same // syntax without causing problems.

Has someone else experienced something like this? Is this likely to be a Fink related problem, or a possible bug in libtool?

Any help would be greatly appreciated.



- Idar Tollefsen




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to