undefined reference to png_...

Kendall Bell <[email protected]> Tue, 06 Mar 2007 14:49:45 -0600
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
I can't seem to be able to compile any gui applications. During linking 
I get the following messages:

/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_set_tRNS_to_alpha@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_destroy_read_struct@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_create_read_struct@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_set_palette_to_rgb@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_bit_depth@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_set_read_fn@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_read_image@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_io_ptr@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_error@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_read_info@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_color_type@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_rowbytes@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_valid@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_create_info_struct@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_channels@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_image_height@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_get_image_width@PNG12_0'
/usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined 
reference to `png_sig_cmp@PNG12_0'


Would anyone know how to fix this?