mittinatten / freesasa

C-library for calculating Solvent Accessible Surface Areas
http://freesasa.github.io/
MIT License
103 stars 37 forks source link

`autoreconf -i` not working #88

Closed OWissett closed 1 year ago

OWissett commented 1 year ago

I am attempting to compile FreeSASA from source in a dev container (Ubuntu Jammy).

I have installed the listed dependencies.

When I run autoreconf -i, I get:

configure.ac:42: warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC
configure.ac:45: warning: ac_ext=c
configure.ac:45: ac_cpp='$CPP $CPPFLAGS'
configure.ac:45: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
configure.ac:45: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
configure.ac:45: ac_compiler_gnu=$ac_cv_c_compiler_gnu
configure.ac:45: if test -n "$ac_tool_prefix"; then
configure.ac:45:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
configure.ac:45: set dummy ${ac_tool_prefix}gcc; ac_word=$2
configure.ac:45: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
configure.ac:45: printf %s "checking for $ac_word... " >&6; }
configure.ac:45: if test ${ac_cv_prog_CC+y}
configure.ac:45: then :
configure.ac:45:   printf %s "(cached) " >&6
configure.ac:45: else $as_nop
configure.ac:45:   if test -n "$CC"; then
configure.ac:45:   ac_cv_prog_CC="$CC" # Let the user override the test.
configure.ac:45: else
configure.ac:45: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
configure.ac:45: for as_dir in $PATH
configure.ac:45: do
configure.ac:45:   IFS=$as_save_IFS
configure.ac:45:   case $as_dir in #(((
configure.ac:45:     '' is m4_require'd but not m4_defun'd
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/programs.m4:41: _AC_CHECK_PROG is expanded from...
./lib/autoconf/programs.m4:101: AC_CHECK_PROG is expanded from...
./lib/autoconf/programs.m4:221: AC_CHECK_TOOL is expanded from...
./lib/autoconf/c.m4:452: AC_PROG_CC is expanded from...
configure.ac:45: the top level
configure.ac:126: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
configure.ac:126: the top level
configure.ac:11: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:71: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:90: error: possibly undefined macro: AC_SUBST
configure.ac:92: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: error: /usr/bin/autoconf failed with exit status: 1
mittinatten commented 1 year ago

It looks like autoconf can't find some of it's dependencies. Could it be that you don't have pkg-config installed? https://stackoverflow.com/questions/8811381/possibly-undefined-macro-ac-msg-error?noredirect=1

OWissett commented 1 year ago

I have recreated the container, and it seems to be fine now.

I think you were correct.