Subject: Re: pkg/24861: mail/metamail doesn't build on linux
To: None <froz@icix.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-bugs
Date: 03/20/2004 10:24:11
On Sat, 20 Mar 2004 froz@icix.org wrote:
> metamail doesn't build on linux due to missing signal SIGEMT and some
> conflicting declarations.
I saw same.
> #ifndef LINUX
> - signal(SIGEMT, cleanup);
According to config.h, LINUX could be defined.
Maybe SIGEMT is needed by others?
> +#if !(defined(__linux__))
> #if defined(STDC_HEADERS) || defined(USG) || defined(SYSV)
> #include <string.h>
> #else /* not (STDC_HEADERS or USG) */
> #include <strings.h>
> #endif /* STDC_HEADERS or USG */
> +#endif
Maybe STDC_HEADERS or USG or SYSV should be set.
Looking at config.h again I see that setting LINUX will do:
#ifdef LINUX
#define SYSV /* Linux is SysV */
Can you try building metamail without your patches and in the
pkgsrc/metamail/Makefile have something like
MAKE_ENV+= -DLINUX
?
Thanks for your PR.
Jeremy C. Reed
http://www.reedmedia.net/