[mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation

gregcorradini gregcorradini at gmail.com
Sat Jan 29 19:11:32 PST 2011


Jefff,  the output you were looking for is below. Sorry, I didn't see your
reply until now :)

Also of interest is the fact that on the gdal-dev forums Frank said the
gdal-config line "-L/usr/local/lib <libraries>" just tells the linker where
to look first, not that the libraries are there. There's always a fallback.
His exact words:

"""
You are misreading the above.  The -L/usr/local/lib directive tells
the linker to look *first* in /usr/local/lib for libraries and then fallback
to the usual locations - normally /usr/lib.  It does not mean that all the
following libraries are expected to be found in /usr/local/lib.  Often the
configure logic puts a mismash of -L directives in the link directives
which can result in link time problems. 
"""

Well, the libodbc* libraries I need are in /usr/lib among other locations.
So it should already be looking there. I've compiled and installed other
GDAL dependent software on this computer without this much of a problem

--------------OUTPUT-----------------------------
$ gdal-config --libs
-L/usr/local/lib -lgdal
$
$
$ gdal-config --dep-libs
-L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lxerces-c -lpthread
-ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -lnetcdf -L/usr/lib
-lpq -lz -lpthread -lm -lrt -ldl -lcurl -Wl,-Bsymbolic-functions
$
$
$ ls /usr/lib/libgdal*
/usr/lib/libgdal1.6.0.so.1       /usr/lib/libgdal1.7.0.so.1
/usr/lib/libgdal1.6.0.so.1.13.3  /usr/lib/libgdal1.7.0.so.1.14.3
$
$
$ ldd /usr/lib/libgdal1.7.0.so.1.14.3
	linux-vdso.so.1 =>  (0x00007fff28bff000)
	libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00007ff483bba000)
	libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00007ff48399e000)
	libodbc.so.1 => /usr/lib/libodbc.so.1 (0x00007ff483737000)
	libodbcinst.so.1 => /usr/lib/libodbcinst.so.1 (0x00007ff483526000)
	libexpat.so.1 => /lib/libexpat.so.1 (0x00007ff4832fd000)
	libxerces-c.so.28 => /usr/lib/libxerces-c.so.28 (0x00007ff482d29000)
	libjasper.so.1 => /usr/lib/libjasper.so.1 (0x00007ff482ad2000)
	libhdf5.so.6 => /usr/lib/libhdf5.so.6 (0x00007ff482529000)
	libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007ff482305000)
	libdfalt.so.0 => /usr/lib/libdfalt.so.0 (0x00007ff482063000)
	libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0x00007ff481e43000)
	libgif.so.4 => /usr/lib/libgif.so.4 (0x00007ff481c39000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007ff481a15000)
	libpng12.so.0 => /lib/libpng12.so.0 (0x00007ff4817ee000)
	libnetcdf.so.6 => /usr/lib/libnetcdf.so.6 (0x00007ff4814b4000)
	libpq.so.5 => /usr/lib/libpq.so.5 (0x00007ff48128d000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007ff481089000)
	libdap.so.10 => /usr/lib/libdap.so.10 (0x00007ff480da8000)
	libdapserver.so.7 => /usr/lib/libdapserver.so.7 (0x00007ff480b96000)
	libdapclient.so.3 => /usr/lib/libdapclient.so.3 (0x00007ff48095b000)
	libidn.so.11 => /usr/lib/libidn.so.11 (0x00007ff480727000)
	liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007ff480519000)
	libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007ff4802ce000)
	librt.so.1 => /lib/librt.so.1 (0x00007ff4800c5000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007ff47fe91000)
	libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007ff47fbef000)
	libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007ff47f976000)
	libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00007ff47f628000)
	libz.so.1 => /lib/libz.so.1 (0x00007ff47f410000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff47f1f2000)
	libspatialite.so.2 => /usr/lib/libspatialite.so.2 (0x00007ff47ec30000)
	libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0x00007ff47e9dd000)
	libmysqlclient.so.16 => /usr/lib/libmysqlclient.so.16 (0x00007ff47e5ce000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff47e2c8000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ff47e0b2000)
	libm.so.6 => /lib/libm.so.6 (0x00007ff47de2e000)
	libc.so.6 => /lib/libc.so.6 (0x00007ff47daab000)
	libgeos-3.2.2.so => /usr/local/lib/libgeos-3.2.2.so (0x00007ff47d737000)
	libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007ff47d52c000)
	libicuuc.so.42 => /usr/lib/libicuuc.so.42 (0x00007ff47d1d1000)
	libicudata.so.42 => /usr/lib/libicudata.so.42 (0x00007ff47c08c000)
	libhdf5_hl.so.6 => /usr/lib/libhdf5_hl.so.6 (0x00007ff47be59000)
	libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007ff47bc07000)
	libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007ff47b87a000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007ff47b5b8000)
	libcom_err.so.2 => /lib/libcom_err.so.2 (0x00007ff47b3b4000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ff47b17a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff484862000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x00007ff47af61000)
	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007ff47ad46000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007ff47ab20000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007ff47a918000)
	libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00007ff47a714000)
	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007ff47a503000)
	libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007ff47a2ff000)
	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007ff47a069000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x00007ff479e4f000)


-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5973850.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list