Bug 76242

Summary: php5 build error
Product: Ports & Packages Reporter: Edvinas Valatka <edvin>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Edvinas Valatka 2005-01-14 10:00:34 UTC
===>  Building for php5-5.0.3_1
ext/standard/dns.lo(.text+0x1b2e): In function `zif_dns_get_record':
/usr/ports/lang/php5/work/php-5.0.3/ext/standard/dns.c:630: undefined reference to `res_ninit'
ext/standard/dns.lo(.text+0x1b96):/usr/ports/lang/php5/work/php-5.0.3/ext/standard/dns.c:634: undefined reference to `res_nmkquery'
ext/standard/dns.lo(.text+0x1bca):/usr/ports/lang/php5/work/php-5.0.3/ext/standard/dns.c:640: undefined reference to `res_nsend'
ext/standard/dns.lo(.text+0x1cf2):/usr/ports/lang/php5/work/php-5.0.3/ext/standard/dns.c:676: undefined reference to `res_nclose'
*** Error code 1

Stop in /usr/ports/lang/php5/work/php-5.0.3.
*** Error code 1

Fix: 

vi /usr/ports/lang/php5/work/php-5.0.3/ext/standard/dns.c
replace 
res_ninit  with __res_ninit
res_nmkquery with __res_nmkquery
res_nsend with __res_nsend
res_nclose with __res_nclose

Additional info : 
This workaround I found at http://www.mail-archive.com/freebsd-questions%40freebsd.org/msg86220.html
Big THANK`S going to Mr.O Hartman (ohartman at uni-mainz dot de)
How-To-Repeat: cd /usr/ports/lang/php5 && make install
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-01-14 20:20:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2005-06-19 11:13:36 UTC
State Changed
From-To: open->closed

Fixed, thanks!