Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] LTTV BUG: Recent upgrades broke the JNI interface
@ 2010-09-08 15:31 Alexandre Montplaisir
  2010-09-08 15:47 ` Mathieu Desnoyers
  0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Montplaisir @ 2010-09-08 15:31 UTC (permalink / raw)


(It seems LTTV can't let go of me...)

I was trying to reinstall TMF, which includes the compilation of LTTV 
with  "./configure --with-jni-interface". However, make was now getting 
build errors:

jni_interface.c: In function 
?Java_org_eclipse_linuxtools_lttng_jni_JniMarkerField_ltt_1getOffset?:
jni_interface.c:1005: error: ?struct marker_field? has no member named 
?offset?
jni_interface.c: In function 
?Java_org_eclipse_linuxtools_lttng_jni_JniMarkerField_ltt_1getSize?:
jni_interface.c:1012: error: ?struct marker_field? has no member named 
?size?
jni_interface.c: In function 
?Java_org_eclipse_linuxtools_lttng_jni_JniMarkerField_ltt_1printMarkerField?:
jni_interface.c:1049: error: ?struct marker_field? has no member named 
?offset?
jni_interface.c:1050: error: ?struct marker_field? has no member named 
?size?
jni_interface.c: In function 
?Java_org_eclipse_linuxtools_lttng_jni_JniParser_ltt_1getParsedData?:
jni_interface.c:1134: error: ?struct marker_field? has no member named 
?offset?



Me and Michael were getting the same problem. Sun-java,  openjdk  gcj so 
were all giving the same errors. We ended up doing a git bisect, which 
gave the following commit as being responsible:

1184dc37d4cee465b9888fcec352c4ebe86d4246 is the first bad commit
commit 1184dc37d4cee465b9888fcec352c4ebe86d4246
Author: Mathieu Desnoyers <mathieu.desnoyers at polymtl.ca>
Date:   Fri Aug 20 12:02:42 2010 -0400

     ltt traceread: fix offsets calculation, should be per tracefile

     Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

:040000 040000 b655cf92cab4b1a11f4000e27663426da1e1d1dd 
4e660bf0e8d8ad2ff0262e1c3223490d3f400178 M    ltt


I'll look into it this afternoon, but I suppose the changes in that 
commit were made for a reason, so I'm not too confident touching it.

Thanks,
Alexandre


ps. On a side note, it seems building liblttvtraceread with OpenJDK 
still works with TMF, so there might be hope for a liblttvtraceread-jni 
package after all...




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-11 14:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-08 15:31 [ltt-dev] LTTV BUG: Recent upgrades broke the JNI interface Alexandre Montplaisir
2010-09-08 15:47 ` Mathieu Desnoyers
2010-09-08 18:44   ` Alexandre Montplaisir
2010-09-08 21:09     ` Mathieu Desnoyers
2010-09-08 21:42       ` Alexandre Montplaisir
2010-09-08 21:47         ` Mathieu Desnoyers
2010-09-10 19:37           ` Matthew Khouzam
2010-09-11 14:58             ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox