NetBSD Problem Report #33425
From www@netbsd.org Thu May 4 19:14:18 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 2074763B882; Thu, 4 May 2006 19:14:18 +0000 (UTC)
Message-Id: <20060504191418.2074763B882@narn.netbsd.org>
Date: Thu, 4 May 2006 19:14:18 +0000 (UTC)
From: jakerosoft@gmail.com
Reply-To: jakerosoft@gmail.com
To: gnats-bugs@netbsd.org
Subject: textproc/libxml2 Sun Studio CC fails to build
X-Send-Pr-Version: www-1.0
>Number: 33425
>Category: pkg
>Synopsis: textproc/libxml2 Sun Studio CC fails to build
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 04 19:15:00 +0000 2006
>Closed-Date: Fri May 05 10:03:33 +0000 2006
>Last-Modified: Fri May 05 10:05:01 +0000 2006
>Originator: Jake Kupersmith
>Release: pkgsrc-current
>Organization:
>Environment:
SunOS frylock 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-60
>Description:
On Solaris 10, using latest Sun Studio compilers. relaxng.c fails to build.
>How-To-Repeat:
cc -DHAVE_CONFIG_H -I. -I./include -I/var/db/work/textproc/libxml2/work/.buildlink/include -xO3 -xtarget=ultra2 -xarch=v8plusa -Xa -xc99=all -c relaxng.c -KPIC -DPIC -o .libs/relaxng.o
"relaxng.c", line 7397: operands have incompatible types:
pointer to unsigned char ":" pointer to char
cc: acomp failed for relaxng.c
gmake[2]: *** [relaxng.lo] Error 1
gmake[2]: Leaving directory `/var/db/work/textproc/libxml2/work/libxml2-2.6.24'
gmake[1]: *** [all-recursive] Error 1
>Fix:
--- relaxng.c.orig Thu May 4 15:07:17 2006
+++ relaxng.c Thu May 4 15:12:46 2006
@@ -7394,7 +7394,7 @@
if (root == NULL) {
xmlRngPErr(ctxt, (xmlNodePtr) doc,
XML_RNGP_EMPTY, "xmlRelaxNGParse: %s is empty\n",
- (ctxt->URL ? ctxt->URL : "schemas"), NULL);
+ (ctxt->URL ? ctxt->URL : (unsigned char *)"schemas"), NULL);
xmlFreeDoc(ctxt->document);
ctxt->document = NULL;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: drochner@netbsd.org
State-Changed-When: Fri, 05 May 2006 10:03:33 +0000
State-Changed-Why:
patch added, thanks
From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/33425 CVS commit: pkgsrc/textproc/libxml2
Date: Fri, 5 May 2006 10:02:18 +0000 (UTC)
Module Name: pkgsrc
Committed By: drochner
Date: Fri May 5 10:02:18 UTC 2006
Modified Files:
pkgsrc/textproc/libxml2: distinfo
Added Files:
pkgsrc/textproc/libxml2/patches: patch-ah
Log Message:
add a cast to fix build on Solaris 10/Sun Studio CC,
patch provided by Jake Kupersmith per PR pkg/33425
To generate a diff of this commit:
cvs rdiff -r1.55 -r1.56 pkgsrc/textproc/libxml2/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/textproc/libxml2/patches/patch-ah
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.