Dear all
I'm compiling Zabbix 1.4.2 on Solaris10 x86 too. But my error is about mysql.
I used mysql/mysql-devel package from http://www.blastwave.org/ packages
I pointed the include and library path to what i have
CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include'
LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/'
My error is:
bash# env CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include/' \
LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/' \
./configure --enable-server --with-mysql
.
.
.
checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
checking for main in -lmysqlclient ... no
configure: error: Not found mysqlclient library
from the config.log i see
configure:8658: found /opt/csw/mysql5/bin/mysql_config
configure:8671: result: /opt/csw/mysql5/bin/mysql_config
configure:8802: checking for main in -lmysqlclient
configure:8831: gcc -o conftest -g -O2 -I/opt/csw/mysql5/include/mysql -mt -D_FORTEC_ -xtarget=386 -I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/op
t/csw/include/ -L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/ -L/opt/csw/lib/32 -L/opt/csw/mysql5/lib/mysql -L/opt/csw/lib conftest.c -lmysqlc
lient -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
gcc: language target=386 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
What do I miss ? Thank you for helping
Regards,
Halomoan Zhou
I'm compiling Zabbix 1.4.2 on Solaris10 x86 too. But my error is about mysql.
I used mysql/mysql-devel package from http://www.blastwave.org/ packages
I pointed the include and library path to what i have
CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include'
LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/'
My error is:
bash# env CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include/' \
LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/' \
./configure --enable-server --with-mysql
.
.
.
checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
checking for main in -lmysqlclient ... no
configure: error: Not found mysqlclient library
from the config.log i see
configure:8658: found /opt/csw/mysql5/bin/mysql_config
configure:8671: result: /opt/csw/mysql5/bin/mysql_config
configure:8802: checking for main in -lmysqlclient
configure:8831: gcc -o conftest -g -O2 -I/opt/csw/mysql5/include/mysql -mt -D_FORTEC_ -xtarget=386 -I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/op
t/csw/include/ -L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/ -L/opt/csw/lib/32 -L/opt/csw/mysql5/lib/mysql -L/opt/csw/lib conftest.c -lmysqlc
lient -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
gcc: language target=386 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
What do I miss ? Thank you for helping
Regards,
Halomoan Zhou

Comment