INTERNAL: How to make Callable IDL work under Redhat Linux 7.1+
Anonym
Topic:
The callable IDL example included in the IDL distribution does not work under RedHat 7.1 and later. IDL 5.5 was built under RedHat 6.0, and you will need to modify the Makefile under RedHat 7.1 and beyond.
When you try building and running the example, you encounter the following error message:
./calltest: error while loading shared libraries:
/usr/local/rsi/idl_5.5/bin/bin.linux.x86/libidl.so.5.5: undefined symbol: stat
Discussion:
Karl Schultz found a solution to this problem.
Here is an example that shows how to correctly build calltest under RedHat 7.1 (luvpod):
borsholm@luvpod(44)% cat Makefile
IDLDIR=$(IDL_DIR)
BINDIR=$(IDLDIR)/bin/bin.linux.x86
CALLTEST=$(IDLDIR)/external/callable/calltest
LDFLAGS=-L$(BINDIR) -lidl -Wl,-rpath,. \
-lMesaGLU -lMesaGL /usr/X11R6/lib/libXm.a \
-L/usr/i386-glibc21-linux/lib -lXp -lXpm -lXext -lXt -lSM \
-lICE -lX11 -ldl -ltermcap -lm -lpthread
# Build the C language calltest program.
calltest :
gcc -I$(IDLDIR)/external -o calltest $(CALLTEST).c $(LDFLAGS)
borsholm@luvpod(45)% source /usr/local/rsi/idl_5.5/bin/idl_setup
borsholm@luvpod(46)% setenv LD_LIBRARY_PATH $IDL_DIR/bin/bin.linux.x86
borsholm@luvpod(47)% make calltest
borsholm@luvpod(48)% ./calltest
Solution:
[Edit this field in the IDL-based Tech Tip Editor, v3]