trusteddomainproject / OpenARC

Open source ARC implementation
BSD 2-Clause "Simplified" License
135 stars 45 forks source link

Problem during compiling #69

Closed wioxjk closed 6 years ago

wioxjk commented 7 years ago

Hi, Excuse me if this is not the correct forum, but I have a question regarding the installation of OpenARC

Ubuntu 14.04.5 LTS My steps: "git down" the openARC repo: git clone https://github.com/trusteddomainproject/OpenARC/

Running autoconf:

configure.ac:37: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:65: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:66: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:375: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:560: error: possibly undefined macro: AC_MSG_WARN

automake:

configure.ac:36: error: required directory ./build-aux does not exist
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:844: error: required file 'build-aux/config.guess' not found
configure.ac:844:   'automake --add-missing' can install 'config.guess'
configure.ac:844: error: required file 'build-aux/config.sub' not found
configure.ac:844:   'automake --add-missing' can install 'config.sub'
configure.ac:44: error: required file 'build-config.h.in' not found
libopenarc/Makefile.am:6: error: DEBUG does not appear in AM_CONDITIONAL
libopenarc/Makefile.am:17: error: ALL_SYMBOLS does not appear in AM_CONDITIONAL
libopenarc/Makefile.am:21: error: RPATH does not appear in AM_CONDITIONAL
libopenarc/Makefile.am:11: error: Libtool library used but 'LIBTOOL' is undefined
libopenarc/Makefile.am:11:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
libopenarc/Makefile.am:11:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
libopenarc/Makefile.am:11:   If 'LT_INIT' is in 'configure.ac', make sure
libopenarc/Makefile.am:11:   its definition is in aclocal's search path.
libopenarc/Makefile.am: error: required file 'build-aux/depcomp' not found
libopenarc/Makefile.am:   'automake --add-missing' can install 'depcomp'
/usr/share/automake-1.14/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.14/am/depend2.am:   The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.14/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.14/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.14/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.14/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.14/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.14/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
openarc/Makefile.am:4: error: DEBUG does not appear in AM_CONDITIONAL
openarc/Makefile.am:8: error: BUILD_FILTER does not appear in AM_CONDITIONAL

After that, I can see that "configure" is created. When I try to run it, I get the following: configure: error: cannot find install-sh, install.sh, or shtool in build-aux "."/build-aux

What is the recommended installation process?

wioxjk commented 7 years ago

Alright, I redownloaded it and did following: autoreconf -vi

It works alot better. I also noticed that the package libbsd-dev needs to be installed

Also got this:

checking for sendmail... /usr/sbin/sendmail
./configure: line 15055: syntax error near unexpected token `LIBCRYPTO,'
./configure: line 15055: `  PKG_CHECK_MODULES(LIBCRYPTO, openssl >= 0.9.7,'

I am unable to continue after this

AntiFreeze commented 6 years ago

Looks like you're missing pkg-config

For reference, what I use on a clean Ubuntu install:

# apt-get -u install autotools-dev gcc autoconf automake libtool libssl-dev libbsd-dev ssl-cert pkg-config libmilter-dev mailutils

wioxjk commented 6 years ago

Thank for the answer. pkg-config is installed. (0.26), and all other packages mention is installed too.

wioxjk commented 6 years ago

Update, This does work in Ubuntu 16.04.3

Also, the latest build downloaded from github does not have the problem that the original issue was. I consider this solved.