Jump to content

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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.