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
/tmp/mysql.sock
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 \
--with-mysqld-user=mysql
# make
# make install
STEP 2 mod_auth_mysql configure
# ./configure --with-mysql=/usr/local/mysql \
--with-apache=/tmp/webserver/apache_1.3.19
# make
STEP 3 edit ../apache.x/src/Configuration with
EXTRA_CFLAGS=-I/usr/local/include/mysql
EXTRA_LDFLAGS=-L/usr/local/lib/mysql
EXTRA_LIBS=-lmysqlclient
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 \
--activate-module=src/modules/auth_mysql/libauth_mysql.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/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2
-R/usr/local/mysql/lib/mysql -L/usr/ucblib
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2
-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
uncompress
/usr/local/mysql/lib/mysql/libmysqlclient.so
compress
/usr/local/mysql/lib/mysql/libmysqlclient.so
ld: fatal: Symbol referencing errors. No output written to
helpers/dummy
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