Subject: pkg/32294: mail/wmmail Solaris 10 / Sun Studio 11
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 12/13/2005 14:45:00
>Number:         32294
>Category:       pkg
>Synopsis:       mail/wmmail Solaris 10 / Sun Studio 11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 13 14:45:00 +0000 2005
>Originator:     Jake Kupersmith
>Release:        pkgsrc
SunOS 5.10 Generic sun4u sparc SUNW,Sun-Blade-100
wfree is defined as 'inline void wfree..' in wmutil.c
Sun Studio cc doesn't seem to like this.
# bmake
cc  -O -xtarget=ultra2 -xarch=v8plusa -I/usr/pkg/include -I/usr/openwin/include -I/usr/pkg/include  -DPREFIX=\"/usr/pkg\" -lrt -xtarget=ultra2 -xarch=v8plusa -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib -L/usr/openwin/lib -L/usr/pkg/lib  -o WMMail  global.o imap.o list.o maildir.o mbox.o mh.o net.o pop3.o properties.o std_icons.o wmmail.o wmutil.o  -lPropList -lXpm -lXt -lXext -lX11 -lsocket -lnsl  -lXt -lSM -lICE
Undefined                       first referenced
 symbol                             in file
wfree                               imap.o
ld: fatal: Symbol referencing errors. No output written to WMMail
gmake[1]: *** [WMMail] Error 1

SHA1 (patch-ae) = e315e597380a04f0233efec6c1de435eba3026cc
# cat patches/patch-ae 

--- src/        Mon Dec 12 23:32:22 2005
+++ src/     Mon Dec 12 23:32:51 2005
@@ -114,7 +114,10 @@
-inline void wfree(void *ptr)
+#ifndef __sun
+void wfree(void *ptr)
   if (ptr != NULL)