Hello Everybody,
I am trying to compile 1.1alpha12 version and these errors appear:
-----------------------------------------------------------------------
pinger/libzbxpinger.a(pinger.o)(.text+0x397):/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:201: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x4c7): In function `create_host_file':
/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:256: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x563):/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:270: undefined reference to `mysql_free_result'
poller/libzbxpoller.a(poller.o)(.text+0x1ae): In function `get_minnextcheck':
/data/installs/zabbix-1.1alpha12/src/zabbix_server/poller/poller.c:132: undefined reference to `mysql_free_result'
poller/libzbxpoller.a(poller.o)(.text+0x26d):/data/installs/zabbix-1.1alpha12/src/zabbix_server/poller/poller.c:169: more undefined references to `mysql_free_result' follow
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/data/installs/zabbix-1.1alpha12/src/zabbix_server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/installs/zabbix-1.1alpha12/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/installs/zabbix-1.1alpha12/src'
make: *** [all-recursive] Error 1
-----------------------------------------------------------------------
Try with these variants:
./configure --with-mysql --with-net-snmp --enable-server --enable-agent
Later:
LIBS="-L/usr/lib/mysql -lmysqlclient" \
./configure --with-mysql --with-net-snmp --enable-server --enable-agent --enable-static
And Later:
LDLIBS=-lenlibs LDFLAGS=-L/usr/lib/mysql -lmysqlclient \
./configure --with-mysql --with-net-snmp --enable-server --enable-agent --enable-static
My SO:
Centos 3.4
GCC:
[root@server02 installs]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
MySQL:
[root@server02 installs]# mysql -V
mysql Ver 14.7 Distrib 4.1.13, for pc-linux-gnu (i686) using readline 4.3
MySQL RPMS:
MySQL-client-standard-4.1.13-0.rhel3.i386.rpm
MySQL-devel-standard-4.1.13-0.rhel3.i386.rpm
MySQL-server-standard-4.1.13-0.rhel3.i386.rpm
MySQL-shared-standard-4.1.13-0.rhel3.i386.rpm
Yours Can help me a little....
Thanks, Cristian
Campana, Bs. As. Argentina.
I am trying to compile 1.1alpha12 version and these errors appear:
-----------------------------------------------------------------------
pinger/libzbxpinger.a(pinger.o)(.text+0x397):/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:201: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x4c7): In function `create_host_file':
/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:256: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x563):/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:270: undefined reference to `mysql_free_result'
poller/libzbxpoller.a(poller.o)(.text+0x1ae): In function `get_minnextcheck':
/data/installs/zabbix-1.1alpha12/src/zabbix_server/poller/poller.c:132: undefined reference to `mysql_free_result'
poller/libzbxpoller.a(poller.o)(.text+0x26d):/data/installs/zabbix-1.1alpha12/src/zabbix_server/poller/poller.c:169: more undefined references to `mysql_free_result' follow
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/data/installs/zabbix-1.1alpha12/src/zabbix_server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/installs/zabbix-1.1alpha12/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/installs/zabbix-1.1alpha12/src'
make: *** [all-recursive] Error 1
-----------------------------------------------------------------------
Try with these variants:
./configure --with-mysql --with-net-snmp --enable-server --enable-agent
Later:
LIBS="-L/usr/lib/mysql -lmysqlclient" \
./configure --with-mysql --with-net-snmp --enable-server --enable-agent --enable-static
And Later:
LDLIBS=-lenlibs LDFLAGS=-L/usr/lib/mysql -lmysqlclient \
./configure --with-mysql --with-net-snmp --enable-server --enable-agent --enable-static
My SO:
Centos 3.4
GCC:
[root@server02 installs]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
MySQL:
[root@server02 installs]# mysql -V
mysql Ver 14.7 Distrib 4.1.13, for pc-linux-gnu (i686) using readline 4.3
MySQL RPMS:
MySQL-client-standard-4.1.13-0.rhel3.i386.rpm
MySQL-devel-standard-4.1.13-0.rhel3.i386.rpm
MySQL-server-standard-4.1.13-0.rhel3.i386.rpm
MySQL-shared-standard-4.1.13-0.rhel3.i386.rpm
Yours Can help me a little....
Thanks, Cristian
Campana, Bs. As. Argentina.
Comment