delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/04/11:05:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 4 Oct 2000 11:04:28 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Erik Nolte <enolte AT campuspipeline DOT com>
Cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: compiling python under cygwin
Message-ID: <20001004110428.A1072@dothill.com>
References: <D9103B2DB593D211A10A00805FFE2AF44D33BC AT PHCAEX04 DOT PHDNSWC DOT NAVY DOT MIL> <20001001211905 DOT A1023 AT OLMY>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20001001211905.A1023@OLMY>; from Jason.Tishler@dothill.com on Sun, Oct 01, 2000 at 09:19:05PM -0400
Organization: Dot Hill Systems Corp.

Erik,

On Tue, Oct 03, 2000 at 03:23:59PM -0600, Erik Nolte wrote:
> I must be missing something...  I have cygwin 1.1.4, all the latest cygwin
> packages, and Python 2.0b2 source.  Configure runs as expected, but make
> dies in Modules/socketmodule.c because it can't find netinet/tcp.h.  I
> searched the cygwin packages and none of them contain a tcp.h.  I conclude
> that tcp.h shouldn't be part of the cygwin release and that's ok because the
> #include is wrapped with an #ifndef MS_WINDOWS.  Unfortunately configure
> doesn't set an MS_WINDOWS symbol and neither do any of the include files
> (python or /usr/include).  If I #define MS_WINDOWS I get a slew of winsock.h
> conflict-type errors.  I was finally able to build python by commenting out
> '#include <netinet/tcp.h>' in socketmodule.c.  I'm not sure the resulting
> executable is fully functional.

Due to building PostgreSQL 7.0.2, my Cygwin installation already had an
(empty) /usr/include/netinet/tcp.h (due to following their Cygwin README).
Hence, I was unaware of the above problem.

Your workaround is fine and your executable should be as "fully
functional" as mine.  If you run the regression tests, you should find
that it fails test_fcntl, test_poll (which should be excluded due to
hanging), test_pty, test_strftime, and test_time.  I still need to track
down why the failures are occurring especially test_poll.

Alternatively, you can change the relevant lines in Modules/socketmodule.c,
from:

    #ifndef __BEOS__
    #include <netinet/tcp.h>
    #endif

to:

    #if !define(__BEOS__) && !define(__CYGWIN__)
    #include <netinet/tcp.h>
    #endif

I will try to get the Python source patched as above.

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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