Subject: Re: ap2-php4 creates a buggy mod_php4.so?
To: =?ISO-8859-2?Q?Ewald_B=F6rger?= <ewald@hetnetniet.nl>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-pkg
Date: 09/14/2003 10:25:41
Hmm. Do you use -current NetBSD or 1.6.1?

Also, did you recompile the base www/php4 package
and all the php4-modules, or did you do 'make replace'
for the ap2-php4 module? Note you do need to rebuild
all php4 packages on the update.

Jaromir

Ewald B=F6rger wrote:
> 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?
>=20
> I've now removed everything and started from scratch:
> - first compiled and installed latest APR
> - then latest Apache2 (with the following options: APACHE_MODULES =3D all=
 so=20
> proxy proxy_connect proxy_ftp proxy_http ssl)
> - tried to compile PHP again with the option below, doesn't work (see=20
> output below)
> CONFIGURE_ARGS+=3D  --with-apxs2=3D/usr/pkg/sbin/apxs
>=20
> 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=
=20
> used unsafely, use mkstemp() or mkdtemp()
> Build complete.
> (It is safe to ignore warnings about tempnam and tmpnam).
>=20
> 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:=20
> /usr/pkg/lib/httpd/mod_php4.so: Undefined PLT symbol "tempnam" (reloc typ=
e=20
> =3D 7, symnum =3D 2121)
>=20
> And *that's* my problem with ap2-php to be precise... I know little of C=
=20
> programming, so I'm quite stuck here.
> (and this error isn't safe to ignore :()
>=20
>=20
> full output from first error:
> ------
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:38=
:=20
> apr_strings.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:39=
:=20
> ap_config.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:40=
:=20
> util_filter.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:41=
:=20
> httpd.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:42=
:=20
> http_config.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:43=
:=20
> http_request.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:44=
:=20
> http_core.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:45=
:=20
> http_protocol.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:46=
:=20
> http_log.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:47=
:=20
> http_main.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:48=
:=20
> util_script.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:49=
:=20
> http_core.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/sapi_apache2.c:50=
:=20
> ap_mpm.h: No such file or directory
> In file included from=20
> /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:=
=20
> httpd.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/php_apache.h:25:=
=20
> http_config.h: No such file or directory
> /usr/pkgsrc/www/php4/work/php-4.3.3/sapi/apache2handler/php_apache.h:26:=
=20
> http_core.h: No such file or directory
> gmake: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
> *** Error code 2
>=20
> Stop.
> make: stopped in /usr/pkgsrc/www/php4
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/pkgsrc/www/php4
>=20
>=20

--=20
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=3D- We should be mindful of the potential goal, but as the tantric    -=
=3D-
-=3D- Buddhist masters say, ``You may notice during meditation that you -=
=3D-
-=3D- sometimes levitate or glow.   Do not let this distract you.''     -=
=3D-