compile problems

jsundu jsundu at y...
Mon Apr 1 01:16:39 EST 2002


Hi all,

I'm trying to compile gdal 1.1.6 on a Redhat 7.2 distro. I am
compiling gdal in /usr/local/src. I am using glibc-2.2.5 and
gcc-3.0.4. Upon initiation of "make" I receive the following after
many other messages. Could someone please tell me what might be wrong?

Thanks,
jay


make[1]: Entering directory `/usr/local/src/gdal/ogr'
c++ -c -Iogrsf_frmts -I. -I../port -Wall -fPIC -O2 
-I/usr/local/include ogrinfo.cpp -o ogrinfo.o
c++ ogrinfo.o ogrsf_frmts/ogrsf_frmts.a ogr.a ../port/cpl.a -lpng -lz
-lm -ldl -L/usr/local/lib -lm -L/usr/local/pgsql/lib -lpq -o ogrinfo
/lib/libresolv.so.2: undefined reference to `__res_nclose at GLIBC_2.2'
/lib/libnsl.so.1: undefined reference to `svc_getreq_poll at GLIBC_2.2'
/lib/libnsl.so.1: undefined reference to `__strndup at GLIBC_2.2'
/lib/libnsl.so.1: undefined reference to
`__rpc_thread_svc_pollfd at GLIBC_2.2.3'
/lib/libnsl.so.1: undefined reference to
`__rpc_thread_svc_max_pollfd at GLIBC_2.2.3'
/lib/libresolv.so.2: undefined reference to `__res_init at GLIBC_2.2'
/lib/libresolv.so.2: undefined reference to `__res_ninit at GLIBC_2.2'
/lib/libresolv.so.2: undefined reference to `__res_state at GLIBC_2.2'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/usr/local/src/gdal/ogr'
make: *** [ogr-apps] Error 2





More information about the Gdal-dev mailing list