Bug 115089

Summary: Building graphics/php5-gd can result in invalid binary when WITHOUT_X11=yes
Product: Ports & Packages Reporter: John Lorer <spam.johnny>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description John Lorer 2007-07-31 17:10:02 UTC
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.

Fix: Apply attached patch in lang/php5

Patch attached with submission follows:
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-08-01 00:30:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2007-08-01 07:06:44 UTC
State Changed
From-To: open->feedback

Unable to reproduce. The configure seems correct. 
Provide additional details if you are sure there is an error.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2007-08-02 06:33:00 UTC
State Changed
From-To: feedback->closed

Submitter is unable to reproduce it.