Re: tin 1.8.0 compiling errors on Mac OS X 10.4.4

Urs Janßen <[email protected]> Sun, 29 Jan 2006 14:46:36 +0100
Newsgroups gmane.network.tin.user
Message-ID <[email protected]>
On Sun, Jan 29, 2006 at 02:32:06PM +0100, Jennifer Arendt wrote:
> I tried to compile tin 1.8.0 on Mac OS X 10.4.4
> (Tiger/Darwin)
> with latest Xcode Tools.
> After...
>      ./configure --with-domain-name=news.example.org
> ...the command...
>      make build
> ...resultet in `parse error´ lines and I could not
> continue in
> installing tin. Unfortunately the README.MAC file was
[...]
> $ make build
> gcc -O2  -DHAVE_CONFIG_H -I. -I../include -I../pcre
> -I../pcre -DLOCALEDIR=\"/usr/local/share/locale\"
> -I../include   -I../intl  -U_XOPEN_SOURCE
> -D_XOPEN_SOURCE=500 -I../pcre -I../pcre  -o makecfg
> makecfg.c #-lcurses   -liconv
> In file included from /usr/include/sys/ucred.h:64,
>                  from /usr/include/sys/attr.h:36,
>                  from /usr/include/sys/mount.h:63,
>                  from /usr/include/libc.h:45,
>                  from ../include/tin.h:208,
>                  from makecfg.c:41:
> /usr/include/bsm/audit.h:219: error: parse error
> before 'u_char'
> /usr/include/bsm/audit.h:222: error: parse error
> before '}' token
> /usr/include/bsm/audit.h:229: error: parse error
> before 'u_char'
> /usr/include/bsm/audit.h:232: error: parse error
> before '}' token
> In file included from /usr/include/sys/attr.h:36,
>                  from /usr/include/sys/mount.h:63,
>                  from /usr/include/libc.h:45,
>                  from ../include/tin.h:208,
>                  from makecfg.c:41:
> make: [build] Error 2 (ignored)

this is a known bug in the 1.8.0er release, to fix it you could either use
the 1.8.1er snapshot from the ftp-server
	<ftp://ftp.tin.org/pub/news/clients/tin/stable/snapshots/>
or remove
	-U_XOPEN_SOURCE -D_XOPEN_SOURCE=500
from CPPFLAGS in src/Makefile (after the configure run. right before
"make build").

-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus