Subject: pkg/25481: sendmail from pkgsrc fails to build
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <julian@dreaming.org>
List: pkgsrc-bugs
Date: 05/06/2004 16:48:37
>Number: 25481
>Category: pkg
>Synopsis: sendmail from pkgsrc fails to build
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 06 20:53:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Julian C. Dunn <julian@dreaming.org>
>Release: NetBSD 2.0E
>Organization:
The Dreaming Electronic Community Network Inc.
>Environment:
System: NetBSD letitia.acf.aquezada.com 2.0E NetBSD 2.0E (GENERIC) #2: Wed May 5 12:57:10 EDT 2004 jdunn@aphrodite.acf.aquezada.com:/mnt/src/sys/arch/i386/compile/obj/GENERIC i386
Architecture: i386
Machine: i386
>Description:
sendmail 8.12.11 from pkgsrc fails to build on -current. The following
error occurs during the build:
Making in /repo/pkgsrc/mail/sendmail/work/sendmail-8.12.11/obj.NetBSD.2.0E.i386/sendmail
cp /dev/null statistics
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DNETISO -I/usr/pkg/include -DNETINET6 -DNEEDSGETIPNODE -
DTCPWRAPPERS -DMILTER -I/usr/pkg/include -c main.c
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DNETISO -I/usr/pkg/include -DNETINET6 -DNEEDSGETIPNODE -
DTCPWRAPPERS -DMILTER -I/usr/pkg/include -c alias.c
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DNETISO -I/usr/pkg/include -DNETINET6 -DNEEDSGETIPNODE -
DTCPWRAPPERS -DMILTER -I/usr/pkg/include -c arpadate.c
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DNETISO -I/usr/pkg/include -DNETINET6 -DNEEDSGETIPNODE -
DTCPWRAPPERS -DMILTER -I/usr/pkg/include -c bf.c
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DNETISO -I/usr/pkg/include -DNETINET6 -DNEEDSGETIPNODE -
DTCPWRAPPERS -DMILTER -I/usr/pkg/include -c collect.c
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DNETISO -I/usr/pkg/include -DNETINET6 -DNEEDSGETIPNODE -
DTCPWRAPPERS -DMILTER -I/usr/pkg/include -c conf.c
conf.c: In function `freediskspace':
conf.c:3297: error: storage size of `fs' isn't known
*** Error code 1
Stop.
make: stopped in /repo/pkgsrc/mail/sendmail/work/sendmail-8.12.11/obj.NetBSD.2.0E.i386/sendmail
>How-To-Repeat:
'make install' in /usr/pkgsrc/mail/sendmail
>Fix:
The code in conf.c leading up to this is:
# if SFS_TYPE == SFS_STATVFS
struct statvfs fs;
# define FSBLOCKSIZE fs.f_frsize
# else /* SFS_TYPE == SFS_STATVFS */
struct statfs fs;
where the last line is the one causing the error. It would seem to me that SFS_TYPE
should be defined to be SFS_STATVFS for NetBSD, but it is not, for whatever reason.
I'm not adept enough to investigate further.
>Release-Note:
>Audit-Trail:
>Unformatted: