From: Jochen <jo...@un...> - 2001-07-03 14:13:14
|
Dear All, I have had some problems with=20 Cannot export _bss_end__: symbol not defined messages and friends again for the cvs Numerical Python package. Although the LAPACK-module uses the DL_EXPORT approach and works fine, the other packages apparently try the .def-approach (which I barely heard about); this packages do not build for me on latest Cygwin. (I have not tried it on older ones.) Putting DL_EXPORTs around all the init-functions fixes this for me: Index: Packages/FFT/Src/fftpackmodule.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/numpy/Numerical/Packages/FFT/Src/fftpackmodule.c,v retrieving revision 1.1 diff -u -r1.1 fftpackmodule.c --- Packages/FFT/Src/fftpackmodule.c 2000/07/06 16:54:16 1.1 +++ Packages/FFT/Src/fftpackmodule.c 2001/07/03 14:06:48 @@ -238,7 +238,7 @@ "" ; =20 -void +DL_EXPORT(void) initfftpack() { PyObject *m, *d; Index: Packages/RNG/Src/RNGmodule.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/numpy/Numerical/Packages/RNG/Src/RNGmodule.c,v retrieving revision 1.1 diff -u -r1.1 RNGmodule.c --- Packages/RNG/Src/RNGmodule.c 2000/07/06 16:54:17 1.1 +++ Packages/RNG/Src/RNGmodule.c 2001/07/03 14:06:49 @@ -613,7 +613,7 @@ "Random number generator: independent random number streams." ; =20 -void +DL_EXPORT(void) initRNG() { PyObject *m, *d; Index: Packages/kinds/Src/_kindsmodule.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/numpy/Numerical/Packages/kinds/Src/_kindsmodule.c,v retrieving revision 1.1 diff -u -r1.1 _kindsmodule.c --- Packages/kinds/Src/_kindsmodule.c 2001/04/17 23:35:10 1.1 +++ Packages/kinds/Src/_kindsmodule.c 2001/07/03 14:06:49 @@ -10,7 +10,7 @@ {NULL, NULL, 0} /* sentinel */ }; =20 -void +DL_EXPORT(void) init_kinds() { PyObject *m, *d; Greetings, Jochen --=20 Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper= .de Libert=E9, =C9galit=E9, Fraternit=E9 GnuPG key: 44BCCD= 8E Sex, drugs and rock-n-roll |