From owner-freebsd-ports Wed Nov 13 15:10: 5 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C342737B401 for ; Wed, 13 Nov 2002 15:10:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 114CA43E77 for ; Wed, 13 Nov 2002 15:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gADNA1x3028029 for ; Wed, 13 Nov 2002 15:10:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gADNA1qn028028; Wed, 13 Nov 2002 15:10:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B733D37B401 for ; Wed, 13 Nov 2002 15:07:58 -0800 (PST) Received: from basement.kutulu.org (pcp01881232pcs.longhl01.md.comcast.net [68.32.161.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9291343E6E for ; Wed, 13 Nov 2002 15:07:52 -0800 (PST) (envelope-from kutulu@basement.kutulu.org) Received: from basement.kutulu.org (smmsp@localhost [127.0.0.1]) by basement.kutulu.org (8.12.6/8.12.6) with ESMTP id gADN7sf0024956 for ; Wed, 13 Nov 2002 18:07:54 -0500 (EST) (envelope-from kutulu@basement.kutulu.org) Received: (from root@localhost) by basement.kutulu.org (8.12.6/8.12.6/Submit) id gADN7rae024955; Wed, 13 Nov 2002 18:07:53 -0500 (EST) Message-Id: <200211132307.gADN7rae024955@basement.kutulu.org> Date: Wed, 13 Nov 2002 18:07:53 -0500 (EST) From: Mike E Reply-To: Mike E To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/45276: libesmtp uses undefined PF_UNSPEC constant. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45276 >Category: ports >Synopsis: libesmtp uses undefined PF_UNSPEC constant. >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 13 15:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Kutulu >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD basement.kutulu.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Nov 12 15:43:48 EST 2002 root@basement.kutulu.org:/usr/obj/usr/src/sys/GATEWAY i386 >Description: libesmtp attempts to use PF_UNSPEC without properly ensuring that it is defined. The port defines it's POSIX level as 199506 (by defining __POSIX_C_SOURCE in config.h) and the X/Open compatibility level to 500 (_XOPEN_SOURCE in config.h). However, these cause the value of __BSD_VISIBLE to remain undefined, and thus PF_UNSPEC is not visible. (Coincidentally, defining __POSIX_C_SOURCE and _XOPEN_SOURCE in this case is redundant .. the second redefines the first anyway). >How-To-Repeat: build /usr/ports/mail/libesmtp >Fix: I commented out the _POSIX_C_SOURCE and _XOPEN_SOURCE feature-test macros and the port successfully built. However, I'm unsure of all the ramifications of using these feature-test macros, so I'm not sure this is the ideal permanent fix. It also generated additional warnings about ISO C89 and 'long long' values that were not present before. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message