[IPython-user] re: Fwd: readline for Win32

Gary Bishop gb at cs.unc.edu
Wed May 7 15:21:49 CDT 2003


I have downloaded and unpacked the archive 
PyReadlineWin32-4.0p22.tar.gz but I can't get it to build.

I tried first with the native Cygwin stuff I use all the time. Then I 
downloaded MinGW 2.0.0-3 which appears to have the correct compiler as 
listed in the readme for PyReadline*.

With the MinGW world I get the following output from the second make 
(the first for libreadline.a and libhistory.a goes fine).

Any suggestions on what I'm doing wrong? I would dearly love to have 
readline support.

Thanks
gb

My error output from the second make:

$ make
gcc  -O2 -Ic:/Python22/include  -I../../readline-4.0-mingw32   -c -o 
readline.o readline.c
dlltool --export-all --output-def readline.def readline.o
dllwrap --dllname readline.dll --driver-name gcc  --def readline.def -o 
readline.dll readline.o -s -
mdll -Lc:/Python22/libs -L../../readline-4.0-mingw32/NATIVE-WIN32 
-lpython22 -lreadline
readline.o(.text+0x8b):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x96):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x116):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x121):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x128):readline.c: undefined reference to 
`_imp__PyExc_IOError'
readline.o(.text+0x1b6):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x1c1):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x1c8):readline.c: undefined reference to 
`_imp__PyExc_IOError'
readline.o(.text+0x279):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x284):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x28b):readline.c: undefined reference to 
`_imp__PyExc_IOError'
readline.o(.text+0x2f3):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x2fe):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x3c0):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x3f9):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x439):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x444):readline.c: more undefined references to 
`_imp___Py_NoneStruct' follow
readline.o(.text+0x472):readline.c: undefined reference to 
`_imp__PyExc_TypeError'
readline.o(.text+0x5c6):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x5d1):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x625):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x630):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x735):readline.c: undefined reference to 
`_imp___Py_NoneStruct'
readline.o(.text+0x740):readline.c: more undefined references to 
`_imp___Py_NoneStruct' follow
readline.o(.text+0xb3a):readline.c: undefined reference to 
`_imp__PyOS_InputHook'
readline.o(.text+0xc34):readline.c: undefined reference to 
`_imp__PyOS_ReadlineFunctionPointer'
c:\MinGW\bin\dllwrap.exe: gcc exited with status 1
make: *** [readline.dll] Error 1

$ gcc -v
Reading specs from c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld 
--with-gnu-as --host=mingw32 --target=min
gw32 --prefix=/mingw --enable-threads --disable-nls 
--enable-languages=f77,c++,objc,ada --disable-wi
n32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)



More information about the IPython-user mailing list