Subject: pkg/32132: mail/metamail fails to compile on Solaris 10 with Sun Studio 11 compilers
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <segv@netctl.net>
List: pkgsrc-bugs
Date: 11/20/2005 22:20:01
>Number:         32132
>Category:       pkg
>Synopsis:       mail/metamail fails to compile on Solaris 10 with Sun Studio 11 compilers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 20 22:20:00 +0000 2005
>Originator:     segv
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic sun4u sparc SUNW,Ultra-5_10
>Description:
passing -DSYSV (part of CFLAGS during metamail compilation) to Sun C compiler causes problems with source files that have '#include <signal.h>' lines.
>How-To-Repeat:

>Fix:
--- src/metamail/metamail.c.orig        Sun Nov 20 21:58:04 2005
+++ src/metamail/metamail.c     Sun Nov 20 21:58:55 2005
@@ -43,7 +43,11 @@
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/file.h>
+#ifdef SYSV
+#include <sys/signal.h>
+#else
 #include <signal.h>
+#endif
 
 #ifndef AMIGA
 #ifdef SYSV

--- src/metamail/mailto.c.orig  Wed Feb  9 20:30:26 1994
+++ src/metamail/mailto.c       Sun Nov 20 22:05:51 2005
@@ -40,7 +40,11 @@
 #include <ctype.h>
 #include <config.h>
 #include <pwd.h>
+#ifdef SYSV
+#include <sys/signal.h>
+#else
 #include <signal.h>
+#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/file.h>