Posted by Jerry Stuckle on 12/30/05 05:19
Balazs Wellisch wrote:
> Hello all,
>
> I would appreciate any help regarding this problem because I'm at a complete
> loss.
>
> I'm trying to compile PHP 4.4.1 on RH E3 ES. I need to enable zlib support
> but when I do PHP does not compile without errors. Here's what I did.
>
> make clean;
> ./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --with-config-file-path=/etc
> --enable-mbstring=all --with-zlib=/usr
> make;
>
> make: *** [libphp4.la] Error 1
>
> If I run configure without --with-zlib=/usr it compiles just fine. So it is
> definitly zlib that's causing the error. What's weird though is that the
> error seems to come from mysql! The full error log is included below.
>
> I'm using MySQL 4.1 compiled from source. (It works fine.)
>
> Any help or suggestions would be very much appreciated!!!
>
> Thanks,
> Balazs
>
> /usr/lib/mysql/libz.a(adler32.o)(.text+0x0): In function `adler32':
> : multiple definition of `adler32'
> /usr/lib/mysql/libz.a(adler32.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(adler32.o)(.text+0x250): In function
> `adler32_combine':
> : multiple definition of `adler32_combine'
> /usr/lib/mysql/libz.a(adler32.o)(.text+0x250): first defined here
> /usr/lib/mysql/libz.a(compress.o)(.text+0x0): In function `compress2':
> : multiple definition of `compress2'
> /usr/lib/mysql/libz.a(compress.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(compress.o)(.text+0xb0): In function `compress':
> : multiple definition of `compress'
> /usr/lib/mysql/libz.a(compress.o)(.text+0xb0): first defined here
> /usr/lib/mysql/libz.a(compress.o)(.text+0xf0): In function `compressBound':
> : multiple definition of `compressBound'
> /usr/lib/mysql/libz.a(compress.o)(.text+0xf0): first defined here
> /usr/lib/mysql/libz.a(crc32.o)(.text+0x0): In function `get_crc_table':
> : multiple definition of `get_crc_table'
> /usr/lib/mysql/libz.a(crc32.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(crc32.o)(.text+0x10): In function `crc32':
> : multiple definition of `crc32'
> /usr/lib/mysql/libz.a(crc32.o)(.text+0x10): first defined here
> /usr/lib/mysql/libz.a(crc32.o)(.text+0x690): In function `crc32_combine':
> : multiple definition of `crc32_combine'
> /usr/lib/mysql/libz.a(crc32.o)(.text+0x690): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.rodata+0x0): multiple definition of
> `deflate_copyright'
> /usr/lib/mysql/libz.a(deflate.o)(.rodata+0x0): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x0): In function `deflateInit_':
> : multiple definition of `deflateInit_'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x50): In function `deflateInit2_':
> : multiple definition of `deflateInit2_'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x50): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x460): In function `deflateReset':
> : multiple definition of `deflateReset'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x460): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x1240): In function `deflateEnd':
> : multiple definition of `deflateEnd'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x1240): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x300): In function
> `deflateSetDictionary':
> : multiple definition of `deflateSetDictionary'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x300): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x550): In function
> `deflateSetHeader':
> : multiple definition of `deflateSetHeader'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x550): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x580): In function `deflatePrime':
> : multiple definition of `deflatePrime'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x580): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x5d0): In function `deflateParams':
> : multiple definition of `deflateParams'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x5d0): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x810): In function `deflate':
> : multiple definition of `deflate'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x810): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x6d0): In function `deflateTune':
> : multiple definition of `deflateTune'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x6d0): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x710): In function `deflateBound':
> : multiple definition of `deflateBound'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x710): first defined here
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x1330): In function `deflateCopy':
> : multiple definition of `deflateCopy'
> /usr/lib/mysql/libz.a(deflate.o)(.text+0x1330): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x380): In function `gzopen':
> : multiple definition of `gzopen'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x380): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x3b0): In function `gzdopen':
> : multiple definition of `gzdopen'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x3b0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x400): In function `gzsetparams':
> : multiple definition of `gzsetparams'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x400): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x7c0): In function `gzread':
> : multiple definition of `gzread'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x7c0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xa90): In function `gzgetc':
> : multiple definition of `gzgetc'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xa90): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xad0): In function `gzungetc':
> : multiple definition of `gzungetc'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xad0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xb20): In function `gzgets':
> : multiple definition of `gzgets'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xb20): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xb90): In function `gzwrite':
> : multiple definition of `gzwrite'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xb90): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xc70): In function `gzprintf':
> : multiple definition of `gzprintf'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xc70): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xce0): In function `gzputc':
> : multiple definition of `gzputc'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xce0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xd20): In function `gzputs':
> : multiple definition of `gzputs'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xd20): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xe40): In function `gzflush':
> : multiple definition of `gzflush'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xe40): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xe90): In function `gzseek':
> : multiple definition of `gzseek'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0xe90): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x10a0): In function `gzrewind':
> : multiple definition of `gzrewind'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x10a0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x1140): In function `gztell':
> : multiple definition of `gztell'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x1140): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x1170): In function `gzeof':
> : multiple definition of `gzeof'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x1170): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x11a0): In function `gzdirect':
> : multiple definition of `gzdirect'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x11a0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x1260): In function `gzclose':
> : multiple definition of `gzclose'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x1260): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x12d0): In function `gzerror':
> : multiple definition of `gzerror'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x12d0): first defined here
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x13d0): In function `gzclearerr':
> : multiple definition of `gzclearerr'
> /usr/lib/mysql/libz.a(gzio.o)(.text+0x13d0): first defined here
> /usr/lib/mysql/libz.a(infback.o)(.text+0x0): In function `inflateBackInit_':
> : multiple definition of `inflateBackInit_'
> /usr/lib/mysql/libz.a(infback.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(infback.o)(.text+0x110): In function `inflateBack':
> : multiple definition of `inflateBack'
> /usr/lib/mysql/libz.a(infback.o)(.text+0x110): first defined here
> /usr/lib/mysql/libz.a(infback.o)(.text+0x1070): In function
> `inflateBackEnd':
> : multiple definition of `inflateBackEnd'
> /usr/lib/mysql/libz.a(infback.o)(.text+0x1070): first defined here
> /usr/lib/mysql/libz.a(inffast.o)(.text+0x0): In function `inflate_fast':
> : multiple definition of `inflate_fast'
> /usr/lib/mysql/libz.a(inffast.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x0): In function `inflateReset':
> : multiple definition of `inflateReset'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0xa0): In function `inflatePrime':
> : multiple definition of `inflatePrime'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0xa0): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x110): In function `inflateInit2_':
> : multiple definition of `inflateInit2_'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x110): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x210): In function `inflateInit_':
> : multiple definition of `inflateInit_'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x210): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x3b0): In function `inflate':
> : multiple definition of `inflate'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x3b0): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1be0): In function `inflateEnd':
> : multiple definition of `inflateEnd'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1be0): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1c50): In function
> `inflateSetDictionary':
> : multiple definition of `inflateSetDictionary'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1c50): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1d50): In function
> `inflateGetHeader':
> : multiple definition of `inflateGetHeader'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1d50): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1df0): In function `inflateSync':
> : multiple definition of `inflateSync'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1df0): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1f00): In function
> `inflateSyncPoint':
> : multiple definition of `inflateSyncPoint'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1f00): first defined here
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1f30): In function `inflateCopy':
> : multiple definition of `inflateCopy'
> /usr/lib/mysql/libz.a(inflate.o)(.text+0x1f30): first defined here
> /usr/lib/mysql/libz.a(inftrees.o)(.rodata+0x0): multiple definition of
> `inflate_copyright'
> /usr/lib/mysql/libz.a(inftrees.o)(.rodata+0x0): first defined here
> /usr/lib/mysql/libz.a(inftrees.o)(.text+0x0): In function `inflate_table':
> : multiple definition of `inflate_table'
> /usr/lib/mysql/libz.a(inftrees.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.rodata+0x660): multiple definition of
> `_dist_code'
> /usr/lib/mysql/libz.a(trees.o)(.rodata+0x660): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.rodata+0x860): multiple definition of
> `_length_code'
> /usr/lib/mysql/libz.a(trees.o)(.rodata+0x860): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.text+0x10): In function `_tr_init':
> : multiple definition of `_tr_init'
> /usr/lib/mysql/libz.a(trees.o)(.text+0x10): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.text+0x11a0): In function
> `_tr_stored_block':
> : multiple definition of `_tr_stored_block'
> /usr/lib/mysql/libz.a(trees.o)(.text+0x11a0): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.text+0x1270): In function `_tr_align':
> : multiple definition of `_tr_align'
> /usr/lib/mysql/libz.a(trees.o)(.text+0x1270): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.text+0x1530): In function `_tr_flush_block':
> : multiple definition of `_tr_flush_block'
> /usr/lib/mysql/libz.a(trees.o)(.text+0x1530): first defined here
> /usr/lib/mysql/libz.a(trees.o)(.text+0x17b0): In function `_tr_tally':
> : multiple definition of `_tr_tally'
> /usr/lib/mysql/libz.a(trees.o)(.text+0x17b0): first defined here
> /usr/lib/mysql/libz.a(uncompr.o)(.text+0x0): In function `uncompress':
> : multiple definition of `uncompress'
> /usr/lib/mysql/libz.a(uncompr.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(zutil.o)(.rodata+0x0): multiple definition of
> `z_errmsg'
> /usr/lib/mysql/libz.a(zutil.o)(.rodata+0x0): first defined here
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x0): In function `zlibVersion':
> : multiple definition of `zlibVersion'
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x0): first defined here
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x10): In function `zlibCompileFlags':
> : multiple definition of `zlibCompileFlags'
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x10): first defined here
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x20): In function `zError':
> : multiple definition of `zError'
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x20): first defined here
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x40): In function `zcalloc':
> : multiple definition of `zcalloc'
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x40): first defined here
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x60): In function `zcfree':
> : multiple definition of `zcfree'
> /usr/lib/mysql/libz.a(zutil.o)(.text+0x60): first defined here
> collect2: ld returned 1 exit status
> make: *** [libphp4.la] Error 1
>
>
>
Looks like MySQL is compiled using a different version of zlib.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|