Operating System - HP-UX
1854715 Members
33599 Online
104102 Solutions
New Discussion

aCC runtime: Error 215 from shl_findsym(../tpcgen/libtpcgen.sl,_shlInit)

 
Pankaj Agrawal
Occasional Advisor

aCC runtime: Error 215 from shl_findsym(../tpcgen/libtpcgen.sl,_shlInit)

I am getting the error message "aCC runtime: Error 215 ... " when I am running the executable odbcperf.
The makefiles used and their outputs are shown below.

Kindly comment.

# su odbc

$ export SHLIB_PATH=/usr/odbc/drivers:/usr/odbc/lib:/usr/lib:../tpcgen
$ export ODBCINI=$PWD/odbc.ini


$ make -f maketpc.acc clean
rm -f bcd2.o bm_utils.o build.o driver.o load_stub.o permute.o print.o rnd.o speed_seed.o text.o
rm -f TPCDataGenerator.o
rm -f ./libtpcgen.sl


$ make -f maketpc.acc
/vob/hpux-pa/opt/aCC/bin/aCC -c bcd2.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c bm_utils.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c build.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c driver.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c load_stub.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c permute.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c print.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c rnd.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c speed_seed.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c text.c -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c TPCDataGenerator.cpp -g0 -DDEBUG -D_DEBUG +Z -w -mt -DVG_UNIX -DVG_ATT -DTPCGEN -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DODBCVER=0x0350 -DADDL_AUTO_TEST -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/linux/ODBC4.1SDK/include -I/vob/hpux-pa/usr/include -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -o ./libtpcgen.sl bcd2.o bm_utils.o build.o driver.o load_stub.o permute.o print.o rnd.o speed_seed.o text.o TPCDataGenerator.o -z -b -mt -n -L/usr/lib -ldld -lstd -lstream -lCsup -lm -lcl -lc -lpthread
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (bcd2.o) was detected. The linked output may not run on a PA 1.x system.



$ cd ../perf


$ pwd
/vob/tdodbc_nt/regression_test/odbcperf/hpux/hmdir/perf


$ make -f makeperf.acc clean
rm -f cputime.o getopt.o PerfTestIns.o PerfTestCon.o PerfTestMessage.o PerfTestMet.o PerfTestParameters.o PerfTestSel.o StringTokenizer.o tdodbcPerfTest.o ThreadPerfTest.o TPCDataGenerator.o
rm -f
rm -f ./odbcperf


$ make -f makeperf.acc
/vob/hpux-pa/opt/aCC/bin/aCC -c cputime.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c getopt.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c PerfTestIns.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
Warning 121: "Mutex_linux.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif MUTEX_H
^^^^^^^
Warning 121: "PerfTestMessage.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_MESSAGE_H
^^^^^^^^^^^^^^^^^^^
Warning 121: "./TPCDataGenerator.h", line 83 # Extra tokens following '#endif' are not allowed.
#endif TPC_DATA_GENERATOR_H
^^^^^^^^^^^^^^^^^^^^
Warning 121: "PerfTestIns.h", line 364 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_INS_H
^^^^^^^^^^^^^^^
/vob/hpux-pa/opt/aCC/bin/aCC -c PerfTestCon.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c PerfTestMessage.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
Warning 121: "Mutex_linux.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif MUTEX_H
^^^^^^^
Warning 121: "PerfTestMessage.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_MESSAGE_H
^^^^^^^^^^^^^^^^^^^
/vob/hpux-pa/opt/aCC/bin/aCC -c PerfTestMet.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c PerfTestParameters.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c PerfTestSel.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
Warning 121: "Mutex_linux.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif MUTEX_H
^^^^^^^
Warning 121: "PerfTestMessage.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_MESSAGE_H
^^^^^^^^^^^^^^^^^^^
Warning 121: "PerfTestSel.h", line 300 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_SEL_H
^^^^^^^^^^^^^^^
/vob/hpux-pa/opt/aCC/bin/aCC -c StringTokenizer.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c tdodbcPerfTest.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
/vob/hpux-pa/opt/aCC/bin/aCC -c ThreadPerfTest.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
Warning 121: "Mutex_linux.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif MUTEX_H
^^^^^^^
Warning 121: "PerfTestMessage.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_MESSAGE_H
^^^^^^^^^^^^^^^^^^^
Warning 121: "PerfTestSel.h", line 300 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_SEL_H
^^^^^^^^^^^^^^^
Warning 121: "PerfTestMessage.h", line 101 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_MESSAGE_H
^^^^^^^^^^^^^^^^^^^
Warning 121: "./TPCDataGenerator.h", line 83 # Extra tokens following '#endif' are not allowed.
#endif TPC_DATA_GENERATOR_H
^^^^^^^^^^^^^^^^^^^^
Warning 121: "PerfTestIns.h", line 364 # Extra tokens following '#endif' are not allowed.
#endif PERF_TEST_INS_H
^^^^^^^^^^^^^^^
/vob/hpux-pa/opt/aCC/bin/aCC -c TPCDataGenerator.cpp -g0 -DDEBUG -D_DEBUG +Z -mt -DHP -DHP_UX -DINTERSOLV -DDLL_INVOKED -D_JMP_BUF_DEFINED -DLINUX -DODBCVER=0x0350 -D_REENTRANT -D_LIBC_REENTRANT -I/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/include -I./ -I../tpcgen -DTPCH
Warning 121: "TPCDataGenerator.h", line 83 # Extra tokens following '#endif' are not allowed.
#endif TPC_DATA_GENERATOR_H
^^^^^^^^^^^^^^^^^^^^
Warning 829: "TPCDataGenerator.cpp", line 40 # Implicit conversion of string literal to 'char *' is deprecated.
char * Arguments[] = {"dbgen.so", "-T", "L", "-D", "-q"};
^^^^^^^^^^
Warning 829: "TPCDataGenerator.cpp", line 40 # Implicit conversion of string literal to 'char *' is deprecated.
char * Arguments[] = {"dbgen.so", "-T", "L", "-D", "-q"};
^^^^
Warning 829: "TPCDataGenerator.cpp", line 40 # Implicit conversion of string literal to 'char *' is deprecated.
char * Arguments[] = {"dbgen.so", "-T", "L", "-D", "-q"};
^^^
Warning 829: "TPCDataGenerator.cpp", line 40 # Implicit conversion of string literal to 'char *' is deprecated.
char * Arguments[] = {"dbgen.so", "-T", "L", "-D", "-q"};
^^^^
Warning 829: "TPCDataGenerator.cpp", line 40 # Implicit conversion of string literal to 'char *' is deprecated.
char * Arguments[] = {"dbgen.so", "-T", "L", "-D", "-q"};
^^^^
/vob/hpux-pa/opt/aCC/bin/aCC -o ./odbcperf cputime.o getopt.o PerfTestIns.o PerfTestCon.o PerfTestMessage.o PerfTestMet.o PerfTestParameters.o PerfTestSel.o StringTokenizer.o tdodbcPerfTest.o ThreadPerfTest.o TPCDataGenerator.o -mt -L/vob/hpux-pa/usr/lib -lCsup -lstd -lstream -ldld -lm -lcl -lc -lpthread -L/vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/lib -lodbc -lodbcinst -L../tpcgen -ltpcgen
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (cputime.o) was detected. The linked output may not run on a PA 1.x system.




$ ./odbcperf
aCC runtime: Error 215 from shl_findsym(../tpcgen/libtpcgen.sl,_shlInit)
Abort(coredump)




$ gdb odbcperf core
HP gdb 5.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `odbcperf'.
Program terminated with signal 6, Aborted.

warning: Load module /vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/lib/libodbc.sl has been stripped


warning: Load module /usr/odbc/lib/libodbcinst.sl has been stripped


warning: Load module /vob/tdodbc_nt/driver_manager/data_direct/hpux/ODBC4.1SDK/lib/libodbcinst.sl has been stripped

#0 0xc38f4000 in kill+0x10 () from /vob/hpux-pa/usr/lib/libc.2


(gdb) where
#0 0xc38f4000 in kill+0x10 () from /vob/hpux-pa/usr/lib/libc.2
#1 0xc3891358 in raise+0x24 () from /vob/hpux-pa/usr/lib/libc.2
#2 0xc38d198c in abort_C+0x16c () from /vob/hpux-pa/usr/lib/libc.2
#3 0xc38d19e4 in abort+0x1c () from /vob/hpux-pa/usr/lib/libc.2
#4 0xc27b502c in __shlinit+0x190 () from /vob/hpux-pa/usr/lib/libCsup.2
#5 0xc27b73c0 in _main+0x184 () from /vob/hpux-pa/usr/lib/libCsup.2


(gdb) list
21 #include "PerfTestCon.h"
22 #include "PerfTestMet.h"
23
24 /**
25 * Executes an ODBC performance test based on the given command line arguments.
26 * @param argc -- a count of space-separated arguments passed in at the command line
27 * @param argv -- a list of comand line options
28 */
29 int main( int argc, char **argv ) {
30 SQLRETURN result = SQL_ERROR;

1 REPLY 1
Steve Steel
Honored Contributor

Re: aCC runtime: Error 215 from shl_findsym(../tpcgen/libtpcgen.sl,_shlInit)

Hi


Make sure you have latest ld patches for your release

This is documented very similarly


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)