NetBSD Problem Report #32294

From www@netbsd.org  Tue Dec 13 14:41:59 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id F11EE63B88D; Tue, 13 Dec 2005 14:41:58 +0000 (UTC)
Message-Id: <20051213144158.F11EE63B88D@narn.netbsd.org>
Date: Tue, 13 Dec 2005 14:41:58 +0000 (UTC)
From: jakerosoft@gmail.com
Reply-To: jakerosoft@gmail.com
To: gnats-bugs@netbsd.org
Subject: mail/wmmail Solaris 10 / Sun Studio 11
X-Send-Pr-Version: www-1.0

>Number:         32294
>Category:       pkg
>Synopsis:       mail/wmmail Solaris 10 / Sun Studio 11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 13 14:45:00 +0000 2005
>Last-Modified:  Mon Dec 19 11:29:15 +0000 2005
>Originator:     Jake Kupersmith
>Release:        pkgsrc
>Organization:
>Environment:
SunOS 5.10 Generic sun4u sparc SUNW,Sun-Blade-100
>Description:
wfree is defined as 'inline void wfree..' in wmutil.c
Sun Studio cc doesn't seem to like this.
>How-To-Repeat:
# 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

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

--- src/wmutil.c.in.orig        Mon Dec 12 23:32:22 2005
+++ src/wmutil.c.in     Mon Dec 12 23:32:51 2005
@@ -114,7 +114,10 @@
 }


-inline void wfree(void *ptr)
+#ifndef __sun
+inline
+#endif
+void wfree(void *ptr)
 {
   if (ptr != NULL)
     free(ptr);

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Mon, 19 Dec 2005 11:29:15 +0000
Responsible-Changed-Why:
Solaris-specific issue.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.