[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I can call but will it come? (Debian)





Hi,

does anyone have experience with Callable IDL on Debian?  I can't get
the example program to compile.  I'm using IDL 5.2.1 now.

Here are the excruciating details...the problem seems to be the Motif
libraries.  The Makefile for calltest.c has this discouraging
statement:

# Linux does not have bundled bundled Motif libraries. To build IDL
# you will need to install Motif on your system first. Although
# it is possible that Motif versions other than the one used by
# RSI for IDL might link and work work with IDL, it is equally likely
# that they won't. RSI cannot make any assurances other than the
# Motif version we used should work.
#
# Linux IDL is built using Red Hat Software's Motif 2.0.

The Makefile in fact doesn't work as given.  libtermcap.a doesn't
exist on Debian, so I substituted libncurses; that at least suppressed
some error messages.  There was no /usr/X11R6/lib/libXm.a or
/usr/X11R6/include/Xm on my machine. I grabbed these from another
Debian computer here.  I don't know whether there are other files
that are supposed to go along with these.

#RSI supplied makefile:
#LDFLAGS= -L$(BINDIR) -lidl -Wl,-rpath,. \
#	-lMesaGLU -lMesaGL /usr/X11R6/lib/libXm.a -lXp -L/usr/X11R6/lib \
#	-lXpm -lXext -lXt -lSM -lICE -lX11 -ldl -ltermcap -lm
#my attempt:
LDFLAGS= -L$(BINDIR) -lidl -Wl,-rpath,. -I/usr/X11R6/include/Xm \
	-lMesaGLU -lMesaGL /usr/X11R6/lib/libXm.a -lXp -L/usr/X11R6/lib \
	-lXpm -lXext -lXt -lSM -lICE -lX11 -ldl /lib/libncurses.so.4.2 -lm

When I try to compile the program now, I get these messages:

gcc -I/usr/local/rsi/idl_5.2/external -o calltest /usr/local/rsi/idl_5.2/external/callable/calltest.c -L/usr/local/rsi/idl_5.2/bin/bin.linux -lidl -Wl,-rpath,. -I/usr/X11R6/include/Xm -lMesaGLU -lMesaGL /usr/X11R6/lib/libXm.a -lXp -L/usr/X11R6/lib -lXpm -lXext -lXt -lSM -lICE -lX11 -ldl /lib/libncurses.so.4.2 -lm
/usr/local/rsi/idl_5.2/bin/bin.linux/libidl.so: undefined reference to `XmeClearBorder'
/usr/local/rsi/idl_5.2/bin/bin.linux/libidl.so: undefined reference to `XmeGetTextualDragIcon'
/usr/local/rsi/idl_5.2/bin/bin.linux/libidl.so: undefined reference to `XmeDrawShadows'
/usr/local/rsi/idl_5.2/bin/bin.linux/libidl.so: undefined reference to `XmeNavigChangeManaged'
/usr/local/rsi/idl_5.2/bin/bin.linux/libidl.so: undefined reference to `XmeWarning'
/usr/local/rsi/idl_5.2/bin/bin.linux/libidl.so: undefined reference to `_XmChangeNavigationType'

Looking through libXm.a, see these symbols
 _XmClearBorder [but no XmeClearBorder]
 _XmGetTextualDragIcon [etc.]
 _XmDrawShadows 
 _XmNavigChangeManaged
 _XmWarning
and nothing with string ChangeNavigationType at all.

Does anyone know if a different version of Motif would solve this
problem?  Or know the significance of the prefixes Xme and _Xm?  I'm
unsure what Motif is anyway, and at this point am just thrashing around
for ideas.  I did search both the Debian and the Red Hat sites for 
Motif, but got only lists of peripheral packages that didn't seem to
be what I needed.

thanks,

Mark Fardal
UMass