Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2007 16:07:00 GMT
From:      John Lorer <spam.johnny@usask.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/115089: Building php5-gd can result in invalid binary when WITHOUT_X11=yes
Message-ID:  <200707311607.l6VG7020081669@www.freebsd.org>
Resent-Message-ID: <200707311610.l6VGA2Gv062954@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707311607.l6VG7020081669>