|
From: Boris K. <BKo...@ge...> - 1999-12-10 15:49:36
|
After reading the web page I am still left with some doubts. Is Tiny COBOL ready for use in a development environment? |
|
From: Joe K. <kle...@we...> - 2000-07-18 14:31:51
|
I just joined this list and wanted to say hello and test my
procmailrc. :-)
---
"I do not fear computers. I fear the lack of them."
-- Isaac Asimov
|
|
From: <ga...@rc...> - 2005-06-27 14:05:19
|
Is this list alive? Heve problems with Tinycobol installed on RH9. using tiny rpm , db1 rpm , db1 devel rpm and byacc rpm. Thanks |
|
From: David E. <de...@us...> - 2005-06-27 18:57:54
|
Szemerédy Gábor wrote: > Is this list alive? Yes, but it is on life support. > Heve problems with Tinycobol installed on RH9. > using tiny rpm , db1 rpm, db1 devel rpm and byacc rpm. What kind of problems ? I would recommend building TC from the sources, as RPM binaries dependencies tend to be critical. A few new features have been added to TC since the last release, so I would recommend down-loading the SF CVS version. |
|
From: <ga...@rc...> - 2005-06-28 14:17:31
|
Thanks Mr. Essex for your answer!
Here are my adventures with Tinycobol.
When I installed tinycobol-0.62.-1.i386.rpm on my RH9 machine , the
installation
did not make symbolic link /usr/lib/libhtcobol.so.0 --->
libhtcobol.so.0.62.0 ,
so I made it by hand.
When I tried to install db1-1.85.4-8.i386.rpm it claims on conflict on
two files:
libdb1.so.2 and
db1_dump185.
So I renamed those two files of gnome-libs-1.4.1.2.90-32 and installed
db1 rpm.
After that I installed db1-devel-1.85.4-8.i386.rpm and
byacc-1.93-21bw.i386.rpm.
Checked all packages trough webmin and made failing symbolic links.
(now certainly webmin claims on moved gnome-libs files,
failed file size check for db1_dump185 and libdb1.so.2 )
Now I tried to compile a simply cobol program:
*
IDENTIFICATION DIVISION.
PROGRAM-ID. zvonko.
PROCEDURE DIVISION.
DISPLAY "Sretan start buduce saradnje".
STOP RUN.
typing #htcobol zvonko.cob
The result was:
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libhtcobol.a(fileio.o)(.text+0x63a):
In function `tcob_open':
: undefined reference to `__db185_open'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libhtcobol.a(fileio.o)(.text+0x706):
In function `tcob_open':
: undefined reference to `__db185_open'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libhtcobol.a(fileio.o)(.text+0x3c82):
In function `tcob_sort_open':
: undefined reference to `__db185_open'
collect2: ld returned 1 exit status
Can you give me an advice what to do?
Thanks again!
Gabor
|
|
From: David E. <de...@us...> - 2005-06-28 22:07:34
|
Szemerédy Gábor wrote: > ... > Here are my adventures with Tinycobol. > When I installed tinycobol-0.62.-1.i386.rpm on my RH9 machine , the > installation did not make symbolic link > /usr/lib/libhtcobol.so.0 ---> libhtcobol.so.0.62.0 , > so I made it by hand. Yes that is a bug in the make file. > When I tried to install db1-1.85.4-8.i386.rpm it claims on conflict on > two files: > libdb1.so.2 and db1_dump185. > So I renamed those two files of gnome-libs-1.4.1.2.90-32 and installed > db1 rpm. > After that I installed db1-devel-1.85.4-8.i386.rpm and It is recommended to use DB1, but the TC run-time will work with almost any version of DB, 1.85.4 - 4. So the binary RPM depends on what version of DB the TC run-time was linked. I do not think that in this case the RPM binary is linked with DB1. You can check the dependencies of the RPM using the 'rpm' command. Or extract the compiler and run-time from the RPM, and use the 'ldd' command. ldd ./htcobol and ldd ./libhtcobol.so.0.62.0 If there is a bad or missing dependency, the 'ldd' command will list the library and add 'not found' error message next to it. example: $ldd test10 libhtcobol.so.0 => not found libdb.so.3 => /lib/libdb.so.3 (0x4001a000) libm.so.6 => /lib/libm.so.6 (0x40053000) libc.so.6 => /lib/libc.so.6 (0x4006f000) ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > byacc-1.93-21bw.i386.rpm. YACC (or Bison) is only required to build (compile and link) the the TC compiler itself. It is not required to run TC, to compile a COBOL program. > Checked all packages trough webmin and made failing symbolic links. > (now certainly webmin claims on moved gnome-libs files, > failed file size check for db1_dump185 and libdb1.so.2 ) > Now I tried to compile a simply cobol program: > * > IDENTIFICATION DIVISION. > PROGRAM-ID. zvonko. > PROCEDURE DIVISION. > DISPLAY "Sretan start buduce saradnje". > STOP RUN. > #htcobol zvonko.cob > The result was: > ... libhtcobol.a(fileio.o)(.text+0x63a): > In function `tcob_open': > : undefined reference to `__db185_open' > Can you give me an advice what to do? That is a bug, or omission, with the compiler defaults. Due to a change in the TC run-time, DB is required for all COBOL programs, even when file IO is not used. Just add the following to the resource file 'htcobolrc'. LD_EXTRA_LIBS: -ldl -ldb Or add DB to the command line. htcobol -v zvonko.cob -ldb Hope this helps. |
|
From: <ga...@rc...> - 2005-06-30 15:15:58
|
Hello Mr. Essex! Sorry for still disturbing you. I made the things according to your instructions and here are my observat= ions: The link between libhtcobol.so and libhtcobol.so.0.62.0 and the link betw= een libhtcobol.so.0 and libhtcobol.so.0.62.0 is very strange , since none of = those files are existing , only the links! I tried to find out dependencies. Typing rpm -q --requires tinycobol it responded: /bin/sh /bin/sh db4 glibc-devel libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) rpmlib(CompressedFileNames) <=3D 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <=3D 4.0-1 By typing ldd htcobol the response was: libc.so.6 =3D> /lib/tls/libc.so.6 (0x42000000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000) ldd libhtcobol.so.0.62.0 answered no such file or directory. Finally I compiled successfully the little cobol program with the -ldb op= tion. Now I'm confused , since I'm not a cobol programmer , what do you mean b= y file IO and in what situations I do need the DB for compilation. It seems to me that this rpm type of installation is not the right one fo= r as. We would like to have a fully functional compiler. So I would like to ask you to tell as which tar.gz files we need? How to configure on RH9 , and install them? Thanks in advance! Gabor David Essex wrote: > Szemer=E9dy G=E1bor wrote: > > > ... > > Here are my adventures with Tinycobol. > > When I installed tinycobol-0.62.-1.i386.rpm on my RH9 machine , the > > installation did not make symbolic link > > /usr/lib/libhtcobol.so.0 ---> libhtcobol.so.0.62.0 , > > so I made it by hand. > > Yes that is a bug in the make file. > > > When I tried to install db1-1.85.4-8.i386.rpm it claims on conflict = on > > two files: > > libdb1.so.2 and db1_dump185. > > So I renamed those two files of gnome-libs-1.4.1.2.90-32 and install= ed > > db1 rpm. > > After that I installed db1-devel-1.85.4-8.i386.rpm and > > It is recommended to use DB1, but the TC run-time will work with almost > any version of DB, 1.85.4 - 4. > > So the binary RPM depends on what version of DB the TC run-time was lin= ked. > I do not think that in this case the RPM binary is linked with DB1. > > You can check the dependencies of the RPM using the 'rpm' command. > > Or extract the compiler and run-time from the RPM, and use the 'ldd' > command. > > ldd ./htcobol > and > ldd ./libhtcobol.so.0.62.0 > > If there is a bad or missing dependency, the 'ldd' command will list th= e > library and add 'not found' error message next to it. > > example: > > $ldd test10 > libhtcobol.so.0 =3D> not found > libdb.so.3 =3D> /lib/libdb.so.3 (0x4001a000) > libm.so.6 =3D> /lib/libm.so.6 (0x40053000) > libc.so.6 =3D> /lib/libc.so.6 (0x4006f000) > ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000) > > > byacc-1.93-21bw.i386.rpm. > > YACC (or Bison) is only required to build (compile and link) the the TC > compiler itself. > It is not required to run TC, to compile a COBOL program. > > > Checked all packages trough webmin and made failing symbolic links. > > (now certainly webmin claims on moved gnome-libs files, > > failed file size check for db1_dump185 and libdb1.so.2 ) > > Now I tried to compile a simply cobol program: > > * > > IDENTIFICATION DIVISION. > > PROGRAM-ID. zvonko. > > PROCEDURE DIVISION. > > DISPLAY "Sretan start buduce saradnje". > > STOP RUN. > > #htcobol zvonko.cob > > The result was: > > ... libhtcobol.a(fileio.o)(.text+0x63a): > > In function `tcob_open': > > : undefined reference to `__db185_open' > > Can you give me an advice what to do? > > That is a bug, or omission, with the compiler defaults. > > Due to a change in the TC run-time, DB is required for all COBOL > programs, even when file IO is not used. > > Just add the following to the resource file 'htcobolrc'. > LD_EXTRA_LIBS: -ldl -ldb > > Or add DB to the command line. > htcobol -v zvonko.cob -ldb > > Hope this helps. > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dcl= ick > _______________________________________________ > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users |
|
From: David E. <de...@us...> - 2005-06-30 19:47:37
|
Szemerédy Gábor wrote: > I made the things according to your instructions and here are my > observations: > The link between libhtcobol.so and libhtcobol.so.0.62.0 and > the link between libhtcobol.so.0 and libhtcobol.so.0.62.0 > is very strange , since none of those files are existing , > only the links! > ... > By typing ldd htcobol the response was: > libc.so.6 => /lib/tls/libc.so.6 (0x42000000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > ldd libhtcobol.so.0.62.0 answered no such file or directory. > ... Yes, the problem is a defective RPM. The shared TC run-time library is not enclosed in the RPM, only the static one. So remove all links 'libhtcobol.so, libhtcobol.so.0,and libhtcobol.so.0.62.0'. The static run-time library will be used for the link. > I tried to find out dependencies. > Typing rpm -q --requires tinycobol it responded: > /bin/sh > /bin/sh > db4 > glibc-devel > libc.so.6 > libc.so.6(GLIBC_2.0) > libc.so.6(GLIBC_2.1) > libc.so.6(GLIBC_2.3) > rpmlib(CompressedFileNames) <= 3.0.4-1 > rpmlib(PayloadFilesHavePrefix) <= 4.0-1 The RPM was built using DB version 4. > Finally I compiled successfully the little cobol program > with the -ldb option. Change the resource file 'htcobolrc'. LD_EXTRA_LIBS: -ldl -ldb This will add the '-ldb' automatically. > Now I'm confused , since I'm not a cobol programmer , what do you > mean by file IO and in what situations I do need the DB for > compilation. File IO are the read/write statements, used to access files. > It seems to me that this rpm type of installation is not the right > one for as. > We would like to have a fully functional compiler. > So I would like to ask you to tell as which tar.gz files we need? > How to configure on RH9 , and install them? As far as I can tell, you do have a fully functional TC compiler. Have you tried compiling and running any of the 'test.code' COBOL samples found in the 'tinycobol-devel-0.62.tar.gz' file ? If you would like to built TC from the sources it is not difficult, and since you have an RPM based system you should have all the requirements installed on your system. |
|
From: Rildo P. <rpr...@ac...> - 1999-12-10 16:37:12
|
Hi Boris, On Fri, 10 Dec 1999, Boris Kortiak wrote: > After reading the web page I am still left with some doubts. > Is Tiny COBOL ready for use in a development environment? Maybe, maybe not. We are still missing some important statements like "inspect" (being implemented now), the screen section, report section and many smaller things. Please notice we do not support ANSI-85 now, only '74. This will be left for the future (in a couple of months perhaps we start to upgrade). Anyway, your help is welcome. If you try to make some development with it and find some bugs, I will be happy to try to fix them. We intend our tool to be used for real world applications. regards, ---------------------------------------------------------------- Rildo Pragana FPGA/uControllers * Linux * tcl/tk P.O. Box 721 Camaragibe PE http://members.xoom.com/rpragana Brazil 54792-990 +55-81-459-1776 |