Hi, maybe someone can help.
When installing on REHL5 64bit i use this configure command
./configure --enable-mysql --enable-imfile
i get this error:
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for mysql_config... yes
checking for mysql_init in -lmysqlclient... no
configure: error: in `/root/rsyslog/rsyslog-3.20.2':
configure: error: MySQL library is missing
See `config.log' for more details.
in config.log:
configure:26760: gcc -o conftest -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g conftest.c -lmysqlclient -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto >&5
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
OS Version is: Linux myhost.mydomain.tld 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
When removing mysql-directive the configure runs.
why the heck is rsyslog claiming libz incompatible, why searching in /usr/lib instead /usr/lib64? How to resolve?
thank you.


