From piechota@athos.argolis.org  Wed Nov 12 10:29:13 2003
Return-Path: <piechota@athos.argolis.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 98F7616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Nov 2003 10:29:13 -0800 (PST)
Received: from athos.argolis.org (pool-141-156-46-123.res.east.verizon.net [141.156.46.123])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8EFE943F93
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Nov 2003 10:29:12 -0800 (PST)
	(envelope-from piechota@athos.argolis.org)
Received: from athos.argolis.org (localhost [127.0.0.1])
	by athos.argolis.org (8.12.9p1/8.12.9) with ESMTP id hACITB0b010849
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Nov 2003 13:29:11 -0500 (EST)
	(envelope-from piechota@athos.argolis.org)
Received: (from piechota@localhost)
	by athos.argolis.org (8.12.9p1/8.12.9/Submit) id hACITA2d010848;
	Wed, 12 Nov 2003 13:29:11 -0500 (EST)
Message-Id: <200311121829.hACITA2d010848@athos.argolis.org>
Date: Wed, 12 Nov 2003 13:29:11 -0500 (EST)
From: Matt Piechota <piechota@argolis.org>
Reply-To: Matt Piechota <piechota@argolis.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Workrave port does not compile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59224
>Category:       ports
>Synopsis:       Workrave port does not compile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 12 10:30:16 PST 2003
>Closed-Date:    Thu Nov 20 17:09:32 PST 2003
>Last-Modified:  Thu Nov 20 17:09:32 PST 2003
>Originator:     Matt Piechota
>Release:        FreeBSD 5.1-RELEASE-p10 i386
>Organization:
Self, Home, etc
>Environment:
System: FreeBSD athos.argolis.org 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Sat Nov 8 13:59:52 EST 2003 root@athos.argolis.org:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
When compiling the port workrave (/usr/ports/x11/workrave), compile fails on
Util.cc with math-looking errors.  For example:
/usr/include/g++/cmath: In function `float std::acos(float)':
/usr/include/g++/cmath:99: `::acosf' undeclared (first use here)

Machine was cvsup'd roughly 12pm EST, Nov 8th, 2003

>How-To-Repeat:
Fails on any build of workrave, whether via the gnome2-fifth-toe or workrave 
itself.
>Fix:
Unknown, tried inserting a few "#include <math.h>" line at likely places to no
avail.  Have a full compile log, will attempt to attach.

>Release-Note:
>Audit-Trail:

From: Kirill Ponomarew <krion@FreeBSD.org>
To: einekoai@chello.nl
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/59224: Workrave port does not compile
Date: Mon, 17 Nov 2003 11:19:23 +0100

 --f2QGlHpHGjS2mn6Y
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Hi,
 
 On Wed, Nov 12, 2003 at 01:29:11PM -0500, Matt Piechota wrote:
 >=20
 > >Number:         59224
 > >Category:       ports
 > >Synopsis:       Workrave port does not compile
 > =09
 > >Description:
 > When compiling the port workrave (/usr/ports/x11/workrave), compile fails=
  on
 > Util.cc with math-looking errors.  For example:
 > /usr/include/g++/cmath: In function `float std::acos(float)':
 > /usr/include/g++/cmath:99: `::acosf' undeclared (first use here)
 
 Could you please investigate this problem with submitter and
 write feedback ?
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/59224
 
 -Kirill
 
 --f2QGlHpHGjS2mn6Y
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (FreeBSD)
 
 iD8DBQE/uKCrQC1G6a60JuURAsrNAKDnd3D0JO9ntI7g60NRiBVfun/uVACggXN+
 Yl0oImqLMAh0gNUEi1nj7hg=
 =bKNt
 -----END PGP SIGNATURE-----
 
 --f2QGlHpHGjS2mn6Y--

From: Koop Mast <einekoai@chello.nl>
To: Kirill Ponomarew <krion@FreeBSD.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/59224: Workrave port does not compile
Date: Thu, 20 Nov 2003 19:43:17 +0100

 With help from bland@ we found that there is what can be called a bug
 in the libstdc++ headers.
 
 Old libstdc++ versions refers to symbols hidded by !_XOPEN_SOURCE in
 system headers. Recent library releases have workaround for this and
 will be just fine.
 
 This was fixed with gcc 3.3.1. So you need gcc 3.3.1 or newer to build
 workrave (no problem with the gcc included with 4.x).
 
 So to fix this, upgrade to 5.2-release when its out, or install gcc33
 from ports and use "env CC=gcc33 CXX=g++33 make install" to build
 workrave.
 
 -Koop
 
State-Changed-From-To: open->closed 
State-Changed-By: bland 
State-Changed-When: Thu Nov 20 17:09:00 PST 2003 
State-Changed-Why:  
Reasonable workaround provided. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59224 
>Unformatted:
