From: [EMAIL PROTECTED]
Operating system: SuSE 8,0 or RedHat 7.3
PHP version: 4.2.1
PHP Bug Type: *Compile Issues
Bug description: configure of apache fails after php-compilation
Hi,
I do the following:
I extract apache 1.3.26, an make a configure with default seiings an a
make, then I apply mod-ssl and mod_perl.
Then i configure and make php 4.2.1 with these options:
./configure \
--prefix=/usr/local/php4/4.2.1/ \
--with-apache=/usr/local/src/lamp/apache_1.3.26 \
--enable-force-cgi-redirect \
--disable-debug \
--enable-dbg=shared \
--with-dbg-profiler \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db3 \
--with-curl \
--with-dom=/usr \
--with-freetype-dir=/usr \
--with-png-dir=/usr \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=/usr \
--with-mm \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-expat-dir=/usr \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-debugger \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--without-oci8 \
--with-imap=shared \
--with-imap-ssl \
--with-kerberos=/usr/kerberos \
--with-mysql=shared,/usr/local/mysql/current/ \
--with-snmp=shared,/usr \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-versioning \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal \
--enable-mbstring \
--enable-mbstr-enc-trans \
--with-recode=/usr \
--with-xpm-dir=/usr/X11R6 \
--with-zip
this works on comfigure and on make
apter that I start a configure of the apache with this:
EAPI_MM="SYSTEM" SSL_BASE="/usr" ./configure \
--activate-module=src/modules/perl/libperl.a \
--activate-module=src/modules/php4/libphp4.a \
--prefix=/home/boerns/usr/local/apache/ \
--enable-module=rewrite \
--enable-module=unique_id \
--enable-module=speling \
--enable-module=expires \
--enable-module=info \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=usertrack \
--enable-module=userdir \
--enable-module=so \
--enable-shared=ssl \
--enable-module=ssl
while running configure i get this:
Configuring for Apache, Version 1.3.26
+ using installation path layout: Apache (config.layout)
+ activated perl module (modules/perl/libperl.a)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o rewrite_module uses ConfigStart/End
+ using -lndbm for DBM support
enabling DBM support for mod_rewrite
o ssl_module uses ConfigStart/End
+ SSL interface: mod_ssl/2.8.9
+ SSL interface build type: DSO
+ SSL interface compatibility: enabled
+ SSL interface experimental code: disabled
+ SSL interface conservative code: disabled
+ SSL interface vendor extensions: disabled
+ SSL interface plugin: Built-in SDBM
+ SSL library path: /usr
+ SSL library version: OpenSSL 0.9.6c [engine] 21 dec 2001
+ SSL library type: installed package (stand-alone)
o php4_module uses ConfigStart/End
+ enabling Extended API (EAPI)
using MM library for EAPI: (system-wide)
+ using system Expat
+ using -ldl for vendor DSO support
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ========
cd ..;
gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -I/home/boerns/usr
/local/src/php-4.2.1 -I/home/boerns/usr/local/src/php-4.2.1/main -I/ho
me/boerns/usr/local/src/php-4.2.1/main -I/home/boerns/usr/local/src/ph
p-4.2.1/Zend -I/home/boerns/usr/local/src/php-4.2.1/Zend -I/home/boern
s/usr/local/src/php-4.2.1/TSRM -I/home/boerns/usr/local/src/php-4.2.1/
TSRM -I/home/boerns/usr/local/src/php-4.2.1 -DEAPI -DEAPI_MM
/apaci` -L/usr/lib -o helpers/dummy
lpers/dummy.c -Wl,-rpath,/usr/ssl/lib -Wl,-rpath,/usr/X11R6/lib -rd
ynamic -L/usr/ssl/lib -L/usr/X11R6/lib -Lmodules/php4 -L../modules/php
4 -L../../modules/php4 -lmodphp4 -lrecode -lcrypto -lssl -lc-client
-L/usr/include -lmm -lcrypt -lgd -lt1 -lfreetype -lX11 -lXpm -lpng -lz
-ljpeg -lcurl -ldl -lcrypto -lssl -lcurl -lbz2 -lz -lcrypt -lssl -lcr
ypto -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lm -lcrypt -lndbm -l
mm -lexpat -ldl
/usr/lib/libc-client.so: undefined reference to `mm_expunged'
/usr/lib/libc-client.so: undefined reference to `mm_diskerror'
/usr/lib/libc-client.so: undefined reference to `mm_lsub'
/usr/lib/libc-client.so: undefined reference to `mm_flags'
/usr/lib/libc-client.so: undefined reference to `mm_fatal'
/usr/lib/libc-client.so: undefined reference to `mm_nocritical'
/usr/lib/libc-client.so: undefined reference to `mm_notify'
/usr/lib/libc-client.so: undefined reference to `pam_end'
/usr/lib/libc-client.so: undefined reference to `pam_authenticate'
/usr/lib/libc-client.so: undefined reference to `mm_searched'
/usr/lib/libc-client.so: undefined reference to `mm_status'
/usr/lib/libc-client.so: undefined reference to `mm_login'
/usr/lib/libc-client.so: undefined reference to `pam_setcred'
/usr/lib/libc-client.so: undefined reference to `mm_list'
/usr/lib/libc-client.so: undefined reference to `pam_acct_mgmt'
/usr/lib/libc-client.so: undefined reference to `mm_critical'
/usr/lib/libc-client.so: undefined reference to `mm_exists'
/usr/lib/libc-client.so: undefined reference to `pam_start'
/usr/lib/libc-client.so: undefined reference to `mm_log'
/usr/lib/libc-client.so: undefined reference to `mm_dlog'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============
when i edit this file:
usr/local/src/lamp/apache_1.3.26/src/modules/php4/libphp4.module
and edit "-lX11" to "-L/usr/X11R6/lib -lX11" then the configure works.
without xpm-support the error is not there!
could you plz enter this by default in the module-source, so that future
users do not have to do this by hand to get php work?
Do you need any further informations?
Greetings, Alexander Bruns
--
Edit bug report at http://bugs.php.net/?id=20200&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20200&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20200&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20200&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20200&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20200&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20200&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20200&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20200&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20200&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20200&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20200&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20200&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20200&r=isapi