of course... thanks your quick reply.
may be it would be a good idea to update the suggested link line mentioned on
the pgplot package page:
http://pdb.finkproject.org/pdb/package.php/pgplot
which thus should be changed from
-L/usr/X11R6/lib -lX11 -Wl,-framework -Wl,Foundation -lz -L/sw/lib -lpng
-laquaterm -L$PGPLOT_DIR -lpgplot -lcpgplot
into
-L/sw/lib -L/usr/X11R6/lib -lX11 -Wl,-framework -Wl,Foundation -lz -lpng
-laquaterm -L$PGPLOT_DIR -lpgplot -lcpgplot
as this is a potential source of problems.
thanks again
Le 29 juin 2012 à 13:13, Hanspeter Niederstrasser a écrit :
> On 6/29/2012 7:08 AM, Jean-Francois Donati wrote:
>> when i explicitly specify that i want to link with libpng15, ie by invoking
>> -lpng15
>> instead of
>> -lpng
>> then everything compiles ok.
>> this looks weird as libpng.a correctly points to libpng15.a in /sw/lib
>>
>> [robinson]<lib> ls -l /sw/lib/*libpng*
>> -rwxr-xr-x 1 root admin 176908 Apr 9 13:36 /sw/lib/libpng.3.dylib*
>> lrwxr-xr-x 1 root admin 10 Apr 9 13:35 /sw/lib/libpng.a@ ->
>> libpng15.a
>> lrwxr-xr-x 1 root admin 14 Apr 9 13:35 /sw/lib/libpng.dylib@ ->
>> libpng15.dylib
>> lrwxr-xr-x 1 root admin 11 Apr 9 13:35 /sw/lib/libpng.la@ ->
>> libpng15.la
>> -rwxr-xr-x 1 root admin 176940 Apr 9 13:36 /sw/lib/libpng12.0.dylib*
>> -rwxr-xr-x 1 root admin 176280 Apr 9 13:35 /sw/lib/libpng14.14.dylib*
>> -rwxr-xr-x 1 root admin 194412 Apr 9 13:35 /sw/lib/libpng15.15.dylib*
>> -rw-r--r-- 1 root admin 628832 Apr 9 13:35 /sw/lib/libpng15.a
>> lrwxr-xr-x 1 root admin 17 Apr 9 13:35 /sw/lib/libpng15.dylib@ ->
>> libpng15.15.dylib
>> -rwxr-xr-x 1 root admin 913 Apr 9 13:35 /sw/lib/libpng15.la*
>>
>> how can -lpng not be equivalent to -lpng15 in this context??
>
> From your original linker line:
>
> -L/usr/X11R6/lib -lX11 -Wl,-framework -Wl,Foundation -L/sw/lib ... -lpng
>
> -lpng will be first searched for in /usr/X11R6/lib, and will pick up
> libpng.dylib from there. Put -L/sw/lib before -L/usr/X11R6/lib, and
> Fink's libpng.dylib will be used.
>
> Hanspeter
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Fink-users mailing list
> [email protected]
> List archive:
> http://news.gmane.org/gmane.os.macosx.fink.user
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users