pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/32132: mail/metamail fails to compile on Solaris 10 with Sun Studio 11 compilers



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





Home | Main Index | Thread Index | Old Index