Hi,
I am trying to build load modules on AIX (4.3.3) and am having various
problems using both ld and makeC++SharedLib
From the Makefile in $TCLDIST/unix/dltests, I tried the following
command to build the module.
$TCLDIST/unix/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 \
-bnoentry -L$TCLDIST/unix -ltcl8.0 -ldl -lm -lbsd -lc -lC example.o\
example_tcl.o -o example_tcl.so
where example.o is a C++ object file
example_tcl.o is a object file generated using swig .. this
contains all the TCL wrappers and functions required to build the module
(http://www.swig.org)
I used xlC to build both the .o files.
when I try to load example_tcl.so in TCL, it dies with an "illegal
instruction" error.
If I replace the /bin/ld with makeC++SharedLib, it core dumps with a
segfault.
If somebody can give me the sequence of steps to make a load module for
TCL in AIX (from c/c++ code) I would really appreciate it.
Thank you,
- narayan
PS: I am having exactly the same set of problems building the modules
for perl