Subject: Re: build problem with comms/minicom on Darwin
To: Brian A. Seklecki <lavalamp@spiritual-machines.org>
From: Sean J. Schluntz <schluntz@workofstone.com>
List: tech-pkg
Date: 12/14/2002 22:36:59
In message <20021214070454.K60828-100000@digitalfreaks.org>, "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>
>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>
>SJS> cc -no-cpp-precomp -I/usr/pkg/include -Wall -D_POSIX -D_BSD43 -D_SELECT -
>D_DCDFLOW -D_HISTORY -D_HAVE_MACROS -D_SEARCH_HISTORY -D_I18N_ -DBINDIR=\"/usr
>/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>
>SJS> Stop.
>SJS> bmake: stopped in /usr/pkgsrc/comms/minicom
>SJS> *** Error code 1
>SJS>
>SJS> Stop.
>SJS> bmake: stopped in /usr/pkgsrc/comms/minicom
>SJS>
>SJS> Anyone else running Minicom under MacOS X?
>SJS>
>SJS> -Sean
>SJS>

>...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.

/usr/include/dirent.h:64
#include <sys/dirent.h>


/usr/include/sys/dirent.h:69-83
#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 */
#ifdef _POSIX_SOURCE
        char    d_name[255 + 1];        /* name must be no longer than this */
#else
#define MAXNAMLEN       255
        char    d_name[MAXNAMLEN + 1];  /* name must be no longer than this */
#endif
};