delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/05/15/13:01:09

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "bdurbin AT gmail DOT com" <bdurbin AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Howto create extensions for PythonD
Date: 15 May 2006 09:48:03 -0700
Organization: http://groups.google.com
Lines: 37
Message-ID: <1147711683.623789.143760@v46g2000cwv.googlegroups.com>
References: <1147465565 DOT 398297 DOT 52230 AT g10g2000cwb DOT googlegroups DOT com>
<446503CB DOT 1060606 AT alex3>
<1147487385 DOT 985215 DOT 148130 AT j73g2000cwa DOT googlegroups DOT com>
<1147495866 DOT 132298 DOT 261280 AT u72g2000cwu DOT googlegroups DOT com>
<1147510871 DOT 247443 DOT 240860 AT y43g2000cwc DOT googlegroups DOT com>
NNTP-Posting-Host: 207.150.135.28
Mime-Version: 1.0
X-Trace: posting.google.com 1147711688 24853 127.0.0.1 (15 May 2006 16:48:08 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 15 May 2006 16:48:08 +0000 (UTC)
In-Reply-To: <1147510871.247443.240860@y43g2000cwc.googlegroups.com>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: v46g2000cwv.googlegroups.com; posting-host=207.150.135.28;
posting-account=8wKbqg0AAABXLK25HoMnXW-qj-Jghpv7
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I figured out a "solution" to the problem in my original post.  For
compleness, I'll summarize here.

First off, I'd written a couple of simple extensions for python in a
linux environment, and wasn't really having any problems.  I'd like to
port my existing stuff over to Dos and ensure that all of my future
stuff will work on any platform, etc, and so I came across PythonD +
DJGPP.  The problem was that I couldn't get the simplest thing to
compile.  I'd alway get the following:

C:\EOL_P\test>python.exe setup.py build

running build
running build_ext
c:/pythond/bin/Modules/Setup
building 'spam' extension
c:\djgpp\bin/gcc.exe -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -DGLUT_IMPORT_LIB -Ic:/pythond/include/python2.4 -c
spam.c -o build/temp.ms-dos-5-i786-2.4/spam.o
In file included from c:/pythond/include/python2.4/Python.h:55,
                 from spam.c:1:
c:/pythond/include/python2.4/pyport.h:116:24: error: sys/select.h: No
such file or directory (ENOENT)
spam.c:27:2: warning: no newline at end of file
error: command 'gcc.exe' failed with exit status 1

The "solution" was to go to pyport.h and comment out the line to
include sys/select.h.  Now I can get my basic "hello extension"
extension to work.

In an unrelated topic, I tried to download PythonD 2.2.1 R2.1(Final)
11.10.2003 and it would only get ~4MB of the file, when it should have
been 5.7megs.  Looks like the file has been corrupted. FYI.

Thanks,
Brent

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019