Subject: pkg/19643: fail to compile devel/acunia-jam package with SUNWspro cc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <pierre.bourgin@pcotech.fr>
List: netbsd-bugs
Date: 01/02/2003 06:20:40
>Number: 19643
>Category: pkg
>Synopsis: fail to compile devel/acunia-jam package with SUNWspro cc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 02 06:21:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Pierre Bourgin
>Release: SunOS-5.7 (solaris 7)
>Organization:
PCO Technologies
>Environment:
SunOS tequila 5.7 Generic_106541-20 sun4u sparc SUNW,Ultra-250
>Description:
the SUNWspro cc compiler does not accept '//' as comments in .c files, but one file of acunia-jam uses it (pathnunix.c)
this happens with the current version of pkgsrc (29 december 2002)
>How-To-Repeat:
cd devel/acunia-jam
bmake
>Fix:
change to 2 incorrect lines in the pathnunix.c file
you can use the following patch file (lines are truncated) to fix this
problem:
---------------------------------------------------------------------
--- pathunix.c.orig Tue Aug 28 10:57:03 2001
+++ pathunix.c Thu Jan 2 14:38:34 2003
@@ -327,9 +327,9 @@
}
}
-// printf("opening file '%s' grist = %s %d\n", buf1, fn->f_grist.ptr, fn->f_grist.len);
+/* printf("opening file '%s' grist = %s %d\n", buf1, fn->f_grist.ptr, fn->f_grist.len); */
if (! ( f = fopen(buf1, "r") ) ) {
-// printf("failed\n");
+/* printf("failed\n"); */
fn->f_grist.ptr = fn->f_base.ptr = fn->f_suffix.ptr = fn->f_member.ptr = fn->f_dir.ptr = "";
fn->f_grist.len = fn->f_base.len = fn->f_suffix.len = fn->f_member.len = fn->f_dir.len = 0;
return;
---------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted: