From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.2.3 PHP Bug Type: Compile Failure Bug description: linking "configure --with-sapdb" failed
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 bug report at http://bugs.php.net/?id=21073&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21073&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21073&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21073&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21073&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21073&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21073&r=support Expected behavior: http://bugs.php.net/fix.php?id=21073&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21073&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21073&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21073&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21073&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21073&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21073&r=isapi