NetBSD Problem Report #57936

From john@klos.com  Wed Feb 14 18:46:57 2024
Return-Path: <john@klos.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 950171A9238
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Feb 2024 18:46:57 +0000 (UTC)
Message-Id: <202402141738.41EHcCwK016447@bunny.zia.io>
Date: Wed, 14 Feb 2024 17:38:12 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/mail/sendmail fails on NetBSD 9
X-Send-Pr-Version: 3.95

>Number:         57936
>Category:       pkg
>Synopsis:       pkgsrc/mail/sendmail fails on NetBSD 9
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jnemeth
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 14 18:50:02 +0000 2024
>Closed-Date:    Sun Feb 25 10:06:17 +0000 2024
>Last-Modified:  Sun Feb 25 10:06:17 +0000 2024
>Originator:     John Klos
>Release:        9.0_STABLE
>Organization:

>Environment:


System: NetBSD lain.zia.io 9.0_STABLE NetBSD 9.0_STABLE (LAIN) #0: Fri Jun 12 01:17:05 UTC 2020  john@lain.zia.io:/usr/obj-amd64/sys/arch/amd64/compile/LAIN amd64
Architecture: x86_64
Machine: amd64
>Description:

Try to compile mail/sendmail on NetBSD 9 with default options:

cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DSOCKETMAP -I/usr/local/include -DSMRSH_CMDDIR=\"/usr/local/libexec/sm.bin\" -DNETINET6 -DNEEDSGETIPNODE -DHAS_GETHOSTBYNAME2 -DTCPWRAPPERS -D_FFR_USE_GETPWNAM_ERRNO=1 -DMILTER -DSTARTTLS -DUSE_BLACKLIST   -I/usr/include -c srvrsmtp.c
In file included from ./sendmail.h:79:0,
                 from srvrsmtp.c:14:
srvrsmtp.c: In function 'smtp':
srvrsmtp.c:1544:43: error: 'fd' undeclared (first use in this function); did you mean 'wfd'?
     BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL, fd, "pre-greeting traffic");
                                           ^
./blacklist_client.h:48:57: note: in definition of macro 'BLACKLIST_NOTIFY'
 #define BLACKLIST_NOTIFY(x, y, msg) blacklist_notify(x, y, msg)
                                                         ^
srvrsmtp.c:1544:43: note: each undeclared identifier is reported only once for each function it appears in
     BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL, fd, "pre-greeting traffic");
                                           ^
./blacklist_client.h:48:57: note: in definition of macro 'BLACKLIST_NOTIFY'
 #define BLACKLIST_NOTIFY(x, y, msg) blacklist_notify(x, y, msg)
                                                         ^
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/mail/sendmail/work/sendmail-8.18.1/obj.NetBSD.9.0_STABLE.amd64/sendmail

>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jnemeth
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 14 Feb 2024 19:34:52 +0000
Responsible-Changed-Why:
Over to maintainer


From: "John Nemeth" <jnemeth@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57936 CVS commit: pkgsrc/mail/sendmail
Date: Mon, 19 Feb 2024 04:12:36 +0000

 Module Name:	pkgsrc
 Committed By:	jnemeth
 Date:		Mon Feb 19 04:12:36 UTC 2024

 Modified Files:
 	pkgsrc/mail/sendmail: Makefile distinfo
 	pkgsrc/mail/sendmail/patches: patch-az

 Log Message:
 PR/57936 -- fix build problem on netbsd-9


 To generate a diff of this commit:
 cvs rdiff -u -r1.143 -r1.144 pkgsrc/mail/sendmail/Makefile
 cvs rdiff -u -r1.71 -r1.72 pkgsrc/mail/sendmail/distinfo
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/mail/sendmail/patches/patch-az

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: John Klos <john@klos.com>
To: gnats-bugs@netbsd.org
Cc: jnemeth@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: PR/57936 CVS commit: pkgsrc/mail/sendmail
Date: Tue, 20 Feb 2024 01:53:29 +0000 (UTC)

 > Log Message:
 > PR/57936 -- fix build problem on netbsd-9

 Compiles and runs fine. Thanks!

State-Changed-From-To: open->closed
State-Changed-By: jnemeth@NetBSD.org
State-Changed-When: Sun, 25 Feb 2024 10:06:17 +0000
State-Changed-Why:
Confirmed fixed.  Not on branch, so no pullup required.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.