XForms: Using omnithreads with xforms

D.P. Raynaud (dpr21@hermes.cam.ac.uk)
Sun, 28 Jun 1998 01:13:52 +0100 (BST)

# To subscribers of the xforms list from "D.P. Raynaud" <dpr21@hermes.cam.ac.uk> :

I've been having problems using Xforms together with the OMNIthreads
OO threads libraries (part of Olivetti Research Labs OMNIorb project). I'm
compiling with on a DEC Alpha machine using DEC C++ compiler.

I can get all the object files to link OK using:

cxx -g -L/homes/dpr21/omniORB/lib -call_shared -lomnithread -lpthreads
-lmach -lc_r -L/homes/dpr21/xforms/FORMS -lX11 -lm -lforms -o EG general.o
time_classes.o events.o forms_gen.o callbacks.o vectors.o main.o

but when it runs it produces:

18268:./EG: /sbin/loader: Error: unresolvable symbol in
/homes/dpr21/xforms/FORMS//libforms.so.0.86: glXQueryExtension
18268:./EG: /sbin/loader: Error: unresolvable symbol in
/homes/dpr21/xforms/FORMS//libforms.so.0.86: glXChooseVisual
18268:./EG: /sbin/loader: Error: unresolvable symbol in
/homes/dpr21/xforms/FORMS//libforms.so.0.86: glXCreateContext
18268:./EG: /sbin/loader: Error: unresolvable symbol in
/homes/dpr21/xforms/FORMS//libforms.so.0.86: glXMakeCurrent
18268:./EG: /sbin/loader: Error: unresolvable symbol in
/homes/dpr21/xforms/FORMS//libforms.so.0.86: glXDestroyContext
thread_init: loader error: dlopen: Unresolved symbols

I found that by removing "-lmach -lc_r" from the linking, these errors are
avoided, however then I get a segmentation fault before even entering
main(). Using dbg it seems that it is happening in one of the libraries,
and output from decladebug shows:

janacek:code-504$ decladebug EG core
Welcome to the Ladebug Debugger Version 4.0-14A
------------------
object file name: EG
core file name: core
Reading symbolic information ...done
Core file produced from executable EG
Thread terminated at PC 0x3ff80528f5c by signal SEGV
(ladebug) listobj
ObjectName Start Addr Size Symbols
(bytes) Loaded
----------------------------------------------------------------------------
EG 0x120000000 155648 Yes
/homes/dpr21/omniORB/lib//libomnithread.so.1
0x3ffbffe0000 98304 Yes
/usr/shlib/libpthreads.so
0x3ff80540000 303104 Yes
/usr/shlib/libX11.so 0x3ff803b0000 794624 Yes
/homes/dpr21/xforms/FORMS//libforms.so.0.86
0x30000000000 499712 Yes
/usr/lib/cmplrs/cxx/libcxx.so
0x3ff81d20000 188416 Yes
/usr/shlib/libots.so 0x3ff81800000 65536 Yes
/usr/shlib/libc.so 0x3ff80080000 917504 Yes
/usr/shlib/libmach.so 0x3ff80520000 65536 Yes
/usr/shlib/libc_r.so 0x3ff80490000 589824 Yes
(ladebug) quit

... which makes it seem something is happening in libmach.so.

Does anyone have an idea where the problem might be? (If replying to the
group, please also CC to dpr21@hermes.cam.ac.uk - thanks)

Daniel Raynaud

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/