tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

graphics/gd on darwin

Trying to compile graphics/gd on darwin.   It fails with:

/bin/sh ./libtool --tag=CC --mode=link gcc  -pipe -O2 -I/usr/pkg/include 
-I/usr/X11/include/freetype2 -I/usr/include -D_REENTRANT   -L/usr/X11/lib 
-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices  -L/usr/pkg/lib 
-L/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11/lib -L/usr/lib -L/usr/X11/lib -o -rpath /usr/pkg/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/usr/lib 
-liconv -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lpthread
grep: /usr/pkg/src/pkgsrc/graphics/gd/work/.buildlink/lib/ No such 
file or directory
sed: /usr/pkg/src/pkgsrc/graphics/gd/work/.buildlink/lib/ No such 
file or directory
libtool: link: 
`/usr/pkg/src/pkgsrc/graphics/gd/work/.buildlink/lib/' is not a 
valid libtool archive
*** Error code 1

There are two libfontconfig's on the system, the one that came with the
OS and the one that pkgsrc decided to compile.  I believe this error is 
an artifact of the native OS /usr/X11/lib/'s line:

% fgrep iconv /usr/X11/lib/
dependency_libs=' -L/usr/X11/lib /usr/lib/ -L/usr/X11/lib 
/usr/X11/lib/ -lz /usr/lib/'

where as the one in pkgsrc has:
% fgrep iconv /usr/pkg/lib/
dependency_libs='-L/usr/pkg/lib -L/usr/X11/lib -L/usr/lib -lfreetype -lz 
-lexpat -liconv'

the buildlink3 sed expression does interesting things with that
"/usr/lib/" (mainly converting it to the not-there-file

It is interesting that pkgsrc previously built a libfontconfig, but 
the compile of gd decided not to use it.   However, if I add the line:

.include "../../fonts/fontconfig/"

to graphics/gd/Makefile then everything builds just fine (using the pkgsrc

% bmake show-var VARNAME=USE_BUILTIN.fontconfig

all a bit puzzling, but at this point i'm inclined to just add the
include to fontconfig/ to gd's makefile and move on
unless there is more to it than than?


Home | Main Index | Thread Index | Old Index