[PHP3] Trouble with PHP compile, Apache, Mysql.. OffTOpic... From: Splax Splotchka (splax <email protected>)
Date: 12/31/98

Using:
 apache_1.3.3
 mysql-3.22.7b-beta
 php-3.0.5
 /usr/lib/libmysqlclient.so -> libmysqlclient.so.3.21.30

 I have the mysql directories in
/usr/local/mysql -> mysql-3.22.7b-beta
 
 I had to change the location of the libmysqlclient library in the makefiles
of both APache and php, as they pointed to /usr/local/lib incorrectly.
  Everthing compiles ok, until the Link phase of Apache:
-----------------------------------------------------------

gcc -c -I./os/unix -I./include -DLINUX=2 -DUSE_HSREGEX `./apaci` modules.c
gcc -c -I./os/unix -I./include -DLINUX=2 -DUSE_HSREGEX `./apaci` buildmark.c
gcc -DLINUX=2 -DUSE_HSREGEX `./apaci` \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3 -ldb -L/usr/lib -lmysqlclient -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_do_connect':
/usr/local/src/php-3.0.5/functions/mysql.c:469: undefined reference to `mysql_init'
/usr/local/src/php-3.0.5/functions/mysql.c:559: undefined reference to `mysql_init'
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.3/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.3'
make: *** [build] Error 2

------------------------------------------------------

 I have looked over all the documentation online nad in the INSTALL files
for all the dists... Please assist. Somehow the declaration or def of
mysql_init is not accessed, but I don't know why.

 I've tried many of the suggestions in the docs, to no avail. Please
 Point me in the right direction...

 A million thanks and salutations..

  -Splax

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>