-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/14/10 1:52 PM, Neil Berg wrote:
> Alexander Hansen <alexanderk.hansen <at> gmail.com> writes:
> 
>>
>> On Tue, Jul 13, 2010 at 2:44 PM, Neil Berg <nberg <at> atmos.ucla.edu> wrote:
>>> Hi Alexander,
>>>
>>> I'm using a 64-bit installation.  Here is more of the thread before the 
>>> error
>>> messages appear:
>>>
>>> /usr/bin/make -f Makefile.doxygen    PERL=/usr/bin/perl all
>>> c++ -c -pipe -D__FreeBSD__=6 -Wall -W -O2 -I../qtools -I../libmd5 -I.
>>> -I/sw/include -o ../objects/ma
>>> in.o main.cpp
>>> c++ -Wl,-search_paths_first -o ../bin/doxygen ../objects/main.o  -L../lib
>>> -L/sw/lib -ldoxygen -ldoxy
>>> cfg -lqtools -lpng -lmd5 -liconv
>>> Undefined symbols:
>>>  "_deflateEnd", referenced from:
>>>      _png_write_destroy in libpng.a(libpng12_la-pngwrite.o)
>>> ...
>>>
>>>
>> Hmm...I couldn't reproduce this on my 64-bit installation.  I show the
>> following at the same place:
>>
>> /usr/bin/make -f Makefile.doxygen    PERL=/usr/bin/perl all
>> c++ -c -pipe -D__FreeBSD__=6 -Wall -W -O2 -I../qtools -I../libmd5 -I.
>> -I/sw64/include -o ../objects/main.o main.cpp
>> c++ -Wl,-search_paths_first -o ../bin/doxygen ../objects/main.o
>> -L../lib -L/sw64/lib -ldoxygen -ldoxycfg -lqtools -lpng -lmd5 -liconv
>> /usr/bin/make -f Makefile.doxytag    PERL=/usr/bin/perl all
>> ....
>>
>> The fact that it is linking to the static library (libpng.a) rather
>> than the dynamic library (libpng.dylib) is strange to me.  What Xcode
>> version do you have (e.g. 'fink list xcode')?  I have 3.2.2.
>>
>> Also check to see whether libpng.dylib is actually as it should be:
>>
>> $ file /sw64/lib/libpng.dylib
>> /sw64/lib/libpng.dylib: Mach-O 64-bit dynamically linked shared library 
>> x86_64
>>
>> (with /sw instead of /sw64 for your case).  If that's there and isn't
>> a broken symbolic link, then you might try removing /sw/lib/libpng.a
>> and see if the build works.
>>
>> You should then restore it with "fink reinstall libpng3".  Also do
>> that if libpng.dylib happens to be nonexistent.
> 
> I should have said that I assume it's a 64-bit installation, but when I type
> fink --Version an "i386" appears, does this indicate the 32-bit installation? 
> 

Yes.  You are indeed on a 32-bit Fink installation, not a 64-bit one.

> The version of xcode I am using is 3.2.1. Should I upgrade to 3.2.2?  

It may be worthwhile.

Can I do
> that using fink?
> 

No.  That's from Apple.

> Both the libpng.a and libpng.dylb are located in the /sw/lib directory.  I 
> moved
> the libpng.a up a directory so that only libpng.dylib was in /sw/lib.  I then
> tried to fink install imagemagick and received a new error message:
> 
> /usr/bin/make -f Makefile.doxygen    PERL=/usr/bin/perl all
> c++ -c -pipe -D__FreeBSD__=6 -Wall -W -O2 -I../qtools -I../libmd5 -I.
> -I/sw/include -o ../objects/main.o main.cpp
> c++ -Wl,-search_paths_first -o ../bin/doxygen ../objects/main.o  -L../lib
> -L/sw/lib -ldoxygen -ldoxycfg -lqtools -
> lpng -lmd5 -liconv
> ld: library not found for -lpng
> collect2: ld returned 1 exit status
> make[2]: *** [../bin/doxygen] Error 1
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
> ### execution of make failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-doxygen-1.5.6-5
> (Reading database ... 30494 files and directories currently installed.)
> Removing fink-buildlock-doxygen-1.5.6-5 ...
> Failed: phase compiling: doxygen-1.5.6-5 failed
> 
> 
> 

What does "file /sw/lib/libpng.dylib" give you?

- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw9+noACgkQB8UpO3rKjQ+sEwCgk593nusrEf9nBPtUegdu8j1f
ZHYAnApbEEuYwKH41m4MpcLqa6k7++Mz
=+wvj
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to