LDFLAGS=-lclntsh -lcommon -lcore4 -lnlsrtl3or
setenv LDFLAGS "-lclntsh -lcommon -lcore4 -lnlsrtl3"depending on the shell that you are using. We have found that the required libraries are frequently dependent upon the version of Oracle, the version of any additional Oracle component -- such as SQL*Net -- and possibly the operating system. Hence, they will likely differ from those shown. We further warn that the order in which the libraries are listed may be important. We have also witnessed that certain libraries may require multiple listings. Please refer to your Oracle documentation.
-with-oracle -site-static-libraries=OracleLibPathwhere OracleLibPath is the directory that contains the Oracle client libraries.
With some configurations, compilation of Pro*C files requires that you use a C compiler other than the default one. If such is the case, then additionally pass the option
-with-cc=compilerto configure, indicating that compiler compiler should instead be used.
As a final measure, if Oracle include files cannot be located automatically, then employ the option
-site-includes=OracleHeaderPathwhere OracleHeaderPath is the directory that contains the Oracle client header files.
Note the final message that configure produces before completing. It indicates how you should invoke makexsb to build an Oracle-enabled version of XSB (step 4).
make -f proc.mk orastuff.cA sample makefile, proc.mk, is provided, but you should use the one included with your version of Oracle. This used to be found with sample SQL*Plus and Pro*C files in the Oracle installation hierarchy.
Note: this file may provide insight into the library paths and linking options required by your Oracle installation.
If errors ensue, then review the cause(s) and consider employing the additional options mentioned in step 2. If one or more are appropriate, then apply them, repeating this process from that step.
When makexsb completes, it will provide you with the name of the XSB executable. Unless you have used the configuration option
-config-tag=tagthis will likely be ../bin/xsb-ora.