chxo internets RSS

A network of memes,
by Chris Snyder

See also
CHXO Internet
twitter.com/64

Archive

Apr
6th
Mon
permalink

PHP 5.2.9 imap compile note

I recently upgraded a Debian system from etch to lenny, which bumped the version of UW’s IMAP C-Client library from libc-client2002edebian to libc-client2007b. Unfortunately the old packages (and their header files) were still sitting around, waiting to ruin my afternoon.

Compiling php 5.2.9 in this environment resulted in the error:

php_imap.c:84: error: conflicting types for ‘utf8_mime2text’

Looks a lot like this bug and a few others, eh?

I removed the old c-client packages, and reinstalled the libc-client2007b and libc-client2007b-dev (use apt-get install —reinstall libc-client2007b-dev).

Make distclean in the php directory, reconfigure, and now php compiles like a champ.