Subject: pkg/31530: graphics/librsvg2 fails to compile with sunpro compiler on Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <segv@netctl.net>
List: pkgsrc-bugs
Date: 10/09/2005 10:27:00
>Number:         31530
>Category:       pkg
>Synopsis:       graphics/librsvg2 fails to compile with sunpro compiler on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 09 10:27:00 +0000 2005
>Originator:     segv
>Release:        
>Organization:
>Environment:
SunOS dhcli-192-168-0-5.netctl.net 5.10 Generic sun4u sparc SUNW,Ultra-5_10
>Description:
sunpro compiler fails to compile a file where a void function returns a value. Looking at the source code, it looks like a typo, i.e. missing ';' at the end of 'return' statement.
>How-To-Repeat:

>Fix:
--- rsvg-text.c.orig    Sun Oct  9 11:18:30 2005
+++ rsvg-text.c Sun Oct  9 11:18:59 2005
@@ -168,7 +168,7 @@
        if (!self)
                return;
        if (!self->contents->len == 0)
-               return
+               return;
        rsvg_tchunk_remove_leading(g_ptr_array_index(self->contents, 0));
 }
 
@@ -191,7 +191,7 @@
        if (!self)
                return;
        if (!self->contents->len == 0)
-               return
+               return;
        rsvg_tchunk_remove_trailing(g_ptr_array_index(self->contents, 
                                                                                 self->contents->len - 1));
 }