php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36164 Compiling php 5.1.2 --with-tidy fails
Submitted: 2006-01-26 14:15 UTC Modified: 2009-04-08 13:12 UTC
From: niallm at mac dot com Assigned:
Status: Not a bug Package: Tidy (PECL)
PHP Version: 5.1.2 OS: Mac OS X 10.4.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: niallm at mac dot com
New email:
PHP Version: OS:

 

 [2006-01-26 14:15 UTC] niallm at mac dot com
Description:
------------
The following ./configure line breaks php 5.1.2 compilation:

niallm@socrates php-5.1.2 $ ./configure  --prefix=/usr/local/
php5/ --with-apxs-with-openssl --with-zlib --with-bz2 --with-
curl --enable-exif --enable-ftp --with-gd --with-mysql=//usr/
local/mysql-standard-4.1.12-apple-darwin7.9.0-powerpc/ --with-
pgsql=/usr/local/pgsql/ --enable-trans-sid --enable-sockets --
with-xmlrpc --with-pear --with-png-dir=/sw --with-jpeg-dir=/sw 
--with-tidy

Expected result:
----------------
I expect to see a compiled php binary ;-)

Actual result:
--------------
Instead compile fails in:

/bin/sh /Users/niallm/Downloads/php-5.1.2/libtool --silent 
--preserve-dup-deps --mode=compile gcc  -Iext/tidy/ -I/
Users/niallm/Downloads/php-5.1.2/ext/tidy/ -DPHP_ATOM_INC -
I/Users/niallm/Downloads/php-5.1.2/include -I/Users/niallm/
Downloads/php-5.1.2/main -I/Users/niallm/Downloads/php-5.1.2 
-I/usr/include/libxml2 -I/sw/include -I/Users/niallm/
Downloads/php-5.1.2/ext/date/lib -I//usr/local/mysql-
standard-4.1.12-apple-darwin7.9.0-powerpc//include -I/usr/
local/pgsql/include -I/usr/include/tidy -I/Users/niallm/
Downloads/php-5.1.2/TSRM -I/Users/niallm/Downloads/
php-5.1.2/Zend  -no-cpp-precomp  -I/usr/include -g -O2  -c /
Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c -o ext/
tidy/tidy.lo 
In file included from /usr/include/tidy/tidy.h:70,
                 from /Users/niallm/Downloads/php-5.1.2/ext/
tidy/tidy.c:37:
/usr/include/tidy/platform.h:515: error: duplicate 
'unsigned'
/usr/include/tidy/platform.h:515: warning: useless type name 
in empty declaration
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'php_tidy_quick_repair':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:493: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'tidy_doc_cast_handler':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:670: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'tidy_node_cast_handler':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:702: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'tidy_doc_update_properties':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:723: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:731: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'zif_ob_tidyhandler':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:1033: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'zif_tidy_get_error_buffer':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:1084: 
warning: pointer targets in initialization differ in 
signedness
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c: In 
function 'zif_tidy_get_output':
/Users/niallm/Downloads/php-5.1.2/ext/tidy/tidy.c:1100: 
warning: pointer targets in initialization differ in 
signedness
make: *** [ext/tidy/tidy.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-26 14:22 UTC] tony2001@php.net
/usr/include/tidy/platform.h:515: error: duplicate 
'unsigned'

Apparently error in tidy headers is not PHP problem.
Report it to tidy authors.
 [2009-04-08 13:12 UTC] dams@php.net
I got the same problem, again and again. I finally found a solution (or 
a hack) : 

Get the libtidy from the CVS on their project.
compile and install
modify the /usr/include/tidy/platform.h

on line 530
comment the line
typedef unsigned long ulong;

Then, PHP compiled, and passed most of the tests.

Tested on 5.2.9, OSX 10.5.6.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jan 07 04:01:29 2025 UTC