Opened 19 years ago

Closed 19 years ago

#2993 closed defect (fixed)

BUG: php5-5.0.3 (tidy issues)

Reported by: watts@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

The php5 port depends on libtidy to be installed from the tidy port. Tidy builds without error on Tiger. However, the build of php5 fails:

---> Fetching php5 ---> Verifying checksum(s) for php5 ---> Extracting php5 ---> Configuring php5 ---> Building php5 with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3" && make all" returned error 2 Command output: /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/streamsfuncs.c:487: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/streamsfuncs.c: In function 'zif_stream_get_wrappers': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/streamsfuncs.c:513: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/streamsfuncs.c: In function 'parse_context_options': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/streamsfuncs.c:808: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/streamsfuncs.c:814: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness gcc -Iext/standard/ -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/ -DPHP_ATOM_INC -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/include -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/main -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3 -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/Zend -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/c-client -I/ opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/mbstring/oniguruma -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/mbstring/libmbfl -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/mbstring/libmbfl/mbfl -no-cpp-precomp -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/TSRM -I/opt/local/include/c-client -c /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/http.c -o ext/standard/http.o && echo > ext/standard/http.lo /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/http.c: In function 'php_url_encode_hash_ex': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/standard/http.c:55: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness gcc -Iext/tidy/ -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/ -DPHP_ATOM_INC -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/include -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/main -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3 -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/Zend -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/c-client -I/ opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/mbstring/oniguruma -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/mbstring/libmbfl -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/mbstring/libmbfl/mbfl -no-cpp-precomp -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/TSRM -I/opt/local/include/c-client -c /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c -o ext/tidy/tidy.o && echo > ext/tidy/tidy.lo In file included from /opt/local/include/tidy.h:70,

from /opt/local/var/db/dports/build/

file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:37: /opt/local/include/platform.h:501: error: duplicate 'unsigned' /opt/local/include/platform.h:501: warning: useless type name in empty declaration /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'php_tidy_quick_repair': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:459: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'tidy_doc_cast_handler': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:634: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'tidy_node_cast_handler': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:666: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'tidy_doc_update_properties': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:687: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:695: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'zif_ob_tidyhandler': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:999: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'zif_tidy_get_error_buffer': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:1048: warning: pointer targets in initialization differ in signedness /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c: In function 'zif_tidy_get_output': /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_php5/work/ php-5.0.3/ext/tidy/tidy.c:1064: warning: pointer targets in initialization differ in signedness make: * [ext/tidy/tidy.lo] Error 1

Change History (4)

comment:1 Changed 19 years ago by watts@…

Commenting out line 501 of /opt/local/include/platform.h allows php to compile without error. However, trying to start apache produces this error:

dhcp147% sudo ./apachectl start Syntax error on line 275 of /opt/local/apache2/conf/httpd.conf: Cannot load /opt/local/apache2/modules/libphp5.so into server: Library not loaded: /usr/lib/libcrypto. 0.9.7.dylib\n Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/ A/Frameworks/ColorSync.framework/Versions/A/ColorSync\n Reason: Incompatible library version: ColorSync requires version 0.9.7 or later, but libcrypto.0.9.7.dylib provides version 0.9.0

Line 275 is:

LoadModule php5_module modules/libphp5.so

Commenting this line out allows apache to start normally.

comment:2 Changed 19 years ago by mww@…

op_sys: Mac OS X 10.3Mac OS X 10.4
Summary: php5 does not build under OS X 10.4BUG: php5 does not build under OS X 10.4

comment:3 Changed 19 years ago by tom@…

Summary: BUG: php5 does not build under OS X 10.4BUG: php5-5.0.3 (tidy issues)

I get the same problems on the build phase. However, installing "php5 +xsl +apache2" in the configure phase I get:

""" checking for TIDY support... yes configure: error: Cannot find libtidy """

Then I installed tidy separately it configured just fine. I'm not sure whether tidy is needed for the entire php5 or for one of my variants. Adding tidy to the dependencies does not solve the build issues, but might be important once php5 builds.

comment:4 Changed 19 years ago by jkh@…

Resolution: fixed
Status: newclosed

The bug was actually in tidy. Fixed. To make php5 work, you'll have to make sure to do the following, however:

port uninstall tidy cd darwinports/dports/www/tidy port clean --all

Unfortunately, all the archived stuff now doesn't take into account the fact that some stuff can make a port "stale" and it should NOT use the archived version. That is a bug in the archive mode stuff.

Note: See TracTickets for help on using tickets.