ports/76242: php5 build error

Edvinas Valatka edvin at creditreform.lt
Fri Jan 14 10:00:35 UTC 2005


>Number:         76242
>Category:       ports
>Synopsis:       php5  build error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 14 10:00:34 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Edvinas Valatka
>Release:        amd64 5.3 stable
>Organization:
Creditreform Lithuania
>Environment:
FreeBSD db1.creditreform.lt 5.3-STABLE FreeBSD 5.3-STABLE #1: Tue Jan 11 16:57:28 EET 2005     root at db1.creditreform.lt:/usr/obj/usr/src/sys/DB1  amd64    
>Description:
===>  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
      
>How-To-Repeat:
cd /usr/ports/lang/php5 && make install

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




>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list