5 messages in com.mysql.lists.pluspluszlib and mysql++ build process
FromSent OnAttachments
Dennis McFall28 Mar 2005 11:35 
Chris Frey28 Mar 2005 12:22 
Dennis McFall28 Mar 2005 13:54 
Ed Terchunian28 Mar 2005 20:19 
Warren Young29 Mar 2005 04:56 
Subject:zlib and mysql++ build process
From:Dennis McFall (denn@interclay.com)
Date:03/28/2005 11:35:17 AM
List:com.mysql.lists.plusplus

I am attempting to build mysql++ on a Fedora Core 2 machine. The following rpms
have been installed:

mysql++-1.7.32-1 mysql-devel-3.23.58-9 mysql-3.23.58-9 mysql-server-3.23.58-9 php-mysql-4.3.4-11 mysql++-devel-1.7.32-1 MySQL-shared-3.23.58-1

I have to stay with MYSQL version 3.23.58 due to the existing installbase.

The configure.h file that is generated states that I do not have support for
zlib, however, I do, as the "rpm -qa" shows below.

rpm -qa | grep zlib* zlib-1.2.1.1-2.1

The make process fails to complete because ld can't find -lz.

/usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make[2]: *** [libmysqlpp.la] Error 1 make[2]: Leaving directory `/home/insite/temp/mysql++-1.7.32/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/insite/temp/mysql++-1.7.32' make: *** [all] Error 2

I attempted to show "configure" where the zlib.h file is by adding an
"--includedir" option but this did not help.

./configure '--includedir=/usr/local/include/mysql++'
'--includedir=/lib/modules/2.6.5-1.358/build/include/linux/'
--enable-thread-check

Any suggestions?