Re: Problems in compiling bind

Todd Lyons <[email protected]> Thu, 23 Feb 2012 11:33:54 -0800
Newsgroups gmane.network.dns.bind9.dlz
Message-ID <CAFG21ohKWtEQbnWf22RZXHp3kdhkajFo=vtAqCBCAhyvb1oDDQ@mail.gmail.com>
2012/2/23 Nitish Bangera <[email protected]>:
>
> Os: Cent os 5.3
> Bind: 9.2.2
> DLZ: 0.7.0
>
> rpm -qa | grep mysql
> mysql-devel-5.0.95-1.el5_7.1
> mysql-devel-5.0.95-1.el5_7.1

So you've got both the i386 and the x86_64 versions installed.  Not a big d=
eal.

> I had configured bind for just mysql.I=A0am having problems during make.
>
> -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm =A0 -lnsl
> /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when
> searching for -lmysqlclient

This first line is just a warning, tells you that it found an
incompatible version (found i386 version when it wants x86_64 version
of libs).

> /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when
> searching for -lmysqlclient

Still just a warning.

> /usr/bin/ld: cannot find -lmysqlclient

Wasn't configured to look anywhere else, so it bailed.  Look at your line:
> -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm   -lnsl

Change the linker path to the 64 bit binaries.  You need to change
your Makefile to use the correct dynamic library search path for
mysql.  That needs to be changed to:
-L/usr/lib64/mysql

This may be set by an option to ./configure, or editing an m4 file, or
directly editing the Makefile.  I can't remember because I just update
and rebuild the SRPMs, so I've not had to deal with it for a very long
time.

...Todd
-- =

SOPA: Any attempt to [use legal means to] reverse technological
advances is doomed. =A0--Leo Leporte

---------------------------------------------------------------------------=
---
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing =

also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/