Subject: Re: chat/jabberd2 can't find libmysqlclient
To: Mirko Thiesen <thiesi@NetWorkXXIII.de>
From: Juan RP <juan@xtraeme.nopcode.org>
List: tech-pkg
Date: 11/18/2004 04:10:41
--Signature=_Thu__18_Nov_2004_04_10_41_+0100_ePWrxVZl6zHdKcul
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
On Thu, 18 Nov 2004 04:06:11 +0100 (CET)
Mirko Thiesen <thiesi@NetWorkXXIII.de> wrote:
> 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. */
Update via cvs, and rebuild mysql*-client, there was a problem with
mk/pthread.buildlink3.mk and libmysqlclient, which was linked to libpthread
and it's wrong.
Cheers.
--Signature=_Thu__18_Nov_2004_04_10_41_+0100_ePWrxVZl6zHdKcul
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iD8DBQFBnBKxypkLYVDran0RAlW+AJ9O5tQ//0AIdLlWj8rBoDu3fk9CCwCgpSs2
GoiQO8V21Sn4Q6uCNUdvLO0=
=ks0P
-----END PGP SIGNATURE-----
--Signature=_Thu__18_Nov_2004_04_10_41_+0100_ePWrxVZl6zHdKcul--