Date: Wed, 21 Apr 2010 18:18:10 GMT From: Mike Bowie <mbowie@buzmo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/145922: finances/php-tclink breaks with PHP 5.3 under amd64 Message-ID: <201004211818.o3LIIALI078698@www.freebsd.org> Resent-Message-ID: <201004211820.o3LIK6kR012881@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 145922 >Category: ports >Synopsis: finances/php-tclink breaks with PHP 5.3 under amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Apr 21 18:20:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Mike Bowie >Release: 8.0-RELEASE >Organization: Buzmo Solutions, LLC >Environment: FreeBSD frebsd8-0-amd64.sv.buzmo.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: As notified by pav@, building finance/php-tclink fails with: /work/a/ports/finance/php-tclink/work/tclink-3.4.4-php/php_tclink.c:50: error: initializer element is not computable at load time >From what I can tell, the issue only presented itself after lang/php5 made the jump to 5.3 and it doesn't present itself on my i386 test host. >How-To-Repeat: cd .../finance/php-tclink && make (On an amd64 host with lang/php5 of 5.3+) >Fix: Applying the attached patch adds a build patch to the port to incorporate the appropriate Zend-fu. Patch attached with submission follows: diff -Nur php-tclink.orig/files/patch-php_tclink.c php-tclink/files/patch-php_tclink.c --- php-tclink.orig/files/patch-php_tclink.c 1969-12-31 16:00:00.000000000 -0800 +++ php-tclink/files/patch-php_tclink.c 2010-04-21 11:11:29.000000000 -0700 @@ -0,0 +1,15 @@ +--- php_tclink.c.orig 2010-04-21 10:49:52.000000000 -0700 ++++ php_tclink.c 2010-04-21 10:50:12.000000000 -0700 +@@ -46,7 +46,11 @@ + #ifdef STANDARD_MODULE_HEADER + STANDARD_MODULE_HEADER, + #endif +- "tclink", php_tclink_functions, NULL, NULL, NULL, NULL, PHP_MINFO(tclink), STANDARD_MODULE_PROPERTIES ++ "tclink", php_tclink_functions, NULL, NULL, NULL, NULL, PHP_MINFO(tclink), ++#if ZEND_MODULE_API_NO >= 20010901 ++ TCLINK_VERSION, ++#endif ++ STANDARD_MODULE_PROPERTIES + }; + + #define PHP_TCLINK_DEFAULT_BUFFER_SIZE 8196 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004211818.o3LIIALI078698>