ports/115089: Building php5-gd can result in invalid binary when WITHOUT_X11=yes
John Lorer
spam.johnny at usask.ca
Tue Jul 31 16:10:03 UTC 2007
>Number: 115089
>Category: ports
>Synopsis: Building php5-gd can result in invalid binary when WITHOUT_X11=yes
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 31 16:10:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: John Lorer
>Release: 6.2-RELEASE--p6
>Organization:
University of Saskatchewan
>Environment:
FreeBSD [redacted] 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #4: Tue Jul 24 16:24:41 CST 2007 root@[redacted]:/usr/obj/usr/src/sys/SESD_SMP i386
>Description:
Building graphics/php5-gd port can result in an extension with a reference to an undefined symbol if WITHOUT_X11=yes
lang/php5 port version used is php5-5.2.3 revision 0. I believe the problem still exists in php5-5.2.3_1.
>How-To-Repeat:
1. Build graphics/php5-gd port without defining WITHOUT_X11=yes
2. Decide you don't care if your php5-gd supports XPM and you have no use for all for those X11 libraries
3. put WITHOUT_X11=yes in /etc/make.conf
4. cd /usr/ports/graphics/php5-gd && make clean deinstall reinstall clean
The resulting gd.so extension will reference an undefined symbol
>Fix:
Apply attached patch in lang/php5
Patch attached with submission follows:
--- Makefile.ext.orig Tue Jul 31 09:57:57 2007
+++ Makefile.ext Tue Jul 31 09:58:56 2007
@@ -97,6 +97,8 @@
--with-zlib-dir=/usr
. if !defined(WITHOUT_X11)
CONFIGURE_ARGS+=--with-xpm-dir=${X11BASE}
+. else
+CONFIGURE_ARGS+=--without-xpm-dir
. endif
OPTIONS= T1LIB "Include T1lib support" on \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list