I noticed the following lines in file
³/sw/src/libpng3-1.2.5-2/libpng-1.2.5/scripts/Makefile.darwin²:

> PNGMAJ = 0
> PNGMIN = 1.2.5
> PNGVER = $(PNGMAJ).$(PNGMIN)
> LIBNAME = libpng12

Therefore, the following can¹t possibly work:

> $(LIBNAME).$(PNGVER).dylib: $(OBJSDLL)
>     $(CC) -dynamiclib \
>      -install_name $(LIBPATH)/$(LIBNAME).$(PNGMAJ).dylib \
>      -current_version $(PNGVER) -compatibility_version $(PNGVER) \
>      -o $(LIBNAME).$(PNGVER).dylib \
>      $(OBJSDLL) -L$(ZLIBLIB) -lz

$(PNGVER) evaluates to ³0.1.2.5² which is ill-formatted, according to the ld
man page.  The ld man page requires that

     -compatibility_version number
                 Specifies the compatibility version number of the library.
                 When a library is loaded by dyld, the compatibility version
                 is checked and if the program's version is greater that the
                 library's version, it is an error.  The format of number is
                 X[.Y[.Z]] where X must be a positive non-zero number less
                 than or equal to 65535

So 1.2.5 would be valid, but 0.1.2.5 isn¹t.

It would seem that 
³/sw/src/libpng3-1.2.5-2/libpng-1.2.5/scripts/Makefile.darwin² is broken.

$ld -v
@(#)PROGRAM:ld  PROJECT:ld64-85.2.1
$ uname -a
Darwin hostname 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT
2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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

Reply via email to