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??
Début du message réexpédié :
> De : Jean-Francois Donati <[email protected]>
> Date : 29 juin 2012 12:44:59 HAEC
> À : fink-users <[email protected]>
> Objet : Rép : [Fink-users] problem with pgplot & libpng
>
> thanks for the quick reply
>
>> Make sure you have libpng14 or libpng15 installed. You probably currently
>> have Fink's libpng3 installed, which doesn't have that symbol.
>
> i actually do have libpng15 installed and anot libpng3:
>
> [robinson]<esprit> fink list libpng
> Information about 11483 packages read in 1 seconds.
> libpng-shlibs 1.0.12-7 PNG image format handling library
> libpng14 1.4.11-1 PNG image format handling library
> i libpng14-shlibs 1.4.11-1 Shared libraries for libpng14 package
> i libpng15 1.5.10-1 PNG image format handling library
> i libpng15-shlibs 1.5.10-1 Shared libraries for libpng15 package
> libpng3 1:1.2.49-1 PNG image format handling library
> i libpng3-shlibs 1:1.2.49-1 Shared libraries for libpng3 package
> i system-pkgconfig-li 1.2.46-1 [virtual pkgconfig package
> representing libpng]
> i system-pkgconfig-li 1.2.46-1 [virtual pkgconfig package
> representing libpng12]
>
> on my MacPro (running under fink PM 0.29.21) i have libpng14 installed (and
> not 15) and it works fine...
> so the problem may relate to libpng15.
> i didnot mention that i'm compiling with the -m32 option. is there any
> incompatibility of this option with libpng15 ?
>
> jeanfrancois
>
>
>> On 06/29/2012 4:22 AM, Jean-Francois Donati wrote:
>>> hi
>>>
>>> i'm having a problem when compiling a c code (called geometry) invoking
>>> pgplot libraries.
>>> this code used to work fine in the past on my mac book (2.4GHz intel core2
>>> duo) under OSX 10.6.8
>>> but is failing now for a reason that i cannot manage to work out
>>> (i haven't tried it for a while so it may be related to an fink upgrade
>>> that occured a few months ago).
>>> this very same code is working fine on my mac pro (same version of OSX,
>>> latest version of fink stable)
>>> but is apparently failing on the macbook.
>>>
>>> here is the message i'm getting : obviously, it's having trouble finding a
>>> routine,
>>> that should presumably be part of libpng but is not (since i'm linking with
>>> libpng obviously).
>>>
>>> [robinson]<esprit> make geometry
>>> gfortran -o geometry geometry.o util.o spec.o earth.o ccdfit.o version.o
>>> /Users/donati/lib/libfile.a /Users/donati/lib/libnr0.a
>>> /Users/donati/lib/libmem.a /Users/donati/lib/libplot.a -L/usr/X11R6/lib
>>> -lX11 -Wl,-framework -Wl,Foundation -L/sw/lib -lz -laquaterm -lpng
>>> -L/sw/lib/pgplot -lpgplot -lcpgplot
>>> Undefined symbols:
>>> "_png_set_longjmp_fn", referenced from:
>>> _write_image_file in libpgplot.a(pndriv.o)
>>> ld: symbol(s) not found
>>> collect2: erreur: ld a retourn'e 1 code d''etat d'ex'ecution
>>> make: *** [geometry] Error 1
>>
>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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