Hi,

I guess I found the problem.

First some details about the oracle support in tntdb and what has 
changed recently.

Previously I used my own m4 macros in configure. But recently I found a 
check for oracle in the autoconf archive, so I replaced my stuff with 
those in the hope they are better. The autoconf archive is a collection 
of autoconf checks. And since they are published that way, I expect them 
to be written from people, who know autoconf and m4 better then me and 
also much better tested.

It looks like it is not really that widespread used as I expected. If 
you ask google bout the macro the first hit is the link to 
autoconf-archive and the second is to tntdb. Looks like we are the top 
user of that macro=-O .

You can find the used macro in tntdb/m4/ax_lib_oracle_oci.m4 with some 
documentation inside. You get a usage using "./configure --help|less".

But yes, the README.git must be updated. Or as an alternative revert 
back to my macros if the new ones do not work as expected.

When looking at the macro and the output it is quite obvious, that the 
macro has problems with splitting the version number into major and 
minor. The macro takes the expected version number as argument. And I 
guess (it is not really documented) the number must be passed as 
major.minor, so instead of

AX_LIB_ORACLE_OCI([8])

we need:

AX_LIB_ORACLE_OCI([8.0])

I have no oracle here but I tried to verify it in a small shell script 
and it looks much better. I checked in a fix.

Tommi

Am 14.08.2014 13:41, schrieb Andreas Welchlin:
> Hi List,
>
> I am using tntdb with PostgreSQL and it works fine - out of the box.
>
> Now I tried to switch to Oracle 11 and I installed the Oracle 11 client
> basic package and the Oracle 11 development package (on Fedora).
>
> I tried to compile it using:
>
> ./configure --with-oci-include=/usr/include/oracle/11.2/client64
> --with-oci-lib=/usr/lib/oracle/11.2/client64/lib
>
> But before I had to set the LD_LIBRARY_PATH (otherwise configure exits
> with an error message):
> export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
>
>
> Afterwards I got the error below:
>
> checking for Oracle OCI headers in /usr/include/oracle/11.2/client64... yes
> checking for Oracle OCI libraries in
> /usr/lib/oracle/11.2/client64/lib... yes
> checking if Oracle OCI version is >= 8... expr: non-integer argument
> expr: syntax error
> no
> configure: error: Oracle 11.2 found, but required version is 8
>
> It this true? I can not imagine that Oracle 8 is required but 11 or 12
> do not work.
>
> Is there a bug in the configure script (I think yes, because it says
> "expr: syntax error"?
>
> Any hints?
>
> Btw: I saw that the documentation (Howto and README.git) says that
> configure should be called using --with-oracle. But
> this seems to be an old switch. Should be changed to "configure
> --with-oci-lib= .. --with-oci-include=...".
>
> Andreas
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general


------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to