osdir.com
mailing list archive

Subject: [ tidy-Bugs-1236678 ] Compiling PHP 5.0.4 fails on `error: duplicate 'unsigned'` - msg#00101

List: web.html-tidy.tracker

Date: Prev Next Index Thread: Prev Next Index
Bugs item #1236678, was opened at 2005-07-12 06:02
Message generated for change (Comment added) made by terry_teague
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1236678&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Source portability
Group: Current - Mac OS specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Terry Teague (terry_teague)
Summary: Compiling PHP 5.0.4 fails on `error: duplicate 'unsigned'`

Initial Comment:
PHP 5.0.4 fails to compile with tidylib version 'HTML Tidy for Mac OS X
released on 1 July 2005'. System is g5 running OS X 10.4.1.

email: matt.hershberger@xxxxxxx

The tidy version included in 10.4 fails with the same error (error below)
on line 515 of platform.h. I upgraded thinking that would solve the
issue.

Tidy was compiled from cvs using:
./configure --prefix=/usr --includedir=/usr/include/tidy --libdir=/
usr/lib

PHP was compiled from source using: (same configure options as the
php that ships with 10.4 with the addition of --with-tidy)
'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/
usr/share/info' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/
usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-
xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-
mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--
with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/
etc' '--with-tidy'

I was able to work around this problem by
commenting out line 508 of /usr/include/tidy/platform.h while
compiling php. I uncommented line 508 after installation of php
completed. Tidy works as expected from the command line and PHP.

I came across this bug (http://bugzilla.opendarwin.org/show_bug.cgi?
id=2993) on opendarwin.org that describes the issue I am having.
However they closed it as fixed and the last comment
said it was a problem in tidy.

Here is the error message:
[snip]
In file included from /usr/include/tidy/tidy.h:70,
from /Users/matthewh/Downloads/php-5.0.4/ext/tidy/
tidy.c:37:
/usr/include/tidy/platform.h:508: error: duplicate 'unsigned'
/usr/include/tidy/platform.h:508: warning: useless type name in
empty declaration
[/snip]

Here are a few more lines of output around the error:
[snip]
gcc -Iext/tidy/ -I/Users/matthewh/Downloads/php-5.0.4/ext/tidy/ -
DPHP_ATOM_INC -I/Users/matthewh/Downloads/php-5.0.4/include -
I/Users/matthewh/Downloads/php-5.0.4/main -I/Users/matthewh/
Downloads/php-5.0.4 -I/usr/include/libxml2 -I/Users/matthewh/
Downloads/php-5.0.4/ext/mbstring/oniguruma -I/Users/matthewh/
Downloads/php-5.0.4/ext/mbstring/libmbfl -I/Users/matthewh/
Downloads/php-5.0.4/ext/mbstring/libmbfl/mbfl -I/usr/include/tidy
-I/Users/matthewh/Downloads/php-5.0.4/TSRM -I/Users/matthewh/
Downloads/php-5.0.4/Zend -no-cpp-precomp -g -O2 -c /Users/
matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c -o ext/tidy/tidy.o &&
echo > ext/tidy/tidy.lo
In file included from /usr/include/tidy/tidy.h:70,
from /Users/matthewh/Downloads/php-5.0.4/ext/tidy/
tidy.c:37:
/usr/include/tidy/platform.h:508: error: duplicate 'unsigned'
/usr/include/tidy/platform.h:508: warning: useless type name in
empty declaration
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'php_tidy_quick_repair':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:461: warning:
pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'tidy_doc_cast_handler':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:636: warning:
pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'tidy_node_cast_handler':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:668: warning:
pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'tidy_doc_update_properties':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:689: warning:
pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:697: warning:
pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'zif_ob_tidyhandler':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:990: warning:
pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'zif_tidy_get_error_buffer':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:1039:
warning: pointer targets in initialization differ in signedness
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c: In function
'zif_tidy_get_output':
/Users/matthewh/Downloads/php-5.0.4/ext/tidy/tidy.c:1055:
warning: pointer targets in initialization differ in signedness
make: *** [ext/tidy/tidy.lo] Error 1
[/snip]

----------------------------------------------------------------------

>Comment By: Terry Teague (terry_teague)
Date: 2005-08-28 17:27

Message:
Logged In: YES
user_id=225318

Thanks for the report.

I don't usually build on Tiger, but last time I did build on Tiger with the
latest code (Aug 2005), it compiled without problem, using my slightly
customized version of the code and Makefile. I know of one other Tiger
specific bug with the standard Tidy code/Makefile that I should fix in
CVS.

I will investigate further and fix as appropriate.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1236678&group_id=27659


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

[ tidy-Support Requests-1246979 ] Proprietary

Support Requests item #1246979, was opened at 2005-07-28 11:12 Message generated for change (Comment added) made by terry_teague You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390964&aid=1246979&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Usage Problem Group: Current - all platforms Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Proprietary Initial Comment: using Homesite 5 I was working with a 2003 tidy.exe That vanished when I had the motherboard fail and replaced. I downloaded the latest zip file and extracted it to Homesite. Now when running Codesweeper, it replaces Proprietary with Transitional, and ruins the stylesheet functions! What needs changing to prevent that? Tony ton.batchelor@xxxxxxxxxx ---------------------------------------------------------------------- >Comment By: Terry Teague (terry_teague) Date: 2005-08-28 17:15 Message: Logged In: YES user_id=225318 I'm not a Windows user, nor am I familiar with Homesite and Codesweeper, so I did a little checking on the web. <http://livedocs.macromedia.com/coldfusion/5.0/Using_HomeSite/ language7.htm> Without knowing what version of the Tidy code, the Tidy configuration settings and sample input HTML being used, it is hard to give advice. You might want to also ask on MacroMedia support forums. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-07-29 06:40 Message: Logged In: NO sorry, wrongly typed email address! Should have been tony.batchelor@xxxxxxxxxx ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390964&aid=1246979&group_id=27659 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Next Message by Date: click to view message preview

[ tidy-Bugs-1264785 ] ? new-inline-tags limit

Bugs item #1264785, was opened at 2005-08-20 04:39 Message generated for change (Comment added) made by terry_teague You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1264785&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Current - all platforms Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: ? new-inline-tags limit Initial Comment: I'm using HTMLTidy in Visual Studio .NET 2003 by linking to it via an add-in thanks to the instructions at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/tchVSAddinEnablingHTMLTidy.asp Unfortunately I've run into a bit of a snag. As I'm sure you're aware many of the asp tags are not recognised by HTML tidy, so to get around that I've added many of them to new-inline-tags in my config file. Problem is I now seem to have hit a limit of 33 new-inline tags. Any more than that and HTMLTidy appears to hang. Is this a bug, or am I doing something wrong? Any tips? My email is blah9898@xxxxxxxxxxx My config file atm is: indent: auto indent-spaces: 4 wrap: 0 markup: yes output-xml: no input-xml: no show-warnings: yes numeric-entities: yes quote-marks: yes quote-nbsp: yes quote-ampersand: no break-before-br: no uppercase-tags: no uppercase-attributes: no char-encoding: latin1 new-inline-tags: cfif,cfelse,math,mroot,mrow,mi,mn,mo,msqrt,mfrac,msubsup,munderover,munder,mover,mmultiscripts,msup,msub,mtext,mprescripts,mtable,mtr,mtd,mth,uc1:banner,asp:dropdownlist,asp:label,asp:datagrid,asp:textbox,selecteditemstyle,asp,uc1:navbar,edititemstyle,asp:boundcolumn,headerstyle new-blocklevel-tags: cfoutput,cfquery new-empty-tags: cfelse ---------------------------------------------------------------------- >Comment By: Terry Teague (terry_teague) Date: 2005-08-28 18:09 Message: Logged In: YES user_id=225318 I wasn't able to reproduce a hang with a recent version (Aug 2005) on my platform using the sample config file provided and a random HTMl file (or no HTML file at all), but I did see some unexpected behaviour related to new-inline-tags (and other) and the -show-config option. I know some work was done in this area recently, so maybe something got broken. FWIW, the sample config file has a line that 280 chars in length, just in case there is a 256 char buffer somewhere (I think the buffers that are used are 1024 chars in size). ---------------------------------------------------------------------- Comment By: Arnaud Desitter (arnaud02) Date: 2005-08-22 01:57 Message: Logged In: YES user_id=566665 It sounds like a bug. Please provide a small html file and a configuration file that make it possible to reproduce the bug. As well, provide the version of tidy you are using. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1264785&group_id=27659 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Previous Message by Thread: click to view message preview

[ tidy-Support Requests-1246979 ] Proprietary

Support Requests item #1246979, was opened at 2005-07-28 11:12 Message generated for change (Comment added) made by terry_teague You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390964&aid=1246979&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Usage Problem Group: Current - all platforms Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Proprietary Initial Comment: using Homesite 5 I was working with a 2003 tidy.exe That vanished when I had the motherboard fail and replaced. I downloaded the latest zip file and extracted it to Homesite. Now when running Codesweeper, it replaces Proprietary with Transitional, and ruins the stylesheet functions! What needs changing to prevent that? Tony ton.batchelor@xxxxxxxxxx ---------------------------------------------------------------------- >Comment By: Terry Teague (terry_teague) Date: 2005-08-28 17:15 Message: Logged In: YES user_id=225318 I'm not a Windows user, nor am I familiar with Homesite and Codesweeper, so I did a little checking on the web. <http://livedocs.macromedia.com/coldfusion/5.0/Using_HomeSite/ language7.htm> Without knowing what version of the Tidy code, the Tidy configuration settings and sample input HTML being used, it is hard to give advice. You might want to also ask on MacroMedia support forums. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-07-29 06:40 Message: Logged In: NO sorry, wrongly typed email address! Should have been tony.batchelor@xxxxxxxxxx ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390964&aid=1246979&group_id=27659 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Next Message by Thread: click to view message preview

[ tidy-Bugs-1276114 ] Inserts white space between <span> tags

Bugs item #1276114, was opened at 2005-08-29 15:14 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1276114&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HTML/XML/XHTML Parser Group: Current - Win32 specific Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Inserts white space between <span> tags Initial Comment: Find the two attached files: origtest.html - This is the file used for input Steps to Reproduce: 1. Run Tidy tidy -m orugtest.html (Use version Tidy for Windows released on 12 April 2005) Notice the white spaces added between the end span tag and the beginning span tag starting from the line that contains the text "and divorced". Problem: Since our <Div> tag has a declaration in CSS to page break before, our xml reader reads the Tidy output html and page breaks right before the white space. Since the source html did not have this, could you check to see if this can be fixed? Thanks! Sam ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1276114&group_id=27659 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by