Jump to content

php-4.4.4 + mysql-5.0.27: php make error: adler32, compress, crc32?


Recommended Posts

I'm currently trying to compile php 4.4.4 with the mysql 5.0.27 headers (i.e. I have specified a directory where the mysql headers are on my machine instead of using the default ones that are built into php).

Everything configured ok, but when I try to make php I'm getting a series of multiple definition errors similar to that show below:

[code]
/usr/local/mysql/lib/mysql/libz.a(adler32.o): In function `adler32':
adler32.c:(.text+0x0): multiple definition of `adler32'
/usr/local/mysql/lib/mysql/libz.a(adler32.o):adler32.c:(.text+0x0): first defined here
/usr/local/mysql/lib/mysql/libz.a(adler32.o): In function `adler32_combine':
adler32.c:(.text+0x390): multiple definition of `adler32_combine'
/usr/local/mysql/lib/mysql/libz.a(adler32.o):adler32.c:(.text+0x390): first defined here
/usr/local/mysql/lib/mysql/libz.a(compress.o): In function `compressBound':
compress.c:(.text+0x0): multiple definition of `compressBound'
[/code]

There's a lot more output. I understand what its saying and have managed to find a post somewhere on the net regarding duplicated libs that mysql or php includes but it didn't elaborate on a solution.

I'd really like to stick with the most up-to-date versions of both packages but realise that I may have to go back to an earlier mysql or php version.

Has anyone else encountered this problem and know how I might be able to fix it?

Thanks in advance,
Andy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.