From spoerlein@informatik.uni-wuerzburg.de  Fri Oct 14 14:50:45 2005
Return-Path: <spoerlein@informatik.uni-wuerzburg.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 90EA016A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 14:50:45 +0000 (GMT)
	(envelope-from spoerlein@informatik.uni-wuerzburg.de)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5BF8343D48
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 14:50:44 +0000 (GMT)
	(envelope-from spoerlein@informatik.uni-wuerzburg.de)
Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 4931A13EFEC
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 16:50:43 +0200 (CEST)
Received: from virusscan (localhost [127.0.0.1])
	by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 2CA949ED79
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 16:50:43 +0200 (CEST)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 104B49ED76
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 16:50:43 +0200 (CEST)
Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id C87B213EFEC
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 16:50:42 +0200 (CEST)
Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237])
	by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9EEogPt073386
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 16:50:42 +0200 (CEST)
	(envelope-from spoerlein@informatik.uni-wuerzburg.de)
Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148])
	by coyote.q.local (8.13.3/8.13.1) with ESMTP id j9EEogLg013745
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Oct 2005 16:50:42 +0200 (CEST)
	(envelope-from q@roadrunner.q.local)
Received: from roadrunner.q.local (localhost [127.0.0.1])
	by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9EEof7Q007783;
	Fri, 14 Oct 2005 16:50:41 +0200 (CEST)
	(envelope-from q@roadrunner.q.local)
Received: (from q@localhost)
	by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9EEof2W007782;
	Fri, 14 Oct 2005 16:50:41 +0200 (CEST)
	(envelope-from q)
Message-Id: <200510141450.j9EEof2W007782@roadrunner.q.local>
Date: Fri, 14 Oct 2005 16:50:41 +0200 (CEST)
From: Ulrich Spoerlein <q@galgenberg.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] graphics/ocrad: update to 0.13
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         87442
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/ocrad: update to 0.13
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 15:00:25 GMT 2005
>Closed-Date:    Fri Oct 14 22:08:14 GMT 2005
>Last-Modified:  Fri Oct 14 22:10:12 GMT 2005
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 6.0-BETA5 i386
>Organization:
>Environment:
System: FreeBSD roadrunner 6.0-BETA5 FreeBSD 6.0-BETA5 #1: Tue Sep 20 21:30:40 CEST 2005
>Description:
- Update to 0.13

Added file(s):
- files/patch-main.cc

Can someone tell me, why gcc 3.4 on 4-STABLE can't compile main.cc? It says that std
has no member 'snprintf'. With the base-compiler in 6.0 and the ICC it's working
with no problems.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- ocrad-0.13.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/ocrad/Makefile,v
retrieving revision 1.7
diff -u -u -r1.7 Makefile
--- Makefile	13 May 2005 20:17:26 -0000	1.7
+++ Makefile	14 Oct 2005 14:48:54 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	ocrad
-PORTVERSION=	0.10
+PORTVERSION=	0.13
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/graphics/ocrad/distinfo,v
retrieving revision 1.4
diff -u -u -r1.4 distinfo
--- distinfo	26 Jan 2005 05:42:46 -0000	1.4
+++ distinfo	14 Oct 2005 14:48:54 -0000
@@ -1,2 +1,2 @@
-MD5 (ocrad-0.10.tar.bz2) = 84e0cc009bff0572a10772fbcd7101de
-SIZE (ocrad-0.10.tar.bz2) = 58565
+MD5 (ocrad-0.13.tar.bz2) = bf09dbb433c1ecf9e9a3b7c0f838ce73
+SIZE (ocrad-0.13.tar.bz2) = 66654
Index: files/patch-main.cc
===================================================================
RCS file: files/patch-main.cc
diff -N files/patch-main.cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-main.cc	14 Oct 2005 14:48:54 -0000
@@ -0,0 +1,11 @@
+--- main.cc.orig	Fri Oct 14 16:46:22 2005
++++ main.cc	Fri Oct 14 16:46:30 2005
+@@ -198,7 +198,7 @@
+ void Ocrad::internal_error( const char * msg ) throw()
+   {
+   char buf[80];
+-  std::snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
++  snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
+   show_error( buf );
+   exit( 3 );
+   }
--- ocrad-0.13.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Fri Oct 14 22:08:12 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87442 

From: Sergey Matveychuk <sem@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org,  q@galgenberg.net
Cc:  
Subject: Re: ports/87442: [MAINTAINER] graphics/ocrad: update to 0.13
Date: Sat, 15 Oct 2005 02:05:14 +0400

 > Can someone tell me, why gcc 3.4 on 4-STABLE can't compile main.cc? It says that std
 > has no member 'snprintf'. With the base-compiler in 6.0 and the ICC it's working
 > with no problems.
 
 Looks like some buggy or wrong header using.
 -- 
 Sem.
>Unformatted:
