Subject: pkg/36311: x11/xfce4-exo fails to build on Sparc Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 05/12/2007 12:35:00
>Number:         36311
>Category:       pkg
>Synopsis:       x11/xfce4-exo fails to build on Sparc Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 12 12:35:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-36 sun4u sparc SUNW,Ultra-5_10
>Description:
x11/xfce4-exo fails to build on Sparc Solaris with the following error message:

In file included from exo-mount-point.c:44:
/usr/include/sys/mnttab.h:63: error: expected ')' before '*' token
/usr/include/sys/mnttab.h:64: error: expected ')' before '*' token
/usr/include/sys/mnttab.h:65: error: expected ')' before '*' token
/usr/include/sys/mnttab.h:66: error: expected ')' before '*' token
...
gmake[3]: Leaving directory `/opt/pkg.obj/x11/xfce4-exo/work.ultra10/exo-0.3.2/exo'
>How-To-Repeat:

>Fix:
Apply the following patch:

diff -u exo/exo-mount-point.c.old exo/exo-mount-point.c
--- exo/exo-mount-point.c.old   Sat May 12 03:11:27 2007
+++ exo/exo-mount-point.c       Sat May 12 03:11:47 2007
@@ -41,6 +41,7 @@
 #include <sys/mount.h>
 #endif
 #ifdef HAVE_SYS_MNTTAB_H
+#include <stdio.h>
 #include <sys/mnttab.h>
 #endif