Re: [gdal-dev] Build OGR with Oracle support

2009-06-23 Thread Normand Savard

Normand Savard wrote:

Mateusz Loskot wrote:

I maintain macros detecting Oracle (autotools at
http://github.com/mloskot/workshop/tree/) which are used in GDAL
and I'm interested in improving it, so feel free to report any problems

  

Mateusz,

I'm wondering if a switch could be add to detect libnnzxx.so location 
instead of having to specify $LD_LIBRARY_PATH or by setting the 
library path in /etc/ld.so.conf.d/oracle.conf and running ldconfig as 
root (as stated by Andreas)?


Norm

I just noticed today that I replied to Mateusz only.  Sorry for that.  
Replying to the list as well now.


Norm
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Build OGR with Oracle support

2009-06-19 Thread Normand Savard

Mateusz Loskot wrote:

Andreas Neumann wrote:

/usr/bin/ld: warning: libnnz10.so, needed by
/usr/local/lib/instantclient_10_2/libclntsh.so, not found (try using
 -rpath or -rpath-link)


The path above and the path below are different.


-L/home/fgs/fgs-dev/built/instantclient_11_1 -lc\
lntsh


Are you sure you configure against one version of Oracle stuff?
From what I can see, you have two versions.


Mateusz,

Maybe I misinterpreted Andreas' email but I think he's trying to compile 
GDAL/OGR with OCI (Oracle Instantclient) outside of fgs-dev.  Can you 
confirm Andreas?


Norm
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Build OGR with Oracle support

2009-06-19 Thread Normand Savard

Andreas Neumann wrote:

Hi,

I was trying to get OCI support on my Ubuntu server and followed your
instructions.

I am struggling with the libnnz10.so: libnnz10.so is present and I also
set the LD_LIBRARY_PATH accordingly.

But the configure script still fails. In the config.log I get the
following messages:


/usr/bin/ld: warning: libnnz10.so, needed by
/usr/local/lib/instantclient_10_2/libclntsh.so, not found (try using
 -rpath or -rpath-link)
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_ModifyCipherSuites'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzosCipherSpecToStr'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_Initialize'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzosgpc_GetProtocolVer'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nztwOpenWallet'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`A_X931RandomInit'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzosGetSupportedCipher'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_ServiceWriteQueue'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_DisableClientAuthentication'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nztiGetSecInfo'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_Write'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzduui2_destroy_ui'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`_intel_fast_memset'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nztGetSubjectName'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzgbllsm_location_shared_memory'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_setThrUse'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzteMyCert'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzteDestroyPersona'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_RetrievePersonaCopy'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzosSCCS_SetCRLCacheSize'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nztnGCL_Get_Certificate_List'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_setCRLFile'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`A_X931RandomContextDestroy'
/usr/local/lib/instantclient_10_2/libclntsh.so: undefined reference to
`nzos_OToolkitContext'
..
more messages ..
..
collect2: ld returned 1 exit status
configure:24161: $? = 1
configure: failed program was:
|
| /* confdefs.h.  */
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define STDC_HEADERS 1

..
more messages ..
..



Any idea why it can't find libnnz10.so despite it being present and the
LD_LIBRARY_PATH set?

Here are my configure-params:
./configure --with-python --with-perl --with-php --with-curl --with-expat
--with-pg=/usr/local/pgsql/bin/pg_config --with-xerces
--with-grass=/usr/local/grass-6.4.0RC2/
--with-oci-include=/usr/local/lib/instantclient_10_2/sdk/include
--with-oci-lib=/usr/local/lib/instantclient_10_2

  

Andrea,

I was thinking of one other thing.  It is good to set LD_LIBRARY_PATH  
variable but  you  have to export it.  For instance, for FGS I needed to 
do something like this:


   export LD_LIBRARY_PATH=$FGS_BUILD_HOME/$oci_ARCHIVE_DIR:$LD_LIBRARY_PATH

Norm



___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev