Subject: pkg/8756: majordomo-1.94.4 produces warning message during build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wulf@ping.net.au>
List: netbsd-bugs
Date: 11/06/1999 04:39:52
>Number:         8756
>Category:       pkg
>Synopsis:       majordomo-1.94.4 produces warning message during build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov  6 04:39:00 1999
>Last-Modified:
>Originator:     Berndt Josef Wulf
>Organization:
>Release:        NetBSD-1.4.1
>Environment:
NetBSD dingo 1.4 NetBSD 1.4 (HOTDOG) #0: Tue Jul 27 11:05:49 CST 1999     
wulf@dingo:/usr/src/sys/arch/alpha/compile/HOTDOG alpha

>Description:
The following warning message will be issued when building
majordomo-1.94.4:

cc  -DBIN=\"/usr/pkg/libexec/majordomo\" -DPATH=\"PATH=/bin:/usr/bin\"  -DHOME=\"HOME=
/home/majordom\" -DSHELL=\"SHELL=/bin/sh\"  -DMAJORDOMO_CF=\"MAJORDOMO_CF=/home/majord
om/majordomo.cf\"       -DPOSIX_UID=32768 -DPOSIX_GID=99 -o wrapper wrapper.c
wrapper.c: In function `main':
wrapper.c:81: warning: cast to pointer from integer of different size

>How-To-Repeat:
Type make in ./pkgsrc/mail/majordomo directory

>Fix:

--- wrapper.c.orig      Sat Nov  6 22:58:35 1999
+++ wrapper.c   Sat Nov  6 22:57:17 1999
@@ -16,7 +16,7 @@
 #include <stdio.h>
 #include <sysexits.h>

-#if defined(sun) && defined(sparc)
+#if (defined(sun) && defined(sparc)) || defined(__NetBSD__)
 #include <stdlib.h>
 #endif
>Audit-Trail:
>Unformatted: