Tidy, PHP and Mac

September 8, 2009

Oh, how you don’t play well together. In case anybody else has this problem, it is typified by:


/private/tmp/pear/download/tidy-1.2/tidy.c:463: warning: pointer targets in initialization differ in signedness
/private/tmp/pear/download/tidy-1.2/tidy.c: In function 'zif_tidy_parse_file':
/private/tmp/pear/download/tidy-1.2/tidy.c:490: warning: pointer targets in passing argument 2 of 'tidyBufAttach' differ in signedness
make: *** [tidy.lo] Error 1
ERROR: `make' failed

To fix it (thanks to dams at PHP):

“Get the libtidy from the CVS on their project. Compile and install it, then modify /usr/include/tidy/platform.h:

on line 530 comment [out] the line:

typedef unsigned long ulong;”

After this, tidy should install properly.

References:

http://bugs.php.net/bug.php?id=36164&edit=1

http://aspn.activestate.com/ASPN/Mail/Message/php-dev/3390328

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.