liblwjgl.so on freebsd

Started by stevep, November 20, 2003, 13:42:37

Previous topic - Next topic

stevep

Hi, I downloaded a cvs version of lwjgl, and it compiled on freebsd with hardly any changes.
I used the correct versions of auto*, and also added -I/usr/local/include to the native build.
At first it used jni.h from my /usr/local/include/jni.h - but when i forced it to include /usr/local/jdk1.4.2/include/jni.h it bailed the same way :/ Am I using the right one now?

Any help would be greatly appreciated, I understand that its not meant to work on *bsd yet but thought I'd give it a go - maybe I'm missing something obvious ..

btw 'configure' and 'make' didn't produce any errors/warnings as far as i could tell.
Here's the output from three different examples:

>> From MovingSoundTest.java <<

cd /usr/home/steve/LWJGL/src/java/org/lwjgl/test/openal/
/usr/local/jdk1.4.2/bin/java -classpath /usr/home/steve/LWJGL/bin/:/usr/home/steve/LWJGL/lib/lwjgl.jar:/usr/home/steve/LWJGL/res/ -Xdebug -Xrunjdwp:transport=dt_socket,address=4444,server=y,suspend=n org.lwjgl.test.openal.MovingSoundTest

XF86VidMode extension version 2.2
Saved width, height 1280, 960
XF86VidMode extension version 2.2
Found 5 OpenAL paths
Testing '/usr/local/jdk1.4.2/jre/lib/i386/client/libopenal.so'
Testing '/usr/local/jdk1.4.2/jre/lib/i386/libopenal.so'
Testing '/usr/local/jdk1.4.2/jre/../lib/i386/libopenal.so'
Testing '/usr/lib/libopenal.so'
Testing 'libopenal.so'
Found OpenAL at 'libopenal.so'
fcntl: Device not configured
no argument supplied, assuming Footsteps.wav
Pixel format chosen sizes: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 8
Created window
Supported extensions: GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_S3_s3tc GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NVX_ycrcb GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 10 occurred at PC=0x345FC196
Function=alIsBuffer+0x2
Library=/usr/lib/liblwjgl.so.0

Current Java thread:
   at org.lwjgl.openal.CoreAL.alSourcei(Native Method)
   at org.lwjgl.test.openal.MovingSoundTest.execute(MovingSoundTest.java:127)
   at org.lwjgl.test.openal.MovingSoundTest.main(MovingSoundTest.java:236)

Dynamic libraries:
0x8048000    /usr/local/jdk1.4.2/bin/java
0x28078000    /usr/lib/libc_r.so.5
0x2809c000    /lib/libc.so.5
0x28177000    /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
0x285b6000    /usr/lib/libstdc++.so.4
0x28672000    /lib/libm.so.2
0x2868b000    /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
0x28699000    /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
0x286af000    /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
0x286cd000    /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
0x344e0000    /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so
0x3450e000    /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so
0x345a6000    /usr/lib/liblwjgl.so.0
0x345fe000    /usr/X11R6/lib/libXext.so.6
0x3460d000    /usr/X11R6/lib/libX11.so.6
0x346d5000    /usr/local/lib/libopenal.so
0x34764000    /usr/X11R6/lib/libGL.so.1
0x347cb000    /usr/X11R6/lib/libGLcore.so.1
0x34c67000    /usr/X11R6/lib/libGLU.so.1
0x2804e000    /libexec/ld-elf.so.1

Heap at VM Abort:
Heap
def new generation   total 576K, used 340K [0x2c460000, 0x2c500000, 0x2c940000)
 eden space 512K,  54% used [0x2c460000, 0x2c4a5360, 0x2c4e0000)
 from space 64K,  99% used [0x2c4f0000, 0x2c4ffff8, 0x2c500000)
 to   space 64K,   0% used [0x2c4e0000, 0x2c4e0000, 0x2c4f0000)
tenured generation   total 1408K, used 79K [0x2c940000, 0x2caa0000, 0x30460000)
  the space 1408K,   5% used [0x2c940000, 0x2c953e70, 0x2c954000, 0x2caa0000)
compacting perm gen  total 4096K, used 1361K [0x30460000, 0x30860000, 0x34460000)
  the space 4096K,  33% used [0x30460000, 0x305b4618, 0x305b4800, 0x30860000)

Local Time = Thu Nov 20 13:30:08 2003
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_20_nov_2003_05_15 mixed mode)
#
# An error report file has been saved as hs_err_pid27628.log.
# Please refer to the file for further information.
#

Process org.lwjgl.test.openal.MovingSoundTest abort trap (core dumped)


>> From Grass.java <<

cd /usr/home/steve/LWJGL/src/java/org/lwjgl/test/opengl/
/usr/local/jdk1.4.2/bin/java -classpath /usr/home/steve/LWJGL/bin/:/usr/home/steve/LWJGL/lib/lwjgl.jar:/usr/home/steve/LWJGL/res/ -Xdebug -Xrunjdwp:transport=dt_socket,address=4444,server=y,suspend=n org.lwjgl.test.opengl.Grass

XF86VidMode extension version 2.2
Saved width, height 1280, 960
XF86VidMode extension version 2.2
XF86VidMode extension version 2.2
Display mode: 640 x 480 x 24 @0Hz
XF86VidMode extension version 2.2
Mode 0: 1280x960
Mode 1: 1024x768
Mode 2: 1024x768
Mode 3: 800x600
Mode 4: 800x600
Mode 5: 800x600
Mode 6: 700x525
Mode 7: 640x512
Mode 8: 640x480
Created display.
Pixel format chosen sizes: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 8
Created window
Supported extensions: GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_S3_s3tc GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NVX_ycrcb GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x345FE04B
Function=+0x4B
Library=/usr/X11R6/lib/libXext.so.6

Current Java thread:
   at org.lwjgl.input.Mouse.nCreate(Native Method)
   at org.lwjgl.input.Mouse.create(Mouse.java:228)
   at org.lwjgl.test.opengl.Grass.<clinit>(Grass.java:96)

Dynamic libraries:
0x8048000    /usr/local/jdk1.4.2/bin/java
0x28078000    /usr/lib/libc_r.so.5
0x2809c000    /lib/libc.so.5
0x28177000    /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
0x285b6000    /usr/lib/libstdc++.so.4
0x28672000    /lib/libm.so.2
0x2868b000    /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
0x28699000    /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
0x286af000    /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
0x286cd000    /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
0x344e0000    /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so
0x3450e000    /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so
0x345a6000    /usr/lib/liblwjgl.so.0
0x345fe000    /usr/X11R6/lib/libXext.so.6
0x3460d000    /usr/X11R6/lib/libX11.so.6
0x346d5000    /usr/X11R6/lib/libGL.so.1
0x3473c000    /usr/X11R6/lib/libGLcore.so.1
0x34bd8000    /usr/X11R6/lib/libGLU.so.1
0x3cf0a000    /usr/X11R6/lib/libXcursor.so.1
0x3cf13000    /usr/X11R6/lib/libXrender.so.1
0x2804e000    /libexec/ld-elf.so.1

Heap at VM Abort:
Heap
def new generation   total 576K, used 262K [0x2c460000, 0x2c500000, 0x2c940000)
 eden space 512K,  51% used [0x2c460000, 0x2c4a1800, 0x2c4e0000)
 from space 64K,   0% used [0x2c4e0000, 0x2c4e0000, 0x2c4f0000)
 to   space 64K,   0% used [0x2c4f0000, 0x2c4f0000, 0x2c500000)
tenured generation   total 1408K, used 0K [0x2c940000, 0x2caa0000, 0x30460000)
  the space 1408K,   0% used [0x2c940000, 0x2c940000, 0x2c940200, 0x2caa0000)
compacting perm gen  total 4096K, used 1146K [0x30460000, 0x30860000, 0x34460000)
  the space 4096K,  27% used [0x30460000, 0x3057eae0, 0x3057ec00, 0x30860000)

Local Time = Thu Nov 20 13:28:27 2003
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_20_nov_2003_05_15 mixed mode)
#
# An error report file has been saved as hs_err_pid27573.log.
# Please refer to the file for further information.
#

Process org.lwjgl.test.opengl.Grass abort trap (core dumped)


>> From MouseTest.java <<

/usr/home/steve/LWJGL/src/java/org/lwjgl/test/input/
/usr/local/jdk1.4.2/bin/java -classpath /usr/home/steve/LWJGL/bin/:/usr/home/steve/LWJGL/lib/lwjgl.jar:/usr/home/steve/LWJGL/res/ -Xdebug -Xrunjdwp:transport=dt_socket,address=4444,server=y,suspend=n org.lwjgl.test.input.MouseTest

Pixel format chosen sizes: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 8
Created window
Supported extensions: GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_S3_s3tc GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NVX_ycrcb GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod

Unexpected Signal : 11 occurred at PC=0x284BAB5B
Function=_ZN15ContiguousSpace31oop_since_save_marks_iterate_nvEP25ParScanWithBarrierClosure+0xB
Library=/usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so


Dynamic libraries:
0x8048000    /usr/local/jdk1.4.2/bin/java
0x28078000    /usr/lib/libc_r.so.5
0x2809c000    /lib/libc.so.5
0x28177000    /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
0x285b6000    /usr/lib/libstdc++.so.4
0x28672000    /lib/libm.so.2
0x2868b000    /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
0x28699000    /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
0x286af000    /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
0x286cd000    /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
0x344e0000    /usr/local/jdk1.4.2/jre/lib/i386/libjdwp.so
0x3450e000    /usr/local/jdk1.4.2/jre/lib/i386/libdt_socket.so
0x345a6000    /usr/lib/liblwjgl.so.0
0x345fe000    /usr/X11R6/lib/libXext.so.6
0x3460d000    /usr/X11R6/lib/libX11.so.6
0x346d5000    /usr/X11R6/lib/libGL.so.1
0x3473c000    /usr/X11R6/lib/libGLcore.so.1
0x34bd8000    /usr/X11R6/lib/libGLU.so.1
0x2804e000    /libexec/ld-elf.so.1

Heap at VM Abort:
Heap
def new generation   total 576K, used 421K [0x2c460000, 0x2c500000, 0x2c940000)
 eden space 512K,  69% used [0x2c460000, 0x2c4b94e8, 0x2c4e0000)
 from space 64K, 100% used [0x2c4f0000, 0x2c500000, 0x2c500000)
 to   space 64K,   0% used [0x2c4e0000, 0x2c4e0000, 0x2c4f0000)
tenured generation   total 1408K, used 87K [0x2c940000, 0x2caa0000, 0x30460000)
  the space 1408K,   6% used [0x2c940000, 0x2c955f08, 0x2c956000, 0x2caa0000)
compacting perm gen  total 4096K, used 1402K [0x30460000, 0x30860000, 0x34460000)
  the space 4096K,  34% used [0x30460000, 0x305bebe8, 0x305bec00, 0x30860000)

Local Time = Thu Nov 20 13:26:06 2003
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-p5-root_20_nov_2003_05_15 mixed mode)
#
# An error report file has been saved as hs_err_pid27570.log.
# Please refer to the file for further information.
#

Process org.lwjgl.test.input.MouseTest abort trap (core dumped)


Cheers,
Steve.

[/quote]

Matzon

Can't really help all that much, since I've never installed a bsd installation before!, however I will comment on the following:

QuoteFound OpenAL at 'libopenal.so'
fcntl: Device not configured
libopenal.so might crash hard if no device is configured. Perhaps the oal part doesn't capture this as an error and throw an exception?

What happens if you run PlayTest , which doesn't open a window?

Could you try to run Game instead of Grass ?

QuoteUnexpected Signal : 11 occurred at PC=0x284BAB5B
Function=_ZN15ContiguousSpace31oop_since_save_marks_iterate_nvEP25ParScanWithBarrierClosure+0xB
Library=/usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
This one is a bit odd, in that it doesn't crash in lwjgl.so but rather the VM. And an odd name too :)

/matzon

elias

Do the tests behave different when you don't include the -X options?

It would be cool to have bsd support, so keep it going!

- elias

darkprophet

i have freebsd, and i have a question? are you installing from the ports? and are you using the linux emulated java 1.4? or are just compiling them into any area?

stevep

Quote from: "darkprophet"i have freebsd, and i have a question? are you installing from the ports? and are you using the linux emulated java 1.4? or are just compiling them into any area?

Any area, is there a port or should I make a new one? The thing is I don't have a linux libGL.so installed, so should my liblwjgl.so be a linux or freebsd library, and if linux will it use my native libGL.so?

darkprophet

:shock: it seems to me that you haven't read the handbook? which version of freebsd are you on? if your on 5.1 switch to 4.8 and install the linux emulation binary! from there compile and see how it goes...

I would recomend to anyone from the lwjgl project to make a port, cause freebsd users will only compile from the ports tree (we are organised, unlike linux!  :P )