Re: [rvm-research] Resolving External References
Erik Brangs <[email protected]> Mon, 4 Dec 2017 22:19:33 +0100
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 04.12.2017 19:32, Khaled Z Mahmoud wrote: > I think this is not a difficult question. We have some modifications to JikesRVM and we do place calls to C code via JNI. Normal JNI should work out of the box. If you want to call C code without the overhead of JNI, you can use the syscall mechanism. > When I compile, I receive the following error: > > > /home/*maikon*/jikes/jikesrvm/target/FullAdaptiveMarkSweep_x86_64-linux/libjvm.so: undefined reference to `SetPackageTimeWindowLimit' > > > I am now using the latest version of JikesRVM. I know the so files that contain these functions. How shall I resolve this error ? Problems with undefined references might be caused by missing definitions in header files or missing symbol exports. You can look at sys.c for header problems. The build expects exported symbols for the shared libraries to be defined explicitly. You can find the definitions in the *.exp files in the bootloader directory and its subdirectories (e.g. libjvm.exp). Kind regards, Erik Brangs ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot