Hello Fons,
I did what you said, and recompiled, but nothing changed... Now I don;t have the library in /sw/lib anymore, as you can see:
more config.log |grep png
Checking for png.h ...
Checking for png.h in directory /include
Checking for png.h in directory /include
Checking for png.h in directory /usr/local/include
Checking for png.h in directory /usr/include
Checking in directory /usr/local/include/libpng
Checking for png.h in directory /usr/local/include/libpng
Checking for png.h in directory /opt/include
Checking for png.h in directory /sw/include
/sw/include/png.h is read-able
Checking for libpng ...
libraries to check for: libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking in directories /lib for libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking in directories /lib for libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking in directories /usr/local/lib for libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking for library libpng.so in directory /usr/local/lib
Checking /usr/local/lib/libpng.so
libpng.so not found in /usr/local/lib
Checking for library libpng.sl in directory /usr/local/lib
Checking /usr/local/lib/libpng.sl
libpng.sl not found in /usr/local/lib
Checking for library libpng.dylib in directory /usr/local/lib
Checking /usr/local/lib/libpng.dylib
libpng.dylib not found in /usr/local/lib
Checking for library libpng.dll.a in directory /usr/local/lib
Checking /usr/local/lib/libpng.dll.a
libpng.dll.a not found in /usr/local/lib
Checking for library libpng.a in directory /usr/local/lib
Checking /usr/local/lib/libpng.a
libpng.a not found in /usr/local/lib
Checking for library libpng.lib in directory /usr/local/lib
Checking /usr/local/lib/libpng.lib
libpng.lib not found in /usr/local/lib
Checking for library libpng in directory /usr/local/lib
Checking /usr/local/lib/libpng
libpng not found in /usr/local/lib
Checking in directories /usr/lib for libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking for library libpng.so in directory /usr/lib
Checking /usr/lib/libpng.so
libpng.so not found in /usr/lib
Checking for library libpng.sl in directory /usr/lib
Checking /usr/lib/libpng.sl
libpng.sl not found in /usr/lib
Checking for library libpng.dylib in directory /usr/lib
Checking /usr/lib/libpng.dylib
libpng.dylib not found in /usr/lib
Checking for library libpng.dll.a in directory /usr/lib
Checking /usr/lib/libpng.dll.a
libpng.dll.a not found in /usr/lib
Checking for library libpng.a in directory /usr/lib
Checking /usr/lib/libpng.a
libpng.a not found in /usr/lib
Checking for library libpng.lib in directory /usr/lib
Checking /usr/lib/libpng.lib
libpng.lib not found in /usr/lib
Checking for library libpng in directory /usr/lib
Checking /usr/lib/libpng
libpng not found in /usr/lib
Checking in directories /opt/lib for libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking in directories /sw/lib for libpng.so libpng.sl libpng.dylib libpng.dll.a libpng.a libpng.lib libpng
Checking for library libpng.so in directory /sw/lib
Checking /sw/lib/libpng.so
libpng.so not found in /sw/lib
Checking for library libpng.sl in directory /sw/lib
Checking /sw/lib/libpng.sl
libpng.sl not found in /sw/lib
Checking for library libpng.dylib in directory /sw/lib
Checking /sw/lib/libpng.dylib
libpng.dylib not found in /sw/lib
Checking for library libpng.dll.a in directory /sw/lib
Checking /sw/lib/libpng.dll.a
libpng.dll.a not found in /sw/lib
Checking for library libpng.a in directory /sw/lib
Checking /sw/lib/libpng.a
libpng.a not found in /sw/lib
Checking for library libpng.lib in directory /sw/lib
Checking /sw/lib/libpng.lib
libpng.lib not found in /sw/lib
Checking for library libpng in directory /sw/lib
Checking /sw/lib/libpng
libpng not found in /sw/lib
Chiara_at_Chiaras-MacBook-Pro~/SOFT/ROOT/v5-27-06b$
Thanks for any help, and cheers,
Chiara
On Feb 10, 2011, at 5:26 PM, Fons Rademakers wrote:
> Hi Chiara,
>
> I guess you've installed libpng from Fink. Please remove it if possible, the problem is that it is incompatible with libASImage.so. If you remove it we will use a built-in version of libpng.
>
> Cheers, Fons.
>
> On 10/02/2011 17:21, Chiara Zampolli wrote:
>> Dear all,
>>
>> When I try to open a TBrowser, or an editor from a histogram, from my Mac, I get the following error:
>>
>> root [0] new TBrowser()
>> dyld: lazy symbol binding failed: Symbol not found: _png_create_read_struct
>> Referenced from: /Users/Chiara/SOFT/ROOT/v5-27-06b/lib/libASImage.so
>> Expected in: flat namespace
>>
>> dyld: Symbol not found: _png_create_read_struct
>> Referenced from: /Users/Chiara/SOFT/ROOT/v5-27-06b/lib/libASImage.so
>> Expected in: flat namespace
>>
>> I've seen that there is a bug already opened (#72459) about this, but no fix is suggested. My system is:
>>
>> Darwin dhcp247.bo.infn.it 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:11:58 PST 2010; root:xnu-1504.9.26~3/RELEASE_X86_64 x86_64
>>
>> Can someone help me?
>>
>> Thanks in advance and best regards,
>>
>>
>> Chiara
>
> --
> Org: CERN, European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248
> WWW: http://fons.rademakers.org Fax: +41 22 7669640
Received on Thu Feb 10 2011 - 20:51:48 CET