Subject: Compiling mod_php with mysql
To: None <netbsd-users@netbsd.org>
From: felix zaslavskiy <felix@students.poly.edu>
List: netbsd-users
Date: 10/18/2003 11:16:51
I am having trouble compiling mod_php from devel/ap-php4.

I added the following to Makefile.php

CONFIGURE_ARGS+=    --with-mysql=/usr/pkg
CONFIGURE_ARGS+=    --with-zlib
CONFIGURE_ARGS+=    --with-zlib-dir=/usr/lib

I have mysql-client package installed by the way.
When i run make configure fails. Here is output from config.log
.........
configure:53806: checking for mysql_error in -lmysqlclient
configure:53825: cc -o conftest -O2 -I/usr/pkg/include
-I/usr/pkg/include -I/usr/pkg/include -R/usr/pkg/lib/mysql
-L/usr/pkg/lib/mysql  -Wl,-E -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib -R/usr -L/usr conftest.c -lmysqlclient  -lz -lz -lm
1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

Any ideas whats going wrong ?