opensourcecobol / Open-COBOL-ESQL

Open Cobol ESQL (ocesql) is an open-source Embedded SQL pre-compiler and run-time library designed for COBOL applications which access an open-source database.
https://www.osscons.jp/osscobol/
GNU Lesser General Public License v3.0
48 stars 24 forks source link

Can't compile ESQL on Ubuntu #18

Open an-gril opened 4 years ago

an-gril commented 4 years ago

There is a problem in ./configure that I can't figure out. (I have fixed quite a lot of missing tools).

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by Open COBOL ESQL configure 1.2, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = Chicago uname -m = x86_64 uname -r = 4.15.0-101-generic uname -s = Linux uname -v = #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020

/usr/bin/uname -p = unknown /bin/uname -X = unknown

/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown

PATH: /home/andrew/bin PATH: /home/andrew/.local/bin PATH: /home/andrew/Computing/android-studio/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin

-----------

Core tests.

-----------

configure:2612: checking for a BSD-compatible install configure:2680: result: /usr/bin/install -c configure:2691: checking whether build environment is sane configure:2746: result: yes configure:2897: checking for a thread-safe mkdir -p configure:2936: result: /bin/mkdir -p configure:2943: checking for gawk configure:2959: found /usr/bin/gawk configure:2970: result: gawk configure:2981: checking whether make sets $(MAKE) configure:3003: result: yes configure:3032: checking whether make supports nested variables configure:3049: result: yes configure:3290: checking for C++ compiler version configure:3299: /usr/bin/cpp --version >&5 cpp (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3310: $? = 0 configure:3299: /usr/bin/cpp -v >&5

1 ""

1 ""

1 ""

31 ""

1 "/usr/include/stdc-predef.h" 1 3 4

32 "" 2

1 ""

Using built-in specs. COLLECT_GCC=/usr/bin/cpp OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64' /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -E -quiet -v -imultiarch x86_64-linux-gnu - -mtune=generic -march=x86-64 -fstack-protector-strong -Wformat -Wformat-security ... rest of stderr output deleted ... configure:3310: $? = 0 configure:3299: /usr/bin/cpp -V >&5 cpp: error: unrecognized command line option '-V' configure:3310: $? = 1 configure:3299: /usr/bin/cpp -qversion >&5 cpp: error: unrecognized command line option '-qversion'; did you mean '--version'? configure:3310: $? = 1 configure:3330: checking whether the C++ compiler works configure:3352: /usr/bin/cpp conftest.cpp >&5

1 "conftest.cpp"

1 ""

1 ""

1 "/usr/include/stdc-predef.h" 1 3 4

1 "" 2

1 "conftest.cpp"

12 "conftest.cpp"

int main () {

; return 0; } configure:3356: $? = 0 configure:3394: result: no configure: failed program was: / confdefs.h / #define PACKAGE_NAME "Open COBOL ESQL" #define PACKAGE_TARNAME "open-cobol-esql" #define PACKAGE_VERSION "1.2" #define PACKAGE_STRING "Open COBOL ESQL 1.2" #define PACKAGE_BUGREPORT "opencobol@tsh-world.co.jp" #define PACKAGE_URL "" #define PACKAGE "open-cobol-esql" #define VERSION "1.2" / end confdefs.h. /
int
main ()
{
;
return 0;
}

configure:3399: error: in /home/andrew/Software/COBOL/ESQL': configure:3401: error: C++ compiler cannot create executables Seeconfig.log' for more details

----------------

Cache variables.

----------------

ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/usr/bin/cpp ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value= ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /home/andrew/Software/COBOL/ESQL/missing aclocal-1.15' ALLOCA='' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='' AUTOCONF='${SHELL} /home/andrew/Software/COBOL/ESQL/missing autoconf' AUTOHEADER='${SHELL} /home/andrew/Software/COBOL/ESQL/missing autoheader' AUTOMAKE='${SHELL} /home/andrew/Software/COBOL/ESQL/missing automake-1.15' AWK='gawk' CC='' CCDEPMODE='' CFLAGS='' CPP='' CPPFLAGS='' CXX='/usr/bin/cpp' CXXCPP='' CXXDEPMODE='' CXXFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' DISABLE_OCESQL_FALSE='' DISABLE_OCESQL_TRUE='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FGREP='' GREP='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='' LDFLAGS='' LEX='' LEXLIB='' LEX_OUTPUT_ROOT='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MAKEINFO='${SHELL} /home/andrew/Software/COBOL/ESQL/missing makeinfo' MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='open-cobol-esql' PACKAGE_BUGREPORT='opencobol@tsh-world.co.jp' PACKAGE_NAME='Open COBOL ESQL' PACKAGE_STRING='Open COBOL ESQL 1.2' PACKAGE_TARNAME='open-cobol-esql' PACKAGE_URL='' PACKAGE_VERSION='1.2' PATH_SEPARATOR=':' RANLIB='' SED='' SET_MAKE='' SHELL='/bin/bash' STRIP='' VERSION='1.2' YACC='' YFLAGS='' ac_ct_AR='' ac_ct_CC='' ac_ct_CXX='' ac_ct_DUMPBIN='' amEXEEXT_FALSE='' am__EXEEXT_TRUE='' amfastdepCC_FALSE='' amfastdepCC_TRUE='' am__fastdepCXX_FALSE='' amfastdepCXX_TRUE='' aminclude='' amisrc='' am__leading_dot='.' amnodep='' amquote='' amtar='$${TAR-tar} chof - "$$tardir"' amuntar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='' host_alias='' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/andrew/Software/COBOL/ESQL/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias=''

-----------

confdefs.h.

-----------

/ confdefs.h /

define PACKAGE_NAME "Open COBOL ESQL"

define PACKAGE_TARNAME "open-cobol-esql"

define PACKAGE_VERSION "1.2"

define PACKAGE_STRING "Open COBOL ESQL 1.2"

define PACKAGE_BUGREPORT "opencobol@tsh-world.co.jp"

define PACKAGE_URL ""

define PACKAGE "open-cobol-esql"

define VERSION "1.2"

configure: exit 77

an-gril commented 4 years ago

Is there any chance the code will work on OpenBSD 6.7 on Sparc64?

GitMensch commented 4 years ago

@an-gril Can you please edit your post, surrounding any output / code / log part by ~~~? That's a bit hard to read... and maybe attach config.log.

I have fixed quite a lot of missing tools

... what have you fixed how?

To the second question: Do you have postgresql working on OpenBSD 6.7 Sparc64?

davidrosee commented 3 years ago

I had the same error, after installing glibc and glibc-devel it worked

GitMensch commented 3 years ago

Same issue as #10 (see touch workaround there), will be fixed with #22.