-DEAPI

From: Date: Sun, 11 Jan 2004 21:12:06 +0000
Subject: -DEAPI
Groups: php.general 
Request: Send a blank email to php-general+get-174256@lists.php.net to get a copy of this message
I'm running a Suse 8.2 out of the box. Now I want to create a PHP program with TCP sockets. The installed version of PHP is not supporting this because it is still experimental. After downloading and compiling the PHP source my first programs runs fine from the command line. Next step is compiling PHP as an apache module. I downloaded the apche source and compiled it. I didn't install it because appache is running fine and I'm not sure if all modules in the new apche will work. When I compile the PHP source to libphp4.so it says "[warn] Loaded DSO /usr/lib/apache/libphp4.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)" So, before I called the configure script the CFLAGS is set to -DEAPI export CFLAGS="-DEAPI" './configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-mbregex' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--enable-yp' '--with-bz2' '--with-ftp' '--with-gettext' '--with-gmp' '--with-mcal=/usr' '--with-mcrypt' '--with-mysql=/usr' '--with-snmp' '--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-xslt-sablot' '--with-iconv' '--with-mm' '--with-apxs=/www/bin/apxs' '--with-openssl' --enable-sockets 'i586-suse-linux' When compiling it looks like /bin/sh /home/jonker/php-4.3.4/libtool --silent --preserve-dup-deps --mode=compile gcc -DLINUX=22 -DUSE_HSREGEX -I/www/include -Isapi/apache/ -I/home/jonker/p hp-4.3.4/sapi/apache/ -DPHP_ATOM_INC -I/home/jonker/php-4.3.4/include -I/hom e/jonker/php-4.3.4/main -I/home/jonker/php-4.3.4 -I/home/jonker/php-4.3.4/Ze nd -I/home/jonker/php-4.3.4/ext/mbstring/mbregex -I/home/jonker/php-4.3.4/ex t/mbstring/libmbfl -I/home/jonker/php-4.3.4/ext/mbstring/libmbfl/mbfl -I/usr /include/mcal -I/usr/include/mysql -I/usr/include/ucd-snmp -I/home/jonker/ph p-4.3.4/ext/xml/expat -I/home/jonker/php-4.3.4/TSRM -DEAPI -prefer-pic -c /home/jonker/php-4.3.4/sapi/apache/mod_php4.c -o sapi/apache/mod_php4.lo As you can see the -DEAPI is set. But when I install the new libphp4.so the warning comes back. And worse, apache crached when retrieving a php page. Does someone know how to solve this ? Or has a working libphp4.so for me with the above options ? Many thanks in advance. Richard Jonker

« previous php.general (#174256) next »