delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/06/06:55:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Mailer: 21.2 (beta46) "Urania" XEmacs Lucid (via feedmail 8 I)
To: Turnbull Wallace Capt AFRL/VSBXR <Wallace DOT Turnbull AT hanscom DOT af DOT mil>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Numerical Python on cygwin
References: <D5C80F97BFC2D311A6AB0060977DA05AD9681E AT hamsxafrl1 DOT plh DOT af DOT mil>
X-Face: I-*}xvwusAv%MlABo'jVNP7TDXf5bb*L[q,r{DnsR1GoL07^Wf)sAu%>!LjXAFlZZN+`OQu
}?#du]C)[*%ERKR#+l#sX'EoNbSO~|.x AT ogoS5|"-u?<s5ViLslvYMlj7_n!Tq1m AT xt2Bhj4[Zg+e?
/Yy\SE`V?%v~kRU3GoS1f&U]}
From: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
Date: 06 Apr 2001 12:59:55 +0200
In-Reply-To: <D5C80F97BFC2D311A6AB0060977DA05AD9681E@hamsxafrl1.plh.af.mil>
Message-ID: <kvae5uxphw.fsf@vzell.de.oracle.com>
Lines: 69
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Urania)
MIME-Version: 1.0

>>>>> "VSBXR" == VSBXR  <Turnbull> writes:

    VSBXR> Has anyone successfully gotten Numerical Python (numpy) built under cygwin?
    VSBXR> I was able to get python (2.1b2 using gcc 2.95.3-2) built with a minor
    VSBXR> change usr/include/sys/signal.h and specifying '--without-threads' in the
    VSBXR> configure script but when I try to install numerical python, I get the
    VSBXR> following errors.  It looks like some sort of problem with DLLs but I'm not
    VSBXR> sure what to make of it.  I searched the cygwin list archive and found one
    VSBXR> old reference to numpy but it didn't help.

Here a patch for Numeric-17.3.0 which worked for me:


diff -upr /gnu/Numeric-17.3.0/Src/_numpymodule.c Numeric-17.3.0/Src/_numpymodule.c
--- /gnu/Numeric-17.3.0/Src/_numpymodule.c	Mon Oct  2 17:33:46 2000
+++ Numeric-17.3.0/Src/_numpymodule.c	Fri Feb  9 17:44:35 2001
@@ -13,7 +13,7 @@ static PyMethodDef numpy_methods[] = {
 
 /* Module initialization */
 
-void
+DL_EXPORT(void)
 init_numpy()
 {
   PyObject *m, *d;
diff -upr /gnu/Numeric-17.3.0/Src/arrayfnsmodule.c Numeric-17.3.0/Src/arrayfnsmodule.c
--- /gnu/Numeric-17.3.0/Src/arrayfnsmodule.c	Tue Nov 28 00:16:58 2000
+++ Numeric-17.3.0/Src/arrayfnsmodule.c	Fri Feb  9 17:46:31 2001
@@ -1425,7 +1425,7 @@ static char arrayfns_module_documentatio
 ""
 ;
 
-void
+DL_EXPORT(void)
 initarrayfns()
 {
    PyObject *m, *d;
diff -upr /gnu/Numeric-17.3.0/Src/multiarraymodule.c Numeric-17.3.0/Src/multiarraymodule.c
--- /gnu/Numeric-17.3.0/Src/multiarraymodule.c	Mon Oct  2 17:37:45 2000
+++ Numeric-17.3.0/Src/multiarraymodule.c	Fri Feb  9 17:45:19 2001
@@ -1230,7 +1230,8 @@ static struct PyMethodDef array_module_m
 
 /* Initialization function for the module (*must* be called initArray) */
 
-void initmultiarray() {
+DL_EXPORT(void)
+initmultiarray() {
 	PyObject *m, *d, *s, *one, *zero;
 	int i;
 	char *data;
diff -upr /gnu/Numeric-17.3.0/Src/umathmodule.c Numeric-17.3.0/Src/umathmodule.c
--- /gnu/Numeric-17.3.0/Src/umathmodule.c	Mon Sep 11 17:46:33 2000
+++ Numeric-17.3.0/Src/umathmodule.c	Fri Feb  9 17:46:02 2001
@@ -2096,7 +2096,8 @@ static struct PyMethodDef methods[] = {
   {NULL,		NULL, 0}		/* sentinel */
 };
 
-void initumath() {
+DL_EXPORT(void)
+initumath() {
   PyObject *m, *d, *s;
   
   /* Create the module and add the functions */




Ciao
  Volker


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019