RE: [PHP4BETA] compile --with-xml problems

From: Date: Tue, 21 Mar 2000 18:25:01 +0000
Subject: RE: [PHP4BETA] compile --with-xml problems
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12459@lists.php.net to get a copy of this message
Okay, part of this may be a repeat post - I didn't see an earlier post go through. After fixing the xml stuff (Apache 1.3.12 (hey! expat) and Beta4pl1 fixed it) I am getting "signal Segmentation fault (11)" in my apache error_log when trying some php scripts. I've narrowed it down to any that use ODBC. PHP3 still works fine, but Best4pl1 segfaults. Below is an example of code that causes it, any ideas? Thanks, Andrew --------- <? putenv("LD_LIBRARY_PATH=/usr/local/openlink/odbcsdk/lib"); putenv("UDBCINI=/dbs/openlink/bin/udbc.ini"); putenv("ODBCINI=/dbs/openlink/bin/odbc.ini"); putenv("DebugFile=/tmp/udbc.out"); putenv("PATH=$PATH;/dbs/openlink/bin"); //phpinfo(); $dsn="DSN=OracleLocal"; $user="scott"; $password="tiger"; $sql="SELECT * FROM EMP"; /* directly execute mode */ if ($conn_id=odbc_connect("$dsn","","")){ echo "connected to DSN: $dsn<br><br>"; if($result=odbc_do($conn_id, $sql)) { echo "executing '$sql'<br><br>"; $num_rows=odbc_num_rows($result); echo "$num_rows rows returned, fetching a row<BR><br>"; odbc_fetch_row($result,&$row); echo "row number : $row<BR><BR>"; echo "Results:<BR>"; odbc_result_all($result); echo "freeing result<br><br>"; odbc_free_result($result); }else{ echo "can not execute '$sql'<BR><BR>"; } echo "closing connection $conn_id"; odbc_close($conn_id); }else{ echo "can not connect to DSN: $dsn<br><br>"; } ?> -----Original Message----- From: Andi Gutmans [mailto:andi@zend.com] Sent: Monday, March 20, 2000 3:45 PM To: ahill@openlinksw.com; Php4beta Subject: Re: [PHP4BETA] compile --with-xml problems Try Beta 4 pl1. Andi At 03:26 PM 3/20/00 -0500, Andrew Hill wrote: >Hi folks, > >Not sure what I am missing here. > >I am trying to compile php4b03 with the following: >./configure --with-openlink=/dbs/openlink/v32 --with-iodbc=usr/local/lib -- w >ith-mysql --with-xml=../expat --with-apache=../apache_1.3.6 --enable-track- v >ars > >This works fine, although (checking for XML support... yes (static)) shows, >unfortunatley it then chokes on the make. > >The errors at the end concern me - can anyone give me any pointers or point >me at some docs? > >Thanks, >Andrew > > >#make > >make all-recursive >make[1]: Entering directory `/usr/local/src/php-4.0b3' >Making all in libzend >make[2]: Entering directory `/usr/local/src/php-4.0b3/libzend' >make[2]: Leaving directory `/usr/local/src/php-4.0b3/libzend' >Making all in ext >make[2]: Entering directory `/usr/local/src/php-4.0b3/ext' >Making all in apache >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/apache' >make[3]: Nothing to be done for `all'. >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/apache' >Making all in db >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/db' >make[3]: Nothing to be done for `all'. >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/db' >Making all in gd >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/gd' >make[3]: Nothing to be done for `all'. >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/gd' >Making all in mysql >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/mysql' >Making all in odbc >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/odbc' >make[3]: Nothing to be done for `all'. >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/odbc' >Making all in pcre >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/pcre' >Making all in pcrelib >make[4]: Entering directory `/usr/local/src/php-4.0b3/ext/pcre/pcrelib' >make[4]: Nothing to be done for `all'. >make[4]: Leaving directory `/usr/local/src/php-4.0b3/ext/pcre/pcrelib' >make[4]: Entering directory `/usr/local/src/php-4.0b3/ext/pcre' >make[4]: Nothing to be done for `all-am'. >make[4]: Leaving directory `/usr/local/src/php-4.0b3/ext/pcre' >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/pcre' >Making all in session >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/session' >make[3]: Nothing to be done for `all'. >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/session' >Making all in standard >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/standard' >make[3]: Nothing to be done for `all'. >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/standard' >Making all in xml >make[3]: Entering directory `/usr/local/src/php-4.0b3/ext/xml' >/bin/sh ../../libtool --silent --mode=compile >gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I >../.. -I../../libzend -I/usr/local/src/apache_1.3.6/src/include -I/usr/loca l >/src/apache_1.3.6/src/os >/unix -I/usr/include/mysql -Iusr/local/lib/include -I/usr/local/src/exp a >t/include -I../.. -I../ >../libzend -g -O2 -g -O2 -c -o xml.lo xml.c >In file included from xml.c:27: >php3_xml.h:37: xmltok.h: No such file or directory >php3_xml.h:38: xmlparse.h: No such file or directory >make[3]: *** [xml.lo] Error 1 >make[3]: Leaving directory `/usr/local/src/php-4.0b3/ext/xml' >make[2]: *** [all-recursive] Error 1 >make[2]: Leaving directory `/usr/local/src/php-4.0b3/ext' >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/usr/local/src/php-4.0b3' >make: *** [all-recursive-am] Error 2 >[root@oplredhat2 php-4.0b3]# > > > > > >-- >PHP 4.0 Beta Mailing List <http://www.php.net/version4/> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net >For additional commands, e-mail: php4beta-help@lists.php.net >To contact the list administrators, e-mail: php4beta-admin@lists.php.net --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#12459) next »