Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #3199
Closed
Open
Issue created Aug 07, 2002 by Peter Bortas@zinoOwner

modules/Oracle configure.in doesn't know about 9i

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3199

Reported by Dan Nelson dnelson_1901@yahoo.com

The Oracle module's configure.in is a maze of twisty "check to see if this file exists" tests, and doesn't check for Oracle 9 libraries.

It probably should be rewritten using AC_SEARCH_LIBS, since it seems Oracle has standardised on "-lclntsh" for shlib usage since Oracle 8, and Oracle 9 has added a libclntst.a for static linking.

But, here's a simple fix in the meantime :)

cvs server: Diffing .
Index: configure.in
===================================================================
RCS file: /cvs/Pike/7.3/src/modules/Oracle/configure.in,v
retrieving revision 1.33
diff -u -r1.33 configure.in
--- configure.in        2002/01/27 00:54:00     1.33
+++ configure.in        2002/08/07 14:13:48
@@ -88,7 +88,8 @@
   else
     if test x"$pike_cv_oracle_oracle_home" != xno && \
        test -f "$pike_cv_oracle_oracle_home/lib/libcommon.a" -o \
-             -f "$pike_cv_oracle_oracle_home/lib/libcommon8.a"; then
+            -f "$pike_cv_oracle_oracle_home/lib/libcommon8.a" -o \
+            -f "$pike_cv_oracle_oracle_home/lib/libcommon9.a"; then
   echo "$pike_cv_oracle_oracle_home/lib" > conftest

@@ -96,7 +97,7 @@ if test x"$pike_cv_oracle_oratab_file" = xno; then :; else

         sed -e '/^#/d' < $pike_cv_oracle_oratab_file | while IFS=":" read
sid dir bootstart; do
-          if test -d "$dir/." && test -f "$dir/lib/libcommon.a" -o -f
"$dir/lib/libcommon8.a"; then
+          if test -d "$dir/." && test -f "$dir/lib/libcommon.a" -o -f
"$dir/lib/libcommon8.a" -o -f "$dir/lib/libcommon9.a"; then
            if test x"$pike_cv_oracle_oracle_home" = xno; then
              AC_DEFINE_UNQUOTED(ORACLE_HOME, "${dir}")
            else
@@ -210,7 +211,8 @@
     if test "x$pike_cv_sys_os" = "xWindows_NT"; then
       ORACLE_LIBS="-loci"
     else
-      if test -f "$oracle_lib_dir/libcommon8.a"; then
+      if test -f "$oracle_lib_dir/libcommon8.a" -o \
+              -f "$oracle_lib_dir/libcommon9.a" ; then
         ORACLE_LIBS="-lclntsh"
       else
         if test -f "$oracle_lib_dir/libcore4.a"; then
Assignee
Assign to
Time tracking