Subject: chat/jabberd2 can't find libmysqlclient
To: None <tech-pkg@NetBSD.org>
From: Mirko Thiesen <thiesi@NetWorkXXIII.de>
List: tech-pkg
Date: 11/18/2004 03:40:01
On two different machines I get the following error while compiling 
chat/jabberd2:

checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking for mysql_init in -lmysqlclient... no
configure: error: MySQL client libraries not found
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/chat/jabberd2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/chat/jabberd2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/chat/jabberd2

(03:27:04) root@ReLink [/usr/pkgsrc/chat/jabberd2] # locate libmysqlclient
/usr/lib/libmysqlclient.a
/usr/lib/libmysqlclient.la
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient.so.14
/usr/lib/libmysqlclient.so.14.0.0
/usr/pkg/lib/mysql/libmysqlclient.a
/usr/pkg/lib/mysql/libmysqlclient.la
/usr/pkg/lib/mysql/libmysqlclient.so
/usr/pkg/lib/mysql/libmysqlclient.so.14
/usr/pkg/lib/mysql/libmysqlclient.so.14.0.0

(03:27:42) thiesi@Bratkeks [~] $ locate libmysqlclient
/usr/lib/libmysqlclient.a
/usr/lib/libmysqlclient.la
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient.so.12
/usr/lib/libmysqlclient.so.12.0
/usr/pkg/lib/mysql/libmysqlclient.a
/usr/pkg/lib/mysql/libmysqlclient.la
/usr/pkg/lib/mysql/libmysqlclient.so
/usr/pkg/lib/mysql/libmysqlclient.so.12
/usr/pkg/lib/mysql/libmysqlclient.so.12.0.0
/usr/pkg/lib/mysql/libmysqlclient_r.a
/usr/pkg/lib/mysql/libmysqlclient_r.la
/usr/pkg/lib/mysql/libmysqlclient_r.so
/usr/pkg/lib/mysql/libmysqlclient_r.so.12
/usr/pkg/lib/mysql/libmysqlclient_r.so.12.0.0

The /usr/lib/mysqlclient.* files are just softlinks.

On one system, the MySQL dependence is satisfied by the mysql4-client 
package whereas on the other system it is by the package mysql-client. 
Both systems run 1.6.2:

(03:27:57) thiesi@Bratkeks [~] $ uname -mprs
NetBSD 1.6.2_STABLE i386 i386

(03:28:41) root@ReLink [/usr/pkgsrc/chat/jabberd2] # uname -mprs
NetBSD 1.6.2_STABLE i386 i386

Any ideas?

Bye, K&K,
T-Zee
-- 
thiesi@NetWork23.Sytes.NET ---- NetBSD: Power to the people!
Tel.: ++49-(0)171-416 05 09 -- Fax: ++49-(0)171-134 16 05 09
Mirko Thiesen, Soemmeringstrasse 41, D-10589 Berlin, Germany
              "We're with you all the way, mostly"