From brian-bugs@bbdab.org  Sun Aug  3 21:38:48 2003
Return-Path: <brian-bugs@bbdab.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0A92737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  3 Aug 2003 21:38:48 -0700 (PDT)
Received: from mail1.bbdab.org (12-245-108-157.client.attbi.com [12.245.108.157])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4389143FD7
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  3 Aug 2003 21:38:47 -0700 (PDT)
	(envelope-from brian-bugs@bbdab.org)
Received: by mail1.bbdab.org (Postfix, from userid 1000)
	id 492514030; Mon,  4 Aug 2003 00:38:45 -0400 (EDT)
Message-Id: <20030804043845.492514030@mail1.bbdab.org>
Date: Mon,  4 Aug 2003 00:38:45 -0400 (EDT)
From: <brian-bugs@bbdab.org>
Reply-To: <brian-bugs@bbdab.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Python Numeric port build failure
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55225
>Category:       ports
>Synopsis:       Python Numeric port build failure
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 03 21:40:17 PDT 2003
>Closed-Date:    Mon Aug 04 05:01:58 PDT 2003
>Last-Modified:  Mon Aug 04 05:01:58 PDT 2003
>Originator:     Brian Betts <brian-bugs@bbdab.org>
>Release:        FreeBSD 4.8-RC i386
>Organization:
Strudelline Networks
>Environment:
System: FreeBSD bb.strudelline.net 4.8-RC FreeBSD 4.8-RC #0: Thu Apr 3 06:51:01 EST 2003 notme@bb.strudelline.net:/usr/obj/usr/src/sys/EL_BUBBLY_ONE i386


	
>Description:
	When building ports/math/py-numeric, the following condensed errors
	are displayed: (wrapped for safety)

	cc -fno-strict-aliasing -DNDEBUG -O -pipe -D_THREAD_SAFE
	-DTHREAD_STACK_SIZE=0x20000 -O -pipe -fPIC -DHAVE_INVERSE_HYPERBOLIC
	-IInclude -IPackages/FFT/Include -IPackages/RNG/Include
	-I/usr/local/include/python2.3 -c Src/umathmodule.c
	-o build/temp.freebsd-4.8-STABLE-i386-2.3/Src/umathmodule.o
	Src/umathmodule.c:1952: `acosh' undeclared here (not in a function)
	Src/umathmodule.c:1952: initializer element is not constant
	Src/umathmodule.c:1952: (near initialization for `arccosh_data[0]')
	Src/umathmodule.c:1952: `acosh' undeclared here (not in a function)
	Src/umathmodule.c:1952: initializer element is not constant
	Src/umathmodule.c:1952: (near initialization for `arccosh_data[1]')
	Src/umathmodule.c:1953: `asinh' undeclared here (not in a function)

	I have not built this module since I needed it for the Python 2.2
	series.  I am not sure if the new Python 2.3 changes are what may
	be contributing to this problem regarding reading the distutils
	setup files.


>How-To-Repeat:
	Try to build the py-numeric port.
>Fix:

	Immediately when I saw the familiar math library functions not being
	defined, I checked for math.h being included (it is) and the -lm flag
	passed (which it's not) to the compiler/linker. I looked in the
	setup.py utility, used to aid in compilation and installation of the
	software, and it seems to know about -lm as indicated by the line:

	mathlibs = ['m']

	Which, I believe, should add the -lm flag when compiling, though it
	does not, as shown from the previous cc line.

	Hope this helps fix the problem.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tg 
Responsible-Changed-By: oliver 
Responsible-Changed-When: Mon Aug 4 02:53:12 PDT 2003 
Responsible-Changed-Why:  
Over the maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55225 
State-Changed-From-To: open->closed 
State-Changed-By: tg 
State-Changed-When: Mon Aug 4 05:01:05 PDT 2003 
State-Changed-Why:  
Fixed; thanks for the report. 

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