php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20200 configure of apache fails after php-compilation
Submitted: 2002-10-31 13:57 UTC Modified: 2002-11-01 05:17 UTC
From: a dot bruns at sauerland dot de Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 4.2.1 OS: SuSE 8,0 or RedHat 7.3
Private report: No CVE-ID: None
 [2002-10-31 13:57 UTC] a dot bruns at sauerland dot de
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-31 21:32 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.
 [2002-11-01 05:17 UTC] a dot bruns at sauerland dot de
For me I do not nned Support! I got today such a mail from php-support.

I know how to fix this bug every time for my self. But perhaps the configure or the make of php can fix this, so that the nex php-version is able to configure and compile in apache without editing the source of the php-mudule by hand.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Apr 04 10:01:25 2020 UTC