[storm] cextensions compile issue in Windows
akm
a.km.mail at gmail.com
Fri May 15 08:31:36 BST 2009
On Thu, May 14, 2009 at 8:58 PM, James Henstridge <james at jamesh.id.au> wrote:
> On Thu, May 14, 2009 at 2:14 PM, akm <a.km.mail at gmail.com> wrote:
>> Hi ,
>> I was trying to create binary egg of storm of package.
>> I added following lines in the setup.cfg
>>
>> [build]
>>
>> compiler=mingw32
>> This tells to always use the MingW compiler whenever it has to compile
>> something from C such as cextensions.c.
>> But i'm getting the follwing error :
>>
> [snip]
>> I noticed that the command it failed did -IC:\Python25\PC.
>> I do not have this PC directory in my python directory. Am I missing something?
>> Do I need to install something?
>
> As discussed on IRC, there are some win32 incompatibilities in current
> Storm trunk due to its lack of support for relocations in static
> initialisers (which essentially means you can't declare a global
> variable to contain a pointer to a function or variable found in
> another DLL).
>
> I've put a branch up for review that fixes those problems
> (lp:~jamesh/storm/bug-268151), but you reported the following link
> errors on IRC:
>
> 20:01 <akm1> jamesh, am getting different
> error...build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x429):cextensions.c:
> undefined reference to `_imp__PyExc_TypeError'
> 20:01 <akm1> build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x517):cextensions.c:
> undefined reference to `_imp___Py_NoneStruct'
> 20:01 <akm1> build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x51f):cextensions.c:
> undefined reference to `_imp___Py_NoneStruct'
> 20:01 <akm1> build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x58e):cextensions.c:
> undefined reference to `_imp__PyExc_TypeError'
> 20:01 <akm1> build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x61c):cextensions.c:
> undefined reference to `_imp___Py_NoneStruct'
> 20:01 <akm1> build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x623):cextensions.c:
> undefined reference to `_imp___Py_NoneStruct'
> 20:01 <akm1> build\temp.win32-2.5\Release\storm\cextensions.o(.text+0x647):cextensions.c:
> undefined reference to `_imp___Py_NoneStruct'
>
> These are symbols that should be provided by the Python DLL. I'm not
> familiar enough with the mingw32 toolchain on Windows to help here
> unfortunately. I don't think these errors indicate errors on the
> Storm side though. If I'm wrong, it'd be nice to know what else needs
> changing.
>
> James.
>
Hi James,
Thanks for all your help.It was not a problem with storm.
I have fixed this issue. I Just created a PC folder under my Python
directory and copied
python25.dll to to PC. After that its working fine.
--
Abdul Kader M
More information about the storm
mailing list