[SciPy-dev] Error on Linux Compile

David M. Cooke cookedm at physics.mcmaster.ca
Tue Jan 20 12:09:32 CST 2004


On Tue, Jan 20, 2004 at 10:36:39AM +0100, Nils Wagner wrote:
> Pearu Peterson schrieb:
> BTW, a make in djbfft-0.76 failed
> 
> ./makelib str.a byte_copy.o byte_cr.o str_len.o
> ./load auto-str substdio.a error.a str.a
> substdio.a(substdo.o)(.text+0x31): In function `allwrite':
> : undefined reference to `errno'
> collect2: ld returned 1 exit status
> make: *** [auto-str] Error 1

Just ran into this a few days ago. Apply the following patch. New
versions of glibc require errno.h to be included everywhere errno is
used (it does something funky to work around that errno is global when
using threads, I think.)

--- djbfft-0.76/error.h 1999-09-30 16:25:58.000000000 -0400
+++ djbfft-0.76.new/error.h     2004-01-15 19:30:33.000000000 -0500
@@ -1,6 +1,8 @@
 #ifndef ERROR_H
 #define ERROR_H

+#include <errno.h>
+
 extern int errno;

 extern int error_intr;

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca



More information about the Scipy-dev mailing list