#21073 [Opn->Csd]: linking "configure --with-sapdb" failed
| From: | kalowsky@php.net | Date: | Mon, 06 Jan 2003 17:53:52 +0000 |
| Subject: | #21073 [Opn->Csd]: linking "configure --with-sapdb" failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29214@lists.php.net to get a copy of this message | ||
ID: 21073
Updated by: kalowsky@php.net
Reported By: thomas.theodor.koetter@sap.com
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Linux
PHP Version: 4.2.3
New Comment:
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).
Previous Comments:
------------------------------------------------------------------------
[2002-12-18 04:49:39] thomas.theodor.koetter@sap.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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21073&edit=1