[tpop3d-discuss] --enable-mysql-auth configure failure.

Paul Makepeace Paul.Makepeace at realprogrammers.com
Thu, 28 Jun 2001 15:51:19 -0700


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

Once you're sure that worked, rm configure~, the backup copy

Perl's -i switch preserves permissions and saves a manual 'mv'.
(The $& is simply "the bit that matched")

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).

Paul

-- 
Consult other sources 
-promising 
-unpromising