This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
Attachment:
cygcheck
Description: cygcheck output
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.
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |