Apache PHP MySQL and mod_auth_mysql compilation error

Apache PHP MySQL and mod_auth_mysql compilation error

Post by Maurice Hoeneve » Fri, 15 Feb 2002 19:23:54

Hello all

I am facing the following problem on our Solaris 8 SPARC server
I want to build a webserver with php, mysql and mod_auth_mysql
features. Before I did use the precompiled mysql binary wich went fine
except for the fact that some procedures want the default
So I decided to build a new MySQL version which also needs a new
compiled Apache version.
The problem is when I start to configure apache with the
mod_auth_mysql module. I the output as listed below.

I will describe in brief below the steps I make.
If anyone has a solution or tip please help us ou
Thanks for you time and effort

STEP 1 MySQL configure and make
# ./configure --prefix=/usr/local/mysql --datadir=/home/mysql \
    --sysconfdir=/etc --with-unix-socket-path=/home/mysql/mysql.sock \
# make
# make install

STEP 2 mod_auth_mysql configure
# ./configure --with-mysql=/usr/local/mysql \
# make

STEP 3 edit ../apache.x/src/Configuration with
 Module auth_mysql_module mod_auth_mysql.o                        

STEP 4 Configure and make PHP
# ./configure --with-mysql=/usr/local/mysql \
 --with-apache=../apache_1.3.19 -enable-track-vars
# make
# make install

STEP 5 Configure Apache
./configure --enable-module=so \
--activate-module=src/modules/php4/libphp4.a \

Configuring for Apache, Version 1.3.19
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
 + activated auth_mysql module (modules/auth_mysql/libauth_mysql.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Solaris 280 platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
    o php4_module uses ConfigStart/End
    o auth_mysql_module uses ConfigStart/End
 + 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.

cd ..; gcc  -I/usr/local/mysql/include/mysql  -DSOLARIS2=280
-I/tmp/webserver/php-4.0.6 -I/tmp/webserver/php-4.0.6/main
-I/tmp/webserver/php-4.0.6/main -I/tmp/webserver/php-4.0.6/Zend
-I/tmp/webserver/php-4.0.6/Zend -I/tmp/webserver/php-4.0.6/TSRM
-I/tmp/webserver/php-4.0.6/TSRM -I/tmp/webserver/php-4.0.6 -DUSE_EXPAT
-I./lib/expat-lite `./apaci`     -o helpers/dummy helpers/dummy.c
-L/usr/local/mysql/lib/mysql -lmysqlclient   -R/usr/ucblib
-R/usr/local/mysql/lib/mysql  -L/usr/ucblib
-L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lmysqlclient -lcrypt
-lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc
-lsocket -lnsl -ldl
Undefined                       first referenced
 symbol                             in file
ld: fatal: Symbol referencing errors. No output written to
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
======== Error Output for sanity check ========
============= End of Error Report =============

Any hints?

Maurice Hoeneveld
Technical System Engineer

Hogeschool voor Economische Studies
Kralingse Zoom 91
Postbus 4030
3006 AA Rotterdam
The Netherlands


1. weird php error when using php-mysql-4.2.3 from ports


I'm trying to get the usual IDS combo; snort+mysql+acid+apache+mod_ssl up
and running on my openbsd 3.2 box, however when opening the acid_main.php i
get the following "make no sense" error;

PHP ERROR: Incompatible version: Version 4.2.3 of PHP is too old. Please
upgrade to version 4.0.4 or later

I'm obviously using a more recent version the required, or am I missing
someting quite essential?


2. NE2000 not detected

3. Apache-php-mysql compile error.

4. DIMMs and SIMMs together?

5. apache + mysql + mod_auth_mysql problems

6. PID problem with dial up

7. Is Apache authentication with MySQL & mod_auth_mysql the fastest ?

8. vi editor FAQ (Frequently Asked Question List), Part 1/2

9. Apache 2.0 with SSL PHP and mod_auth_mysql

10. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

11. PHP/MySQL "mysql.sock" not found ???

12. PHP + MySQL - apparently installed OK - but no MySQL support!

13. PHP+MySQL vs. PHP+PostgreSQL