NetBSD Problem Report #32965
From www@netbsd.org Thu Mar 2 11:49:55 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id C606963B8EA; Thu, 2 Mar 2006 11:49:55 +0000 (UTC)
Message-Id: <20060302114955.C606963B8EA@narn.netbsd.org>
Date: Thu, 2 Mar 2006 11:49:55 +0000 (UTC)
From: segv@netctl.net
Reply-To: segv@netctl.net
To: gnats-bugs@netbsd.org
Subject: audio/id3lib fails to build on Solaris with SunStudio 11 compilers
X-Send-Pr-Version: www-1.0
>Number: 32965
>Category: pkg
>Synopsis: audio/id3lib fails to build on Solaris with SunStudio 11 compilers
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 02 11:50:00 +0000 2006
>Last-Modified: Thu Mar 02 20:12:10 +0000 2006
>Originator: segv
>Release:
>Organization:
>Environment:
SunOS e450-lan 5.11 snv_28 sun4u sparc SUNW,Ultra-4
>Description:
"tag_file.cpp", line 288: Error: Formal argument s of type char* in call to std::istream::read(char*, long) is being passed unsigned char*.
"tag_file.cpp", line 290: Error: Formal argument s of type const char* in call to std::ostream::write(const char*, long) is being passed unsigned char*.
2 Error(s) and 1 Warning(s) detected.
*** Error code 1
Stop.
bmake: stopped in /opt/pkg.obj/audio/id3lib/work.e450-lan/id3lib-3.8.3/src
*** Error code 1
>How-To-Repeat:
>Fix:
--- id3lib-3.8.3/src/tag_file.cpp.orig Thu Mar 2 11:35:35 2006
+++ id3lib-3.8.3/src/tag_file.cpp Thu Mar 2 11:35:51 2006
@@ -285,9 +285,9 @@
uchar tmpBuffer[BUFSIZ];
while (file)
{
- file.read(tmpBuffer, BUFSIZ);
+ file.read((char *)tmpBuffer, BUFSIZ);
size_t nBytes = file.gcount();
- tmpOut.write(tmpBuffer, nBytes);
+ tmpOut.write((char *)tmpBuffer, nBytes);
}
close(fd); //closes the file
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Thu, 02 Mar 2006 20:12:10 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem
>Unformatted:
(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.