Mail Archives: cygwin/2001/03/14/16:16:31
Gerrit,
On Tue, Mar 13, 2001 at 03:10:42PM +0100, Gerrit P. Haase wrote:
> for me all the extensions did not built.
>
> e.g.:
>
> gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin_nt-4.0-1.1.8-i586-
> 2.1/fpectlmodule.o -L. -L/usr/local/lib -lpython2.1 -o build/lib.cygwin_nt-4.0-1.1.8-i586-2.1/fpectl.dll
> build/temp.cygwin_nt-4.0-1.1.8-i586-2.1/fpectlmodule.o(.text+0x35): undefined reference to `_Py_NoneStruct'
> [snip]
> collect2: ld returned 1 exit status
> WARNING: building of extension "fpectl" failed: command 'gcc' failed with exit
> Now i played around and i figured out, that -lpython2.1 is not recognized.
That is not true. The "-lpython2.1" option expands to libpython2.1.dll.a
in this case and is recognized. If your environment generated the
"-DUSE_DL_IMPORT" options during compilation, then you would *not*
be getting the above undefined link errors.
Why Distutils is *not* generating "-DUSE_DL_IMPORT" options (i.e., using
CCSHARED) during compilation is the crux of your problem. This is what
you have to solve -- not the perceived link "problem."
> I changed it to /src/Python-2.1.b1/libpython2.1.dll and it works.
I just tried this and I was (surprisingly) able to link successfully.
On Tue, Mar 13, 2001 at 05:23:42PM +0100, Gerrit P. Haase wrote:
> $ PYTHONPATH= ./python.exe -tt ./Lib/test/regrtest.py -l -x test_poll
> test_grammar
> test_opcodes
> test_operations
> [...]
> test_zipfile
> test_zlib
> 109 tests OK.
> 2 tests failed: test_strftime test_time
> 19 tests skipped: test_al test_cd test_cl test_dbm test_dl test_fcntl
> test_fork1
> test_gl test_imgfile test_largefile test_linuxaudiodev test_nis
> test_openpty
> test_pty test_sunaudiodev test_thread test_threadedtempfile
> test_winreg
> test_winsound
I guess that the above implies that these hand generated extensions work
properly. Is that correct?
> What should i say? I don't know why this is so (see -L.), but now i got my
> extensions, after building by hand.
Unfortunately, until you resolve your Distutils problem, you will have
to continue building them by hand.
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 DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -