Subject: Re: build problem with comms/minicom on Darwin
To: Brian A. Seklecki <>
From: Sean J. Schluntz <>
List: tech-pkg
Date: 12/14/2002 22:36:59
In message <>, "Brian A. Seklecki
" writes:
>On Fri, 13 Dec 2002 @ 8:37pm (-0800), Sean J. Schluntz wrote:
>SJS> With the Dec 7th pkgsrc.tar.gz and the
>SJS> bootstrap-Darwin-6.2-powerpc-20021202.tar.gz I've run in to a problem
>SJS> trying to build minicom.
>SJS> The "bmake" in comms/minicom finds libmm and expat, the configure runs
>SJS> through and then it begins to build.  Then I run in to the following
>SJS> error:
>SJS> cc -no-cpp-precomp -I/usr/pkg/include -Wall -D_POSIX -D_BSD43 -D_SELECT -
>/pkg/bin\" -DLIBDIR=\"/usr/pkg/etc/minicom\" -no-cpp-precomp -I/usr/pkg/includ
>e  -c -o windiv.o windiv.c
>SJS> In file included from /usr/include/dirent.h:64,
>SJS>                  from windiv.c:15:
>SJS> /usr/include/sys/dirent.h:73: parse error before "u_int32_t"
>SJS> /usr/include/sys/dirent.h:75: parse error before "d_type"
>SJS> /usr/include/sys/dirent.h:76: parse error before "d_namlen"
>SJS> /usr/include/sys/dirent.h:83: parse error before '}' token
>SJS> gnumake: *** [windiv.o] Error 1
>SJS> *** Error code 2
>SJS> Stop.
>SJS> bmake: stopped in /usr/pkgsrc/comms/minicom
>SJS> *** Error code 1
>SJS> Stop.
>SJS> bmake: stopped in /usr/pkgsrc/comms/minicom
>SJS> Anyone else running Minicom under MacOS X?
>SJS> -Sean

>...without breaking some copywrite law, is is possible for you to post the
>contents of this file where denoted (lines 70-80).

Hmm, BSD + Apple licenses. Here is the block in question plus some.

#include <sys/dirent.h>

#ifndef _SYS_DIRENT_H 
#define _SYS_DIRENT_H 

struct dirent {
        u_int32_t d_fileno;             /* file number of entry */
        u_int16_t d_reclen;             /* length of this record */
        u_int8_t  d_type;               /* file type, see below */
        u_int8_t  d_namlen;             /* length of string in d_name */
        char    d_name[255 + 1];        /* name must be no longer than this */
#define MAXNAMLEN       255
        char    d_name[MAXNAMLEN + 1];  /* name must be no longer than this */