Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 18:07:53 -0500 (EST)
From:      Mike E <kutulu@kutulu.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45276: libesmtp uses undefined PF_UNSPEC constant.
Message-ID:  <200211132307.gADN7rae024955@basement.kutulu.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211132307.gADN7rae024955>