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

On 7/16/11 7:56 PM, Alexander Hansen wrote:
> On 7/16/11 7:44 PM, Alexander Hansen wrote:
>> On 7/16/11 7:31 PM, Charles C. Kankelborg wrote:
>>> Hello,
> 
>>> I recently removed /sw and reinstalled fink. Now xfig cannot 
>>> export drawings anymore. I see that fig2dev is no longer in 
>>> /sw/bin, even though transfig-graphicx is installed. I removed, 
>>> rebuilt and reinstalled transfig-graphicx. It appeared to have 
>>> completed normally. While /sw/bin/transfig reappeared, I still
>>> do not have fig2dev. The only indication of an error I see during
>>> the build of transfig is:
> 
>>> cc -Os -Wall -Wpointer-arith -no-cpp-precomp   -I.. -I../.. 
>>> -I/usr/ X11/include    -D__i386__ -D__DARWIN__ -DNO_ALLOCA 
>>> -DCSRG_BASED      -DUSE_PNG -DUSE_XPM -I/sw/include -I/usr/ 
>>> X11R6/include/X11 -DNFSS    -DLATEX2E_GRAPHICS   -DDVIPS -DI18N - 
>>> DFIG2DEV_LIBDIR=/sw/lib/fig2dev 
>>> -DFIG2DEV_LIBDIR_STR=\"/sw/lib/fig2dev \" 
>>> -DBITMAPDIR=\"/sw/share/xfig/bitmaps\"  -I/sw/include  -c -o 
>>> readpng.o readpng.c readpng.c: In function 'read_png': 
>>> readpng.c:65: error: dereferencing pointer to incomplete type 
>>> readpng.c:81: error: dereferencing pointer to incomplete type 
>>> readpng.c:82: error: dereferencing pointer to incomplete type 
>>> readpng.c:86: error: dereferencing pointer to incomplete type 
>>> readpng.c:88: error: dereferencing pointer to incomplete type 
>>> readpng.c:130: warning: implicit declaration of function 
>>> 'png_set_dither' readpng.c:177: warning: pointer targets in 
>>> assignment differ in signedness make[2]: *** [readpng.o] Error 1 
>>> make[1]: *** [dev/libtransfig.a] Error 2
> 
> 
>>> ________________________________________________________________________
>
>>> 
>>> 
> 
>> Charles Kankelborg AC7NY |
>>> 260C EPS Building        | "Ex...excuse me...there is nothing 
>>> Physics Department       |  wrong with the action in this
>>> piano." Montana State University | Bozeman, MT 59717        |
>>> --Ray Charles in Phone: 406-994-7853      |          The Blues
>>> Brothers FAX: 406-994-4452      |
>>> http://solar.physics.montana.edu/kankel/
> 
> 
> 
>> What do you get from:
> 
>> fink -V | head -n3 fink list xcode
> 
>> If you're on 10.5, whether you're using Apple's X11 or Xquartz
>> would be an important datum, too.
> 
> Following up.
> 
> The package links to X11's libpng instead of Fink's: $ otool -L
> /sw32/bin/fig2dev /sw32/bin/fig2dev: /sw32/lib/libpng12.0.dylib
> (compatibility version 45.0.0, current version 45.0.0) 
> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
> 1.2.3) /usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0,
> current version 16.0.0) /usr/X11/lib/libX11.6.dylib (compatibility
> version 9.0.0, current version 9.0.0) /usr/lib/libSystem.B.dylib
> (compatibility version 1.0.0, current version 125.2.11)
> 
> I reproduced this error on 10.5 with Xquartz 2.6.1 installed.  That
> has libpng15, and it's not exactly compatible with other libpng
> versions.
> 
> The package should be fixed to ensure that it uses fink's libpng. 
> (maintainer cc'ed).

I just committed a quick fix.  Hopefully that's OK with David.   By
using Fink's "flag-sort" script, the order of the compiler flags is
altered so that Fink's libpng is used:

$ otool -L /sw/bin/fig2dev
/sw/bin/fig2dev:
        /sw/lib/libpng12.0.dylib (compatibility version 45.0.0, current version
45.0.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
1.2.3)
        /usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current
version 16.0.0)
        /usr/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.1.7)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1.0.0)

- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4iKcYACgkQB8UpO3rKjQ+VvQCgkKhPpUuBUUhZ2guqpwn3MKFb
9sYAnjZ4HgZyHeG182zM42HvIU1xSSvr
=TU75
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to