Subject: Re: chat/jabberd2 can't find libmysqlclient
To: Juan RP <juan@xtraeme.nopcode.org>
From: Mirko Thiesen <thiesi@NetWorkXXIII.de>
List: tech-pkg
Date: 11/18/2004 04:06:11
On Thu, 18 Nov 2004, Juan RP wrote:

> On Thu, 18 Nov 2004 03:40:01 +0100 (CET)
> Mirko Thiesen <thiesi@NetWorkXXIII.de> wrote:
>
>> 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
>
> Can you show me the config.log file (in .work/<pkg>/)?
> I want to see the bit for:
>
> "checking for mysql_init in -lmysqclient..."

Here you are:

configure:20335: checking for mysql_init in -lmysqlclient
configure:20365: /bin/sh ./libtool --mode=link gcc -o conftest -O2 
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/mysql 
-I/usr/pkg/include -I/usr/include -L/usr/pkg/li
b/mysql -Wl,-R/usr/pkg/lib/mysql -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-L/usr/lib -Wl,-R/usr/lib conftest.c -lmysqlclient  -lssl -lcrypto -lidn 
>&5
gcc -o conftest -O2 -I/usr/pkg/include -I/usr/include 
-I/usr/pkg/include/mysql -I/usr/pkg/include -I/usr/include 
-Wl,-R/usr/pkg/lib/mysql -Wl,-R/usr/pkg/lib -Wl,-R/usr/lib c
onftest.c  -L/usr/pkg/lib/mysql -L/usr/pkg/lib -L/usr/lib 
/usr/pkg/lib/mysql/libmysqlclient.so -lcrypt -lm -lpthread -lz -lssl 
-lcrypto /usr/pkg/lib/libidn.so -liconv -Wl,--
rpath -Wl,/usr/pkg/lib/mysql -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath 
-Wl,/usr/pkg/lib/mysql -Wl,--rpath -Wl,/usr/pkg/lib
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
configure:20371: $? = 1
configure: failed program was:
| /* confdefs.h.  */

Hope it helps you.
-- 
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"