[Python-bugs-list] [ python-Bugs-794140 ] cygwin builds do not embed

SourceForge.net noreply at sourceforge.net
Sun Aug 24 17:02:47 EDT 2003


Bugs item #794140, was opened at 2003-08-24 11:18
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=794140&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alejandro Lopez-Valencia (dradul)
>Assigned to: Jason Tishler (jlt63)
Summary: cygwin builds do not embed

Initial Comment:
As an example case, try to build a copy of vim with an 
embeded python interpreter:

"""
indow.o   objects/if_python.o objects/py_config.o     
objects/netbeans.o  object
s/version.o       -lncurses   -liconv -lintl   -
L/usr/lib/python2.3/config -lpyt
hon2.3 -lutil -lm
objects/py_config.o(.data+0x4):config.c: referencia a 
`_initthread' sin definir
objects/py_config.o(.data+0xc):config.c: referencia a 
`_initsignal' sin definir
objects/py_config.o(.data+0x14):config.c: referencia a 
`_initposix' sin definir
objects/py_config.o(.data+0x1c):config.c: referencia a 
`_initerrno' sin definir
objects/py_config.o(.data+0x24):config.c: referencia a 
`_init_sre' sin definir
objects/py_config.o(.data+0x2c):config.c: referencia a 
`_init_codecs' sin defini
r
"""

As you can see, it doesn't embed. 

I have tracked down the failure to a problem in the 
LDSHARED defaults provided by configure.in. The default 
supplied is:

LDSHARED="gcc -shared -Wl,--enable-auto-image-
base";;

but this *does not* work. As per Cygwin documentation 
on the creation of DLLs, this works (already tested 
compiling vim under the same conditions):

LDSHARED="gcc -shared -Wl,--enable-auto-image-base -
Wl,--export-all-symbols -Wl,--enable-auto-import";;

As a side note, please notice that this problem, proper 
user of GNU ld flags under win32, has a direct impact on 
the possible success of a true Mingw32 port (which I 
expect eagerly).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=794140&group_id=5470



More information about the Python-bugs-list mailing list