Subject: Re: ap2-php4 creates a buggy mod_php4.so?
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Ewald =?iso-8859-1?Q?B=F6rger?= <ewald@hetnetniet.nl>
List: tech-pkg
Date: 09/14/2003 01:51:43
At 08:40 13-9-2003 +0200, Jaromir Dolecek wrote:
>Strange, it works Just Fine for me.
>
>I built and installed Apache2 from scratch (including apr, which
>I didn't have before), then installed ap2-php4, configured server
>to load it and PHP works normally - at least to the extent
>to display proper page on phpinfo().
>
>Perhaps try to recompile your apr and apache2?
I've now removed everything and started from scratch:
- first compiled and installed latest APR
- then latest Apache2 (with the following options: APACHE_MODULES = all so
proxy proxy_connect proxy_ftp proxy_http ssl)
- tried to compile PHP again with the option below, doesn't work (see
output below)
CONFIGURE_ARGS+= --with-apxs2=/usr/pkg/sbin/apxs
Stopped trying with apxs and compiled --with-mysql and --with-pcre-regex
this compiled.
Then compiled ap2-php.
I find this part of the output a bit, well, scary :)
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
ext/mysql/libmysql/my_tempnam.lo(.text+0x51): warning: tempnam() possibly
used unsafely, use mkstemp() or mkdtemp()
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
But then:
root@avalon:/> apachectl -t
Syntax error on line 234 of /usr/pkg/etc/httpd/httpd.conf:
Cannot load /usr/pkg/lib/httpd/mod_php4.so into server:
/usr/pkg/lib/httpd/mod_php4.so: Undefined PLT symbol "tempnam" (reloc type
= 7, symnum = 2121)
And *that's* my problem with ap2-php to be precise... I know little of C
programming, so I'm quite stuck here.
(and this error isn't safe to ignore :()
full output from first error:
------
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:38:
apr_strings.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:39:
ap_config.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:40:
util_filter.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:41:
httpd.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:42:
http_config.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:43:
http_request.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:44:
http_core.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:45:
http_protocol.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:46:
http_log.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:47:
http_main.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:48:
util_script.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:49:
http_core.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:50:
ap_mpm.h: No such file or directory
In file included from
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:52:
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/php_apache.h:24:
httpd.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/php_apache.h:25:
http_config.h: No such file or directory
/usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/php_apache.h:26:
http_core.h: No such file or directory
gmake: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/www/php4
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/php4