gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Problems installing OC on CentOS


From: Chris Geldenhuis
Subject: [open-cobol-list] Problems installing OC on CentOS
Date: Fri, 27 Apr 2012 13:34:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3

Hi,

I am new to OC and am trying to install on CentOS and have run into the following problem:

After installing the dependencies as per the installation instructions and using --prefix=/usr/local when configuring the Berekely database i get the following output from the configure stage (lots of stuff before this but no error messages seen)

 checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking db_185.h usability... no
checking db_185.h presence... no
checking for db_185.h... no
checking db3/db_185.h usability... no
checking db3/db_185.h presence... no
checking for db3/db_185.h... no
checking db4/db_185.h usability... no
checking db4/db_185.h presence... no
checking for db4/db_185.h... no
checking db4.1/db_185.h usability... no
checking db4.1/db_185.h presence... no
checking for db4.1/db_185.h... no
checking db4.2/db_185.h usability... no
checking db4.2/db_185.h presence... no
checking for db4.2/db_185.h... no
checking db4.3/db_185.h usability... no
checking db4.3/db_185.h presence... no
checking for db4.3/db_185.h... no
checking db4.4/db_185.h usability... no
checking db4.4/db_185.h presence... no
checking for db4.4/db_185.h... no
checking db4.5/db_185.h usability... no
checking db4.5/db_185.h presence... no
checking for db4.5/db_185.h... no
checking for __db_open in -ldb-4.5... yes
checking for dlopen in -lc... no
checking for dlopen in -ldl... (cached) yes
configure: creating ./config.status
config.status: creating cob-config
config.status: creating cob-config
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating libcob/Makefile
config.status: creating cobc/Makefile
config.status: creating bin/Makefile
config.status: creating po/Makefile.in
config.status: creating texi/Makefile
config.status: creating config/Makefile
config.status: creating copy/Makefile
config.status: creating tests/atlocal
config.status: creating tests/Makefile
config.status: creating tests/cobol85/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
OpenCOBOL Configuration:

  CC                   gcc
  COB_CC               gcc
CFLAGS -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k
  COB_CFLAGS           -I/usr/local/include
  COB_EXTRA_FLAGS
  LDFLAGS
  COB_LDFLAGS
COB_LIBS -L${exec_prefix}/lib -lcob -lm -lgmp -lncurses -ldb-4.5 -ldl
  COB_CONFIG_DIR       ${prefix}/share/open-cobol/config
  COB_COPY_DIR         ${prefix}/share/open-cobol/copy
  COB_LIBRARY_PATH     ${exec_prefix}/lib/open-cobol
  COB_MODULE_EXT       so
  COB_SHARED_OPT       -shared
  COB_PIC_FLAGS        -fPIC -DPIC
  COB_EXPORT_DYN       -Wl,--export-dynamic
  COB_STRIP_CMD        strip --strip-unneeded
  Dynamic loading      System

  Use gettext for international messages:      yes
  Use Berkeley DB for file I/O:                yes
  Use enhanced Berkeley DB (>= 4.1)            no
  Use fcntl for file locking:                  yes
  Use ncurses/pdcurses/curses for screen I/O:  yes

This all seems to be OK to me although I am confused by the line about the DB not being >4.1 as I had versin 4.5 of the db installed at the time.

When I run make it eventually comes up with error messages starting with:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-fileio.lo -MD -MP -MF .deps/libcob_la-fileio.Tpo -c fileio.c -fPIC -DPIC -o .libs/libcob_la-fileio.o
fileio.c:296:1: warning: "DB_FIRST" redefined
In file included from fileio.c:91:
/usr/local/include/db.h:1323:1: warning: this is the location of the previous definition
fileio.c:297:1: warning: "DB_LAST" redefined
/usr/local/include/db.h:1331:1: warning: this is the location of the previous definition
fileio.c:298:1: warning: "DB_NEXT" redefined
/usr/local/include/db.h:1332:1: warning: this is the location of the previous definition
fileio.c:299:1: warning: "DB_PREV" redefined
/usr/local/include/db.h:1339:1: warning: this is the location of the previous definition
fileio.c: In function 'cob_sync':
fileio.c:649: error: too few arguments to function '(*(p->db + (long unsigned int)(i * 8u)))->fd'

and at the end:
make[2]: *** [libcob_la-fileio.lo] Error 1
make[2]: Leaving directory `/opt/open-cobol-1.1/libcob'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/open-cobol-1.1'
make: *** [all] Error 2

Does anyone have a suggestion as to how I can get this to work?

I have tried with various releases of the DB - 4.2.52, 4.5.20 and 5.2.36 but have essentially the same problem with all of them.

ChrisG




reply via email to

[Prev in Thread] Current Thread [Next in Thread]