[tpop3d-discuss] --enable-mysql-auth configure failure.
Chris Lightfoot
chris at ex-parrot.com
Fri, 29 Jun 2001 00:02:40 +0100
On Thu, Jun 28, 2001 at 03:51:19PM -0700, Paul Makepeace wrote:
> On Thu, Jun 28, 2001 at 12:01:23PM +0100, Chris Lightfoot wrote:
> > sed 's/-lmysqlclient/-lmysqlclient -lz' < configure > c2
> > mv c2 configure
> > chmod +x configure
>
> Or,
>
> perl -pi~ -e 's/-lmysqlclient/$& -lz/g' configure
Yes, but I like to use sed, because I like to have to
remember fifteen different formats of regexps :)
> This is Debian with libc 2.3,
>
> tantrix:~$ for i in z mysqlclient; do echo "*** $i:"; nm /usr/lib/lib$i.a |
> grep compress; done
> *** z:
> compress.o:
> 00000000 T compress
> 000000ac T compress2
> 00000000 T uncompress
> 0000192c t compress_block
> *** mysqlclient:
> U my_compress
> U my_uncompress
> my_compress.o:
> U compress
> 00000000 T my_compress
> 00000064 T my_compress_alloc
> 000000f0 T my_uncompress
> U uncompress
> tantrix:~$
>
> So it's in libz too on Debian's latest release (woody).
Hmm. I'm not sure what the `correct' way to deal with this
is. I would hope it's possible to get by without an
explicit `does -lmysqlclient require -lz?' test. Does the
new MySQL come with a script like gnome-config or whatever
which you can call to find out with which libraries you
need to link?
--
Chris Lightfoot -- www.ex-parrot.com/~chris/
One of the lessons of history is that nothing is often
a good thing to do -- and always a clever thing to say
(Will Durant)