On Tue, Jun 10, 2008 at 12:21:21PM -0400, Daniel Macks wrote:
> On Tue, Jun 10, 2008 at 12:08:23PM -0400, Alexander Hansen wrote:
> > David R. Morrison wrote:
> > > The xquartz-installed libpng library seems to be interfering with us 
> > > here; can anybody help me figure out how and why?
> > >
> > >From: Thomas Kotzian <[EMAIL PROTECTED] 
> > >> i tried to build gd2-2.0.35-3 and got an error:
> > >>
> > >> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
> > >> -I.   -I/usr/X11/include/freetype2 -I/usr/X11/include 
> > >> -I/usr/X11R6/include -I/sw/include -I/usr/X11R6/include  -g -O2 -c -o 
> > >> gdxpm.lo gdxpm.c
> [...]
> > >> /bin/sh ./libtool --tag=CC --mode=link gcc  -g -O2  -L/usr/X11/lib 
> > >> -Wl,-framework,CoreServices,-framework,ApplicationServices  -L/sw/lib 
> > >> -L/sw/lib -L/usr/X11R6/lib -o libgd.la -rpath /sw/lib -version-info 
> > >> 2:0:0  gd.lo gdfx.lo gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo 
> > >> gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo 
> > >> gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo gdcache.lo 
> > >> gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo gdfontt.lo gdft.lo 
> > >> gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -L/sw/lib 
> > >> -liconv -R/sw/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz
> 
> Also looks non-ideal to find x11's stuff instead of fink's (because we
> follow Shlibs policy whereas apple/x11 does not:) I think those early
> flags come from freetype-config, so might be useful to hack the pkg to
> find *fink's* libpng.
> 
> gd2 doesn't use pkg-config, so would have to fiddle with the configure
> or Makefile directly...not sure pangocairo is any better for this
> case.

Looks likely to be fixed as a side-effect of pangocairo:

/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.   
-I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include 
-I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include -I/sw/include 
-I/usr/X11R6/include -I/sw/lib/fontconfig2/include  -g -O2 -c -o wbmp.lo wbmp.c

/bin/sh ./libtool --tag=CC --mode=link gcc  -g -O2  -L/sw/lib/freetype219/lib 
-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices  -L/sw/lib 
-L/sw/lib/fontconfig2/lib -L/sw/lib -L/usr/X11R6/lib -L/sw/lib/fontconfig2/lib 
-o libgd.la -rpath /sw/lib -version-info 2:0:0  gd.lo gdfx.lo gd_security.lo 
gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo 
gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo 
gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo gdfontt.lo gdft.lo 
gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -L/sw/lib -liconv 
-R/sw/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz 
gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libgd.2.0.0.dylib  
.libs/gd.o .libs/gdfx.o .libs/gd_security.o .libs/gd_gd.o .libs/gd_gd2.o 
.libs/gd_io.o .libs/gd_io_dp.o .libs/gd_gif_in.o .libs/gd_gif_out.o 
.libs/gd_io_file.o .libs/gd_io_ss.o .libs/gd_jpeg.o .libs/gd_png.o 
.libs/gd_ss.o .libs/gd_topal.o .libs/gd_wbmp.o .libs/gdcache.o .libs/gdfontg.o 
.libs/gdfontl.o .libs/gdfontmb.o .libs/gdfonts.o .libs/gdfontt.o .libs/gdft.o 
.libs/gdhelpers.o .libs/gdkanji.o .libs/gdtables.o .libs/gdxpm.o .libs/wbmp.o  
-L/sw/lib/freetype219/lib -L/sw/lib -L/sw/lib/fontconfig2/lib -L/usr/X11R6/lib 
/sw/lib/libiconv.dylib -lXpm -lX11 /sw/lib/libjpeg.dylib 
/sw/lib/fontconfig2/lib/libfontconfig.dylib /sw/lib/libexpat.dylib 
/sw/lib/freetype219/lib/libfreetype.dylib /sw/lib/libpng12.dylib -lz  
-Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices 
-install_name  /sw/lib/libgd.2.dylib -Wl,-compatibility_version -Wl,3 
-Wl,-current_version -Wl,3.0 

By using fink's freetype (I think, though could also involve fink's
fontconfig), the initial -I and -L for that were to x11 paths are now
to those libs' hidden finkish places instead, which lets the later
fink flags (from png or other non-pangocairo-related libs) show
through, so we get fink's png instead of x11's.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to