From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 8 10:40:05 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2E1516A41C for ; Wed, 8 Jun 2005 10:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 577F043D4C for ; Wed, 8 Jun 2005 10:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j58Ae5rU064647 for ; Wed, 8 Jun 2005 10:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j58Ae5O0064646; Wed, 8 Jun 2005 10:40:05 GMT (envelope-from gnats) Resent-Date: Wed, 8 Jun 2005 10:40:05 GMT Resent-Message-Id: <200506081040.j58Ae5O0064646@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Edwin Culp Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E2AD16A420 for ; Wed, 8 Jun 2005 10:33:04 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65A8A43D1F for ; Wed, 8 Jun 2005 10:33:04 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j58AX444036721 for ; Wed, 8 Jun 2005 10:33:04 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j58AX4an036720; Wed, 8 Jun 2005 10:33:04 GMT (envelope-from nobody) Message-Id: <200506081033.j58AX4an036720@www.freebsd.org> Date: Wed, 8 Jun 2005 10:33:04 GMT From: Edwin Culp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/82024: lang/php5 doesn't compile out of the box. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 10:40:06 -0000 >Number: 82024 >Category: ports >Synopsis: lang/php5 doesn't compile out of the box. >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: Wed Jun 08 10:40:04 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Edwin Culp >Release: Current >Organization: N/A >Environment: FreeBSD local4.plazamagnolia.com 6.0-CURRENT FreeBSD 6.0-CURRENT #252: Tue Jun 7 06:12:07 CDT 2005 root@local4.plazamagnolia.com:/usr/obj/usr/src/sys/ENCONTACTO i386 >Description: lang/php5 hasn't compiled "out of the box" for some time. It generates the following error messages: Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zend_reflection_api.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lbind -lcrypt -lm -lxml2 -lz -liconv -lm -lcrypt -lcrypt -o sapi/cli/php ext/standard/dns.lo(.text+0x131f): In function `zif_dns_get_record': : undefined reference to `res_ninit' ext/standard/dns.lo(.text+0x1365): In function `zif_dns_get_record': : undefined reference to `res_nmkquery' ext/standard/dns.lo(.text+0x138d): In function `zif_dns_get_record': : undefined reference to `res_nsend' ext/standard/dns.lo(.text+0x148f): In function `zif_dns_get_record': : undefined reference to `res_nclose' *** Error code 1 Stop in /usr/ports/lang/php5/work/php-5.0.4. *** Error code 1 >How-To-Repeat: cd /usr/ports/lang/php5 make >Fix: At least the following patch submitted to the list by Bjoern Koenig works very well for me on 5 different servers for over a week. --- ext/standard/dns.c.bak Mon May 23 14:32:16 2005 +++ ext/standard/dns.c Mon May 23 14:33:18 2005 @@ -254,7 +254,7 @@ WRONG_PARAM_COUNT; } - i = res_search(Z_STRVAL_PP(arg1), C_IN, type, ans, sizeof(ans)); + i = __res_search(Z_STRVAL_PP(arg1), C_IN, type, ans, sizeof(ans)); if (i < 0) { RETURN_FALSE; @@ -627,17 +627,17 @@ break; } if (type_to_fetch) { - res_ninit(&res); + __res_ninit(&res); res.retrans = 5; res.options &= ~RES_DEFNAMES; - n = res_nmkquery(&res, QUERY, Z_STRVAL_P(host), C_IN, type_to_fetch, NULL, 0, NULL, buf.qb2, sizeof buf); + n = __res_nmkquery(&res, QUERY, Z_STRVAL_P(host), C_IN, type_to_fetch, NULL, 0, NULL, buf.qb2, size of buf); if (n<0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "res_nmkquery() failed"); zval_dtor(return_value); RETURN_FALSE; } - n = res_nsend(&res, buf.qb2, n, answer.qb2, sizeof answer); + n = __res_nsend(&res, buf.qb2, n, answer.qb2, sizeof answer); if (n<0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "res_nsend() failed"); zval_dtor(return_value); @@ -673,7 +673,7 @@ add_next_index_zval(return_value, retval); } } - res_nclose(&res); + __res_nclose(&res); } } @@ -741,7 +741,7 @@ array_init(mx_list); /* Go! */ - i = res_search(Z_STRVAL_P(host), C_IN, T_MX, (u_char *)&ans, sizeof(ans)); + i = __res_search(Z_STRVAL_P(host), C_IN, T_MX, (u_char *)&ans, sizeof(ans)); if (i < 0) { RETURN_FALSE; } >Release-Note: >Audit-Trail: >Unformatted: