php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21073 linking "configure --with-sapdb" failed
Submitted: 2002-12-18 04:49 UTC Modified: 2003-01-06 11:53 UTC
From: thomas dot theodor dot koetter at sap dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
 [2002-12-18 04:49 UTC] thomas dot theodor dot koetter at sap dot com
After "./configure --with-sapdb=<sapdb dir>" the make run ends in

:
/bin/sh /home/remuser/ttk/php-4.2.3/libtool --silent --mode=link gcc -I. -I/home/remuser/ttk/php-4.2.3/ -I/home/remuser/ttk/php-4.2.3/main -I/home/remuser/ttk/php-4.2.3 -I/home/remuser/ttk/php-4.2.3/Zend -I/home/remuser/ttk/php-4.2.3/ext/mysql/libmysql -I/home/remuser/ttk/odbc_7.3.0.28//incl -I/home/remuser/ttk/php-4.2.3/ext/xml/expat  -I/home/remuser/ttk/php-4.2.3/TSRM -g -O2   -o php -export-dynamic     stub.lo libphp4.la 
/usr/i486-suse-linux/bin/ld: cannot find -lsqlrte
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1


The problem is that entries regarding sqlrte in ./configure
and ./ext/odbc/config.m4 for SAP DB are wrong.

Following patches fix the problem:

patch for ./configure:

*** configure.orig	Wed Dec 18 10:08:58 2002
--- configure	Wed Dec 18 10:08:52 2002
***************
*** 42171,42186 ****
    esac
  
  	
-  case sqlrte in
-  c|c_r|pthread*) ;;
-  *)
- 
-    
-   LIBS="-lsqlrte $LIBS"
- 
- 
-   ;;
-   esac
  
      ODBC_TYPE=sapdb
      cat >> confdefs.h <<\EOF
--- 42171,42176 ----



patch for ./ext/odbc/config.m4:

*** config.m4.orig      Mon Mar  4 10:10:31 2002
--- config.m4   Wed Dec 18 11:48:43 2002
***************
*** 135,141 ****
      PHP_ADD_INCLUDE($withval/incl)
        PHP_ADD_LIBPATH($withval/lib)
        PHP_ADD_LIBRARY(sqlod)
-       PHP_ADD_LIBRARY(sqlrte)
      ODBC_TYPE=sapdb
      AC_DEFINE(HAVE_SAPDB,1,[ ])
      AC_MSG_RESULT(yes)
--- 135,140 ----



Regards  Thomas

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 11:53 UTC] kalowsky@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Should not exist in the latest release of PHP (4.3.0).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 05:01:28 2024 UTC