Problems building a dll.
Mike Meyer
mwm-dated-1081274404.4c420a@mired.org
Tue Mar 30 20:15:00 GMT 2004
Please bear with tme. I belive this is a cygwin problem.
I'm trying to build a python extension module under cygwin. This means
it links against the dll containg the python interpreter. The linking fails,
with this error message:
build/temp.cygwin-1.5.9-i686-2.4/grammarmodule.o(.text+0x10e2): In function `get_grammar':
/cygdrive/c/Python/dist/src/Modules/grammarmodule.c:855: undefined reference to `__PyParser_Grammar'
collect2: ld returned 1 exit status
grepping the output of nm on libpython2.4.dll for that symbol turns up
the following:
lab$ nm libpython2.4.dll| grep _PyParser_Grammar
6a91cd98 D __PyParser_Grammar
6a9033f8 d __PyParser_Grammar
The command that builds the dll - well, tries to build it - is:
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.5.9-i686-2.4/grammarmodule.o -L/usr/local/lib -L. -lpython2.4 -o build/lib.cygwin-1.5.9-i686-2.4/grammar.dll
This command is executed in the directory that libpython2.4.dll is, so
the -L. -lpython2.4 should pick up the dll.
In grovelling through the archives, it appeared that the output of
cygcheck was desirable in problem reports, so I've added it here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck
Type: application/octet-stream
Size: 11318 bytes
Desc: cygcheck output
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040330/4d12e6f0/attachment.obj>
-------------- next part --------------
Any and all help appreciated.
Thanks,
<mike
--
Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list