On 23/09/2009, at 06:24, Sébastien Maret wrote: > On 10.6.1 x86_64, libplot.dylib (which is part of > plotutils-2.4.1-1009) does not seems to be linked correctly. When I > compile it on that system, I get the following warning: > > *** Warning: This library needs some functionality provided by -lpng. > *** I have the capability to make that library automatically link in > when > *** you link to this library. But I can only do this if you have a > *** shared version of the library, which you do not appear to have. > *** The inter-library dependencies that have been dropped here will be > *** automatically added whenever a program is linked with this library > *** or is declared to -dlopen it. > > and the library isn't linked to the libpng. > > % otool -L libplot.dylib > libplot.dylib: > /sw/lib/libplot.2.dylib (compatibility version 5.0.0, current version > 5.1.0) > /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version > 1.2.3) > /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version > 315.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 124.1.1) > > On the other hand, when compiling in 32 bits, I don't get the warning > message and the library is correctly linked: > > % otool -L libplot.dylib > /sw/lib/libplot.dylib: > /sw/lib/libplot.2.dylib (compatibility version 5.0.0, current version > 5.1.0) > /sw/lib/libpng12.0.dylib (compatibility version 36.0.0, current > version 36.0.0) > /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version > 1.2.3) > /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version > 315.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 124.1.1) > > Any idea on how to solve this?
Salut, Sébastien. The ltconfig script in plotutils isn't able to parse the output of the file command for x86_64 libraries. I've fixed that and a new revision is now available on CVS: http://article.gmane.org/gmane.os.apple.fink.cvs/85900 Cheers, -- monipol http://finkers.wordpress.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel