Mail Archives: djgpp/2006/05/12/17:55:48
to use tcp/ip, a packet driver should be installed under dos for your
net card.
alex
bdurbin AT gmail DOT com wrote:
> This may be a little off topic for this group, but I wasn't sure where
> else to go with the question. And since see Mr. Decker in here...
>
> I have PythonD, DJGPP and DXE3GEN up and working. My next step is that
> I need to create some Python extensions. Is there a Hello World type
> of example of this in the DJGPP environment? I've perused the stuff at
> the PythonD site and at http://www.python.org/doc/ext but I'm still
> left with questions regarding what the requirements are for the DJGPP
> environment.
>
> I've set up the following environment vars:
> set PATH=c:\djgpp\bin;%PATH%
> set DJGPP=c:\djgpp\djgpp.env
> SET PYTHONHOME = C:/PythonD
> SET PYTHONDIR = C:\PythonD
> SET LD_LIBRARY_PATH=/dev/env/DJDIR/lib
> SET PYTHONCASEOK=1
>
> Is that what I should really have LD_LIBRARY_PATH set to? Or am I
> supposed to replace the /dev/env/DJDIR with C:\djgpp\lib?
>
> But when I try to build a simple extension I get the following:
>
> C:\EOL_P\test>C:\pythond\bin\python.exe setup.py build
>
> running build
> running build_ext
> c:/pythond/bin/Modules/Setup
> building 'hello' extension
> c:\djgpp\bin/gcc.exe -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -DGLUT_IMPORT_LIB -Ic:/pythond/include/python2.4 -c
> hello_wrap.c -o build/temp.ms-dos-5-i786-2.4/hello_wrap.o
> In file included from c:/pythond/include/python2.4/Python.h:55,
> from hello_wrap.c:1:
> c:/pythond/include/python2.4/pyport.h:116:24: error: sys/select.h: No
> such file or directory (ENOENT)
> hello_wrap.c:3: warning: function declaration isn't a prototype
> hello_wrap.c:5: warning: function declaration isn't a prototype
> hello_wrap.c:17: warning: function declaration isn't a prototype
> NO PACKET DRIVER FOUND.
> error: command 'gcc.exe' failed with exit status 1
>
>
> Now, I looked for select.h and couldn't find anything with that name.
> I'm assuming that either my environment isn't correct, or that I have
> to adjust something in the PythonD\lib\python2.4\config\Makefile.
> Problem is, I have no idea what that would be!
>
> Apologies for spamming on a noob support issue, but I never found an
> example of how to do extensions in the DJGPP environment.
>
> Any tips or pointers to examples or references would be greatly
> appreciated.
>
> Thanks a lot,
> Brent
>
>
- Raw text -