Subject: graphics/gdk-pixbuf build failure on MacOS X 10.2.8 (with solution)
To: None <tech-pkg@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 05/22/2004 20:22:55
The build for gdk-pixbuf fails in the 'demo' directory because it does not 
link properly to jpeg, tiff, and png libraries (all of which exist in 
/usr/pkgsrc/lib). Full listing of the offending commands is included below. 
I can rescue the build by cd'ing to work/gdk-pixbuf-0.22.0/demo and running 
the '/bin/sh ../libtool .....' command with '-ljpeg -lpng -ltiff' added. 
Restarting the build then finishes neatly, but I'm not sure where in pkgsrc 
this change should be made.

Cheers,
Mark



Making all in demo
cd .. \
   && CONFIG_FILES=demo/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating demo/Makefile
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. 
-I/Volumes/NetBSD/pkg/include/glib/glib-1.2 
-I/Volumes/NetBSD/pkg/lib/glib/include 
-I/Volumes/NetBSD/pkg/include/gtk-1.2 
-I/Volumes/NetBSD/pkg/include/glib/glib-1.2 
-I/Volumes/NetBSD/pkg/lib/glib/include -I/usr/X11R6/include 
-no-cpp-precomp -I/Volumes/NetBSD/pkg/include  -O2 
-I/Volumes/NetBSD/pkg/include -c pixbuf-demo.c
/bin/sh ../libtool --mode=link gcc  -O2 -I/Volumes/NetBSD/pkg/include 
-L/Volumes/NetBSD/pkg/lib -L/usr/X11R6/lib -o pixbuf-demo  pixbuf-demo.o 
../gdk-pixbuf/libgdk_pixbuf.la -L/Volumes/NetBSD/pkg/lib -lgmodule -lglib 
-L/Volumes/NetBSD/pkg/lib -Wl,-L/usr/X11R6/lib -L/usr/X11R6/lib 
-L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lintl -liconv -lXi -lXext 
-lX11 -lm -lintl -liconv
mkdir .libs
gcc -O2 
-I/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/include -o 
.libs/pixbuf-demo pixbuf-demo.o 
-Wl,-L/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.x11-buildlink/lib 
../gdk-pixbuf/.libs/libgdk_pixbuf.dylib 
-L/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib 
-L/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.x11-buildlink/lib 
/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib/libgtk.dylib 
/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib/libgdk.dylib 
-lgmodule -lglib -lintl 
/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib/libgmodule.dylib 
/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib/libglib.dylib 
-lXi -lXext -lX11 -lm 
/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib/libintl.dylib 
-liconv -lc 
/Volumes/NetBSD/pkgsrc/graphics/gdk-pixbuf/work/.buildlink/lib/libiconv.dylib
ld: Undefined symbols:
_jpeg_CreateDecompress
_jpeg_destroy_decompress
_jpeg_finish_decompress
_jpeg_finish_output
_jpeg_input_complete
_jpeg_read_header
_jpeg_read_scanlines
_jpeg_resync_to_restart
_jpeg_start_decompress
_jpeg_start_output
_jpeg_std_error
_png_create_info_struct
_png_create_read_struct
_png_destroy_read_struct
_png_get_IHDR
_png_get_channels
_png_get_error_ptr
_png_get_progressive_ptr
_png_get_valid
_png_init_io
_png_process_data
_png_progressive_combine_row
_png_read_image
_png_read_info
_png_read_update_info
_png_set_expand
_png_set_gray_to_rgb
_png_set_interlace_handling
_png_set_progressive_read_fn
_png_set_strip_16
_TIFFClose
_TIFFFdOpen
_TIFFGetField
_TIFFReadRGBAImage
__TIFFfree
__TIFFmalloc
gnumake[2]: *** [pixbuf-demo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all-recursive-am] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/graphics/gdk-pixbuf
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/gdk-pixbuf