Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 13 Mar 2001 09:55:20 -0500
From: Jason Tishler <Jason.Tishler@dothill.com>
To: "Gerrit P. Haase" <gerrit.haase@t-online.de>
Cc: cygwin@cygwin.com
Subject: Re: python 2.0, cygwin & readline - undefined symbols
Message-ID: <20010313095520.B258@dothill.com>
Mail-Followup-To: "Gerrit P. Haase" <gerrit.haase@t-online.de>,
	cygwin@cygwin.com
References: <3AAC3BD5.11477.20D2F4F@localhost>; <20010311233925.B1184@dothill.com> <3AADEA07.2991.89DA21B@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AADEA07.2991.89DA21B@localhost>; from gerrit.haase@t-online.de on Tue, Mar 13, 2001 at 09:36:07AM +0100
Organization: Dot Hill Systems Corp.

Gerrit,

On Tue, Mar 13, 2001 at 09:36:07AM +0100, Gerrit P. Haase wrote:
> Still no luck, no -s flag, -DUSE_DL_IMPORT, but the extensions did not build.
> 
> gcc -shared -Wl,--enable-auto-image-base -DUSE_DL_IMPORT build/temp.cygwin_nt-4.0-1.1.8-i686-2.1/fpectlmodule.o -L. -L/usr/local/lib -lpython2.1 -o build/lib.cygwin_nt-4.0-1.1.8-i686-2.1/fpectl.dll
> build/temp.cygwin_nt-4.0-1.1.8-i686-2.1/fpectlmodule.o(.text+0x38):fpectlmodule.c: undefined reference to `_Py_NoneStruct'
> [snip]
> collect2: ld returned 1 exit status
> WARNING: building of extension "fpectl" failed: command 'gcc' failed with exit status 1

The -DUSE_DL_IMPORT option is supposed to be used during compilation
*not* linking.  Hence, the variable used is CCSHARED not LINKFORSHARED.

The following is my output for fpectl:

building 'fpectl' extension
gcc -g -O2 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -I. -I/home/jt/src/PythonCvs/./Include -IInclude/ -I/usr/local/include -c /home/jt/src/PythonCvs/Modules/fpectlmodule.c -o build/temp.cygwin_nt-4.0-1.3.0-i686-2.1/fpectlmodule.o
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin_nt-4.0-1.3.0-i686-2.1/fpectlmodule.o -L. -L/usr/local/lib -lpython2.1 -o build/lib.cygwin_nt-4.0-1.3.0-i686-2.1/fpectl.dll

If you manually build as above, does this (temporarily) workaround
your problem?

Jason

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

