From: Reg <re...@ri...> - 2007-12-07 13:01:36
|
Sorry, last two lines should have read:- find / -name db1 -print /usr/include/db1 i.e. db1 is installed, and so is db4 For some reason, the linker cannot find db1 (or db4 if it is substituted). The htcobol config had no entry for --with-libdb= Could it be that the OS is Fedora rather than RedHat? Just downloaded the RPM, didn't compile from source for the development version. Regs, Reg. Reg wrote: > > > Hi David, > As you suspected, the following:- > > [root@Appserver TinyCat]# htcobol -v -x /TinyCat/DEGRABBER.COB > as -o DEGRABBER.o DEGRABBER.s > gcc -o DEGRABBER DEGRABBER.o -L/usr/local/lib -lhtcobol -ldl -ldb > -lncurses -lm > DEGRABBER.o: In function `DEGRABBER': > DEGRABBER.COB:(.text+0x662): undefined reference to `tcob_read_next_seq' > DEGRABBER.COB:(.text+0xa31): undefined reference to `tcob_write_idx' > DEGRABBER.COB:(.text+0xd40): undefined reference to `tcob_read_next_seq' > collect2: ld returned 1 exit status > [root@Appserver TinyCat]# as -o DEGRABBER.o DEGRABBER.s > Assembler messages: > Error: can't open DEGRABBER.s for reading: No such file or directory > [root@Appserver TinyCat]# htcobol -v -c /TinyCat/DEGRABBER.COB > as -o DEGRABBER.o DEGRABBER.s > [root@Appserver TinyCat]# gcc -o DEGRABBER DEGRABBER.o -L/usr/lib > -lhtcobol -ldb1 -lncurses -ldl -lm > /usr/bin/ld: cannot find -ldb1 > collect2: ld returned 1 exit status > [root@Appserver TinyCat]# gcc -o DEGRABBER DEGRABBER.o -L/usr/lib > -lhtcobol -lncurses -ldl -lm -ldb1 > /usr/bin/ld: cannot find -ldb1 > collect2: ld returned 1 exit status > [root@Appserver TinyCat]# gcc -o DEGRABBER DEGRABBER.o -L/usr/lib > -lhtcobol -lncurses -ldl -lm > DEGRABBER.o: In function `DEGRABBER': > DEGRABBER.COB:(.text+0x662): undefined reference to `tcob_read_next_seq' > DEGRABBER.COB:(.text+0xa31): undefined reference to `tcob_write_idx' > DEGRABBER.COB:(.text+0xd40): undefined reference to `tcob_read_next_seq' > collect2: ld returned 1 exit status > [root@Appserver TinyCat]# find / -name db1 -print > [root@Appserver TinyCat]# > -- View this message in context: http://www.nabble.com/Segmentation-Fault-tf4383688.html#a14211946 Sent from the tiny-cobol-users mailing list archive at Nabble.com. |