Subject: pkg/23846: math/py-Numeric uses wrong #include order; trival fix; problems building onn FreeBSD and propably other platforms;
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/22/2003 21:24:19
>Number:         23846
>Category:       pkg
>Synopsis:       math/py-Numeric uses wrong #include order; trival fix; problems building onn FreeBSD and propably other platforms;
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 22 21:25:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
Good people with bad reputation
>Environment:
N/A
>Description:
cc -fno-strict-aliasing -DNDEBUG -O2 -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/pkg/include -fPIC -DHAVE_INVERSE_HYPERBOLIC -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/pkg/include/python2p3 -c Src/umathmodule.c -o build/temp.freebsd-4.9-RELEASE-i386-2p3/Src/umathmodule.o
Src/umathmodule.c:2394: `acosh' undeclared here (not in a function)
Src/umathmodule.c:2394: initializer element is not constant
Src/umathmodule.c:2394: (near initialization for `arccosh_data[0]')
Src/umathmodule.c:2394: `acosh' undeclared here (not in a function)
Src/umathmodule.c:2394: initializer element is not constant
Src/umathmodule.c:2394: (near initialization for `arccosh_data[1]')
Src/umathmodule.c:2395: `asinh' undeclared here (not in a function)
Src/umathmodule.c:2395: initializer element is not constant
Src/umathmodule.c:2395: (near initialization for `arcsinh_data[0]')
Src/umathmodule.c:2395: `asinh' undeclared here (not in a function)
Src/umathmodule.c:2395: initializer element is not constant
Src/umathmodule.c:2395: (near initialization for `arcsinh_data[1]')
Src/umathmodule.c:2396: `atanh' undeclared here (not in a function)
Src/umathmodule.c:2396: initializer element is not constant
Src/umathmodule.c:2396: (near initialization for `arctanh_data[0]')
Src/umathmodule.c:2396: `atanh' undeclared here (not in a function)
Src/umathmodule.c:2396: initializer element is not constant
Src/umathmodule.c:2396: (near initialization for `arctanh_data[1]')
error: command 'cc' failed with exit status 1
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/py-Numeric
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/py-Numeric

>How-To-Repeat:

>Fix:
Patch "stolen" from FreeBSD ports

$NetBSD$

--- Src/umathmodule.c.orig      Sat Aug  2 01:10:09 2003
+++ Src/umathmodule.c   Sat Aug  2 01:10:43 2003
@@ -1,9 +1,9 @@
 
+#include <math.h>
 #include "Python.h"
 #include "Numeric/arrayobject.h"
 #include "Numeric/ufuncobject.h"
 #include "abstract.h"
-#include <math.h>
 
 #ifndef CHAR_BIT
 #define CHAR_BIT 8

>Release-Note:
>Audit-Trail:
>Unformatted: