undefined reference to png

Edward Fialkowski wef1 at CEC.WUSTL.EDU
Fri Aug 24 16:30:05 EDT 2007


Hi List, I have run into an error with ogr on another program FeatureServer,
which started a catastrophic string of events.

So, basically gdal broke and I'm working on reinstalling it.  I had a few
difficult errors to get by, but now I'm stuck at:

g++ ogrinfo.o -o .libs/ogrinfo  /usr/local/src/gdal-1.4.2/.libs/libgdal.so
-L/usr/local/lib -L/usr/local/src/netcdf-3.6.2
-L/usr/local/src/netcdf-3.6.2/lib
-lrt -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl
-lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz
-Wl,--rpath -Wl,/usr/lib64
/usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to
`png_error'
/usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to
`png_get_interlace_type'
/usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to
`png_sig_cmp'
etc. etc. lots of undefined reference...
/usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to
`png_get_PLTE at PNG12_0'
/usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to
`png_get_tRNS at PNG12_0'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/usr/local/src/gdal-1.4.2/ogr'
make: *** [ogr-apps] Error 2

my configuration options are:
./configure CFLAGS=-fPIC CPPFLAGS=-fPIC CXXFLAGS=-fPIC
--with-netcdf=/usr/local/src/netcdf-3.6.2 --with-png=/usr/local/lib

I'm guessing the libpng library is not getting linked, but I'm just not sure
what to do about it.

Anyone have any ideas?
Thanks!
-Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070824/8153d4f0/attachment.html


More information about the mapserver-users mailing list