Hi,

I am trying to compile Apache with PHP4/MySQL support.
PHP4 compiles/installs fine, but when I compile Apache with PHP4/MySQL
support, I get an error when linking the MySQL shared library
libmysqlclient.a.
Here is the compile log, after that are the various compilation options.

*Snippet of Apache compilation logs :
egcs -O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -
march=pentiumpro -fomit-frame-p
ointer -fno-exceptions -DLINUX=22 -I/usr/local/src/php-4.0.4pl1 -I/usr/
local/src/php-4.0.4pl1/main -
I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1/Zend -I/
usr/local/src/php-4.0.4pl1/Z
end -I/usr/local/src/php-4.0.4pl1/TSRM -I/usr/local/src/php-4.0.4pl1/TSRM
-I/usr/local/src/php-4.0.4
pl1 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include
-DUSE_EXPAT -I./lib/expat-
lite -DNO_DL_NEEDED -DDYNAMIC_MODULE_LIMIT=0 `./apaci`    \
      -o httpd buildmark.o modules.o modules/php4/libphp4.a modules/perl/
libperl.a modules/experimen
tal/libexperimental.a modules/standard/libstandard.a modules/extra/
libextra.a main/libmain.a ./os/un
ix/libos.a ap/libap.a  lib/expat-lite/libexpat.a  -Wl,-rpath,/usr/local/
mysql/lib/mysql  -rdynamic -
L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../
modules/php4 -lmodphp4  -lpam
-ldl -lmm -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl  -lresolv   -lm -
lcrypt -ldb -rdynamic  -L/u
sr/local/lib /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/
DynaLoader.a -L/usr/lib/perl5/5.00503
/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x97): undefined reference to `uncompress'
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x12b): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.19'
make: *** [build] Error 2

*MySQL latest stable is setup and running on the box, and have been
compiled with the following options :
- From mysqlbug :
  System: Linux intranet.par.sports.com 2.2.19 #2 Fri Apr 27 13:30:43
CEST 2001 i686 unknown
  Architecture: i686
  Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /
usr/bin/cc
  GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-
2.91.66/specs
  gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
  Compilation info: CC='gcc'  CFLAGS='-O9 -mpentiumpro -fomit-frame-
pointer'  CXX='c++'  CXXFLAGS=''
  LDFLAGS=''
  LIBC:
  lrwxrwxrwx    1 root     root           13 Apr 19 22:15 /lib/libc.so.6
-> libc-2.1.3.so
  -rwxr-xr-x    1 root     root      4101836 Jan 15 16:49 /lib/libc-2.1.3.so
  -rw-r--r--    1 root     root     20273324 Jan 15 16:49 /usr/lib/libc.a
  -rw-r--r--    1 root     root          178 Jan 15 16:49 /usr/lib/libc.so
  Configure command: ./configure  --prefix=/usr/local/mysql --enable-
assembler --with-mysqld-ldflags=-all-static --disable-shared --with-
extra-charset=complex
  Perl: This is perl, version 5.005_03 built for i386-linu

- Compilations environment variables I used :
  CFLAGS="-O9 -mpentiumpro -fomit-frame-pointer -funroll-loops"
  CC=egcs
  CXX=egcs
  CXXFLAGS="-O9 -mpentiumpro -fomit-frame-pointer -funroll-loops -felide-
constructors -fno-exceptions -fno-rtti"
  ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-
ldflags=-all-static

*PHP4pl1 compilation options :
/configure \
--disable-debug \
--with-apache=../apache_1.3.19/ \
--enable-safe-mode \
--with-mysql \
--with-mm \
--enable-inline-optimization \
--with-gnnu-ld \
--enable-memory-limit \
--enable-track-vars \
--with-mysql=/usr/local/mysql

*Apache 1.3.19 compilation options :
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -
march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
/configure \
--mandir=/usr/man \
--add-module=src/modules/experimental/mod_mmap_static.c \
--add-module=src/modules/standard/mod_auth_db.c \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl \
--disable-module=userdir \
--disable-module=asis \
--disable-module=imap \
--disable-module=actions

Thanks in advance for advices/help ...

--
Mathieu Masseboeuf - Responsable Systèmes et Réseaux
http://sports.com/fr
Tous les sports en direct et en coutinu sur Internet.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to