Paul,
let me guess. There is an older mysql.h somewhere other than /usr/local/mysql/include/
Indeed there is. In fact, there may be a few, as would be normal on these systems; different versions of not only MySQL, but of any number of tools, used in different ways for different objectives, or to test different variables. This is very common in our testing of multiple versions of OpenSSL, for example, and works flawlessly...
But what's relevant in this case, I should think, is that the specific version of MySQL to which we point, using configure,
--with-mysql=/usr/local/mysql/bin/mysql_config \
...is indeed >= 4.1, as indicated by this note:
# /usr/local/mysql/bin/mysql_config --version 5.0.51
In further testing, we were able to achieve the MySQL integration by 'manhandling' the configure script - shouldn't have to do this! - but cannot get the correct version of PostgreSQL recognized:
# ldd /usr/local/lib/libzdb.so libpq.so.4 => /usr/lib/libpq.so.4 -- OR, Depending on configuration: ----
libpq.so.5 => (file not found) libsqlite3.so.0 => /usr/local/lib/libsqlite3.so.0 libmysqlclient.so.15 => /usr/local/mysql/lib/mysql/libmysqlclient.so.15
even though we're pointing to an instance of PostgreSQL in an entirely different location.
--with-postgresql=/usr/local/postgres/9b4/bin/pg_config
Are you maintaining the libzdb package, too? What do you think the answer is?
Lou
----- Original Message ----- From: "Paul J Stevens" paul@nfg.nl To: "This is the libzdb general mailing list" libzdb-general@tildeslash.com Sent: Wednesday, August 11, 2010 2:26:39 PM Subject: Re: Configure/compile issues on Solaris SPARC
Me again :-)
Lou, let me guess. There is an older mysql.h somewhere other than /usr/local/mysql/include/
On 08/11/2010 06:57 PM, Lou Picciano wrote:
# nm /usr/local/mysql/lib/mysql/libmysqlclient.so | grep mysql_init 000300f0 T mysql_init
)
Some pertinent output from configure:
...
Lou,
the reason why postgresql library was not found by ldd on your system is, that the loader path is not set to it. You need to fix the loader path either using solaris' "crle" utility or setting LD_LIBRARY_PATH env. variable.
Regarding mysql version - the error is reported because mysql.h file contains invalid version. Please:
1.) attach config.log so we can check it 2.) provide output of "grep MYSQL_VERSION_ID /path/to/your/mysql.h"
On Aug 11, 2010, at 9:18 PM, Lou Picciano wrote:
Paul,
let me guess. There is an older mysql.h somewhere other than /usr/local/mysql/include/
Indeed there is. In fact, there may be a few, as would be normal on these systems; different versions of not only MySQL, but of any number of tools, used in different ways for different objectives, or to test different variables. This is very common in our testing of multiple versions of OpenSSL, for example, and works flawlessly...
But what's relevant in this case, I should think, is that the specific version of MySQL to which we point, using configure,
--with-mysql=/usr/local/mysql/bin/mysql_config \
...is indeed >= 4.1, as indicated by this note:
# /usr/local/mysql/bin/mysql_config --version 5.0.51
In further testing, we were able to achieve the MySQL integration by 'manhandling' the configure script - shouldn't have to do this! - but cannot get the correct version of PostgreSQL recognized:
# ldd /usr/local/lib/libzdb.so libpq.so.4 => /usr/lib/libpq.so.4 -- OR, Depending on configuration: ---- libpq.so.5 => (file not found) libsqlite3.so.0 => /usr/local/lib/libsqlite3.so.0 libmysqlclient.so.15 => /usr/local/mysql/lib/mysql/libmysqlclient.so.15
even though we're pointing to an instance of PostgreSQL in an entirely different location.
--with-postgresql=/usr/local/postgres/9b4/bin/pg_config
Are you maintaining the libzdb package, too? What do you think the answer is?
Lou
----- Original Message ----- From: "Paul J Stevens" paul@nfg.nl To: "This is the libzdb general mailing list" libzdb-general@tildeslash.com Sent: Wednesday, August 11, 2010 2:26:39 PM Subject: Re: Configure/compile issues on Solaris SPARC
Me again :-)
Lou, let me guess. There is an older mysql.h somewhere other than /usr/local/mysql/include/
On 08/11/2010 06:57 PM, Lou Picciano wrote:
# nm /usr/local/mysql/lib/mysql/libmysqlclient.so | grep mysql_init 000300f0 T mysql_init
)
Some pertinent output from configure:
...
-- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl -- To unsubscribe: http://www.tildeslash.com/mailman/listinfo/libzdb-general -- To unsubscribe: http://www.tildeslash.com/mailman/listinfo/libzdb-general