You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Ed...@VerizonWireless.com on 2009/06/04 19:39:57 UTC

building JCC with gcc4.x on Cygwin windows:jvm_NULL_THUNK_DATA symbol not found

getting jvm_NULL_THUNK_DATA not found error in the last step of building JCC on Cygwin/windows with "python setup.py build" after switching to gcc version 4.3.2 20080827 (beta) 2 (GCC) with Advise from Andi V, and Christian H.  gcc4x is available from Cygwin, but not as default -do not know why. 

String jvm_NULL_THUNK_DATA exists in  jvm.lib as can be seen below. This string appears 4 times, (included only once for this mail)

$ strings /c/Edwin/Programs/Java/jdk1.6.0_13/lib/jvm.lib | grep THUNK
jvm_NULL_THUNK_DATA

For simplicity replaced all object file names from following command with "*.o" below.

$ g++ -shared -Wl,--enable-auto-image-base *.o  -L/usr/lib/python2.5/config -lpython2.5 -o build/lib.cygwin-1.5.25-i686-2.5/jcc/_jcc.dll -L/c/Edwin/Programs/Java/jdk1.6.0_13/lib -ljvm -Wl,-S
Cannot export jvm_NULL_THUNK_DATA: symbol not found
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1

it must be something simple or trivial I must be missing - any ideas/suggestions?

thanks in advance
Edwin




The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.


Re: building JCC with gcc4.x on Cygwin windows:jvm_NULL_THUNK_DATA symbol not found

Posted by Andi Vajda <va...@apache.org>.
On Thu, 4 Jun 2009, Edwin.Madari@VerizonWireless.com wrote:

> getting jvm_NULL_THUNK_DATA not found error in the last step of building JCC on Cygwin/windows with "python setup.py build" after switching to gcc version 4.3.2 20080827 (beta) 2 (GCC) with Advise from Andi V, and Christian H.  gcc4x is available from Cygwin, but not as default -do not know why.
>
> String jvm_NULL_THUNK_DATA exists in  jvm.lib as can be seen below. This string appears 4 times, (included only once for this mail)
>
> $ strings /c/Edwin/Programs/Java/jdk1.6.0_13/lib/jvm.lib | grep THUNK
> jvm_NULL_THUNK_DATA
>
> For simplicity replaced all object file names from following command with "*.o" below.
>
> $ g++ -shared -Wl,--enable-auto-image-base *.o  -L/usr/lib/python2.5/config -lpython2.5 -o build/lib.cygwin-1.5.25-i686-2.5/jcc/_jcc.dll -L/c/Edwin/Programs/Java/jdk1.6.0_13/lib -ljvm -Wl,-S
> Cannot export jvm_NULL_THUNK_DATA: symbol not found
> collect2: ld returned 1 exit status
> error: command 'g++' failed with exit status 1
>
> it must be something simple or trivial I must be missing - any ideas/suggestions?
>

Maybe you also need a newer linker ?
(I really don't know, I'm just guessing).

Andi..

> thanks in advance
> Edwin
>
>
>
>
> The information contained in this message and any attachment may be
> proprietary, confidential, and privileged or subject to the work
> product doctrine and thus protected from disclosure.  If the reader
> of this message is not the intended recipient, or an employee or
> agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify me
> immediately by replying to this message and deleting it and all
> copies and backups thereof.  Thank you.
>
>