From: vince c. <vb...@bt...> - 2006-12-28 17:05:52
|
Hi all; I Have now installed tc .63 but getting a lot of errors. Can't run the test_suite without a lot of errors. Ditto when compiling hello world. Can someone help? I have in my ,bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi export TCOB_DIR=3D/home/vince export TCOB_PPDIR=3D/usr/local/share/htcobol export TCOB_OPTIONS_PATH=3D/usr/local/share/htcobol export TCOB_LD_LIBRARY_PATH=3D/home/vince/cobolsrc/libs CCX=3Dgcc; export CCX LD=3Dgcc; export LD ASM=3Das; export ASM There is nothing in cobolsrc/libs In htcobolrc : COPYBOOK_PATH: /usr/local/share/htcobol/copybooks;.; PGM_SUFFIXES: .cob:.COB:.cbl:.CBL: PGM_FORMAT_FREE PGM_ENTRY_POINT_AUTO COMPILE_DEFAULT: PCAL NODEBUG_LINES NOLIST PGMLIST_SUFFIX: .lst XREF ASX_CMD: as CCX_CMD: gcc ARX_CMD: ar RANLIBX_CMD: ranlib SHLIB_NAME_DEFAULT: lib$.so LD_PATH: -L/usr/local/lib -L/usr/lib -L/opt/cobol/lib #LD_PATH: #LD_PATH: -L/home/vince/temp/lib LD_HT1_LIBS: -lhtcobol LD_MATH_LIBS: -lm LD_READLINE_LIBS: -lreadline LD_EXTRA_LIBS: -ldl LD_DCALL_LIBS: -ldl LD_TERM_LIBS: -lncurses LD_IO_LIBS: -ldb-4 # LD_FLAGS: When running htcobol it produces: [vince@study development]$ ls -la hello* =2Drwxr-xr-x 1 vince vince 8136 Dec 28 16:32 hello* =2Drw-r--r-- 1 vince vince 98 Dec 28 00:37 hello.cbl =2Drw-r--r-- 1 vince vince 1470 Dec 28 15:46 hello.lst When running ./hello It gives me: =2E/hello: error while loading shared libraries: libhtcobol.so.0: cannot op= en shared object file: No such file or directory I need to solve this first before attempting the test suite again as most of the test produce similar to this: ######################################################################## # Validate Alph to Alphanumeric moves # # Test Directory: format_tests Test File test01 # ######################################################################## Program test01 returned an unexpected return code Validate Alph to Alphanumeric moves : FAIL= ED ######################################################################## # Validate Alpha to Formatted Alphanumeric (space) moves # # Test Directory: format_tests Test File test01a # ######################################################################## Program test01a returned an unexpected return code Validate Alpha to Formatted Alphanumeric (space) moves : FAIL= ED ######################################################################## # Validate Alpha to Formatted Alphanumeric (slash) moves # # Test Directory: format_tests Test File test01b # ######################################################################## Program test01b returned an unexpected return code The log looks like this (when running make > test.log 2> test.err: perl cobol_test.pl Cobol test suite version v010712 Checking to see if your kit is complete Your kit looks complete. +++++++++++++++++++++++++ ####################################################### # Testing compiler: # # .version "01.01" # ####################################################### Compiling program ctest01 ... Compile return code =3D 16 Compiling program ctest01a ... Compile return code =3D 12 Compiling program ctest01b ... Compile return code =3D 12 Compiling program ctest01c ... Compile return code =3D 0 Compiling program ctest01d ... Compile return code =3D 12 Compiling program ctest01e ... Compile return code =3D 0 Compiling program ctest02 ... Compile return code =3D 16 Compiling program ctestws01 ... Compile return code =3D 0 Compiling program ctestws02 ... Compile return code =3D 0 and the error log like this: foo_c.c: In function =E2=80=98main=E2=80=99: foo_c.c:4: warning: incompatible implicit declaration of built-in function =E2=80=98prin tf=E2=80=99 Program ctest01 failed to properly compile Program ctest01a failed to properly compile Program ctest01b failed to properly compile Program ctest01d failed to properly compile Program ctest02 failed to properly compile Program ctestws03 failed to properly compile Program ctest04 failed to properly compile Program ctest05 failed to properly compile Program ctestsl02 failed to properly compile Program ctestsl04 failed to properly compile Program ctestsl06 failed to properly compile Program ctestsl08 failed to properly compile Program ctestp-initialize1 failed to properly compile =2E/test01: error while loading shared libraries: libhtcobol.so.0: cannot o= pen sha red object file: No such file or directory Program test01 returned an unexpected return code gcc -v produces: [vince@study Desktop]$ gcc -v Using built-in specs. Target: i586-mandriva-linux-gnu Configured=20 with: ../configure --prefix=3D/usr --libexecdir=3D/usr/lib --with-slibdir= =3D/lib --mandir=3D/usr/share/man=20 =2D-infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --en= able-checking=3Drelease=20 =2D-enable-languages=3Dc,c++,ada,fortran,objc,obj-c++,java --host=3Di586-ma= ndriva-linux-gnu --with-cpu=3Dgeneric=20 =2D-with-system-zlib --enable-long-long --enable-__cxa_atexit --enable-cloc= ale=3Dgnu --disable-libunwind-exceptions=20 =2D-enable-java-awt=3Dgtk --with-java-home=3D/usr/lib/jvm/java-1.4.2-gcj-1.= 4.2.0/jre --enable-gtk-cairo --enable-ssp=20 =2D-disable-libssp Thread model: posix gcc version 4.1.1 20060724 (prerelease) (4.1.1-3mdk) Any Ideas? Thanks for any help, Vince. =2D------------------------------------------------------ |