From owner-freebsd-ports Wed Nov 13 16:40: 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 BFC1B37B401 for ; Wed, 13 Nov 2002 16:40:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EB4D43E3B for ; Wed, 13 Nov 2002 16:40:03 -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 gAE0e3x3069114 for ; Wed, 13 Nov 2002 16:40:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAE0e3iI069113; Wed, 13 Nov 2002 16:40:03 -0800 (PST) Date: Wed, 13 Nov 2002 16:40:03 -0800 (PST) Message-Id: <200211140040.gAE0e3iI069113@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: John Merryweather Cooper Subject: Re: ports/45276: libesmtp uses undefined PF_UNSPEC constant. Reply-To: John Merryweather Cooper 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 The following reply was made to PR ports/45276; it has been noted by GNATS. From: John Merryweather Cooper To: Mike E Cc: "FreeBSD-gnats-submit@freebsd.org" Subject: Re: ports/45276: libesmtp uses undefined PF_UNSPEC constant. Date: 13 Nov 2002 16:38:53 -0800 The author has just released a new version, I'll need to check and see if this is still an issue. jmc On Wed, 2002-11-13 at 15:07, Mike E wrote: > >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 -- John Merryweather Cooper University of Idaho To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message