Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automake based build fails on OSX with brew installed tools #19

Open
ClausKlein opened this issue Nov 19, 2021 · 2 comments
Open

automake based build fails on OSX with brew installed tools #19

ClausKlein opened this issue Nov 19, 2021 · 2 comments

Comments

@ClausKlein
Copy link

bash-3.2$ ./build_src.sh 
~/Workspace/OSSIE/core-framework/redhawk/src ~/Workspace/OSSIE/core-framework/redhawk
./reconf: line 23: libtoolize: command not found
configure.ac:271: warning: macro 'AM_PATH_CPPUNIT' not found in library
configure.ac:50: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:50: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
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/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude/ossie.m4:25: OSSIE_OSSIEHOME is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
acinclude/ossie.m4:64: OSSIE_OSSIEHOME_AS_PREFIX is expanded from...
configure.ac:50: the top level
configure.ac:51: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:51: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
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/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude/ossie.m4:83: OSSIE_SDRROOT_IGNORE_PREFIX is expanded from...
configure.ac:51: the top level
configure.ac:56: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:56: You should run autoupdate.
aclocal.m4:121: AC_PROG_LIBTOOL is expanded from...
configure.ac:56: the top level
acinclude/unitdir.m4:2: warning: The macro `AC_HELP_STRING' is obsolete.
acinclude/unitdir.m4:2: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
acinclude/unitdir.m4:2: the top level
acinclude/testdir.m4:2: warning: The macro `AC_HELP_STRING' is obsolete.
acinclude/testdir.m4:2: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
acinclude/testdir.m4:2: the top level
configure.ac:149: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:149: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
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/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude/ossie.m4:167: OSSIE_PYTHON_INSTALL_SCHEME is expanded from...
configure.ac:149: the top level
configure.ac:215: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:215: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
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/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude/ax_cxx_gcc_abi_demangle.m4:28: AX_CXX_GCC_ABI_DEMANGLE is expanded from...
configure.ac:215: the top level
configure.ac:215: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:215: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
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/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude/ax_cxx_gcc_abi_demangle.m4:28: AX_CXX_GCC_ABI_DEMANGLE is expanded from...
configure.ac:215: the top level
configure.ac:271: error: possibly undefined macro: AM_PATH_CPPUNIT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:56: installing './compile'
configure.ac:56: installing './config.guess'
configure.ac:56: installing './config.sub'
configure.ac:25: installing './install-sh'
configure.ac:56: error: required file './ltmain.sh' not found
configure.ac:25: installing './missing'
base/framework/Makefile.am: installing './depcomp'
omnijni/src/python/omnijni/Makefile.am:23: installing './py-compile'
parallel-tests: installing './test-driver'
./reconf: line 32: libtoolize: command not found
configure.ac:56: error: required file './ltmain.sh' not found
configure: error: cannot find required auxiliary files: ltmain.sh
make: *** No targets specified and no makefile found.  Stop.
~/Workspace/OSSIE/core-framework/redhawk
bash-3.2$ 
@ClausKlein
Copy link
Author

With some hacks it work a little:

bash-3.2$ ls -lrta l*
lrwxr-xr-x 1 clausklein staff 49 19 Nov 11:05 libtoolize -> /usr/local/Cellar/libtool/2.4.6_4/bin/glibtoolize
lrwxr-xr-x 1 clausklein staff 46 19 Nov 11:07 libtool -> /usr/local/Cellar/libtool/2.4.6_4/bin/glibtool
lrwxr-xr-x 1 clausklein staff 67 19 Nov 12:29 ltmain.sh -> /usr/local/Cellar/libtool/2.4.6_4/share/libtool/build-aux/ltmain.sh
bash-3.2$

bash-3.2$ git diff build.sh *.ac
diff --git a/redhawk/src/build.sh b/redhawk/src/build.sh
index 5700b383..4c7ea205 100755
--- a/redhawk/src/build.sh
+++ b/redhawk/src/build.sh
@@ -22,13 +22,16 @@
 config_ac='configure.ac'
 make_am='Makefile.am'
 makefile='Makefile'
+export XSD=`which xsd`
 
 if [ "$1" == "clean" ]; then
  make clean
 else
  if [[ $config_ac -nt $makefile || $make_am -nt $makefile ]]; then
+  set -x
   ./reconf
-  ./configure
+  ./configure -with-expat=/usr/local/Cellar/expat/2.4.1 --disable-java
+  # -with-expat-inc=`pkg-config expat --cflags` -with-expat-lib=`pkg-config expat --libs`
  fi
  make -j
  exit 0
diff --git a/redhawk/src/configure.ac b/redhawk/src/configure.ac
index 989cbb3f..47d409a0 100644
--- a/redhawk/src/configure.ac
+++ b/redhawk/src/configure.ac
@@ -113,14 +113,14 @@ if test x"$XSD" = xno ; then
        AC_MSG_ERROR([Required program 'xsdcxx' is missing.])
 fi
 # Get the XSD version
-AC_MSG_CHECKING([xsd version])
-xsd_version=`${XSD} version 2>&1 | head -n 1 | awk '{print $8}'`
-oldest_version=`echo -e "${xsd_version}\n3.3.0" | sort -t '.' -k 1,1 -k 2,2 -k 3,3 -k 4,4 -g | head -n 1`
-if test "x$oldest_version" != "x3.3.0"; then
-    AC_MSG_FAILURE([XSD version 3.3.0 required])
-else
-    AC_MSG_RESULT([$xsd_version])
-fi
+### AC_MSG_CHECKING([xsd version])
+### xsd_version=`${XSD} version 2>&1 | head -n 1 | awk '{print $8}'`
+### oldest_version=`echo -e "${xsd_version}\n3.3.0" | sort -t '.' -k 1,1 -k 2,2 -k 3,3 -k 4,4 -g | head -n 1`
+### if test "x$oldest_version" != "x3.3.0"; then
+###     AC_MSG_FAILURE([XSD version 3.3.0 required])
+### else
+###     AC_MSG_RESULT([$xsd_version])
+### fi
 AC_CHECK_HEADER([xsd/cxx/config.hxx], [], [AC_MSG_ERROR([missing XSD headers])])
 AC_CHECK_PROG([XMLCATALOG], [xmlcatalog], [xmlcatalog], [no])
 AM_CONDITIONAL(HAVE_XMLCATALOG, test $XMLCATALOG != "no")
@@ -268,7 +268,8 @@ if test "$HAVE_JAVASUPPORT" = yes; then
 fi
 
 # C++ unit testing support. May want to conditionally enable/disable this.
-AM_PATH_CPPUNIT(1.12.1)
+#XXX AM_PATH_CPPUNIT(1.12.1)
+
 AS_IF([test "x$HAVE_JAVASUPPORT" == "xyes"], [
   dnl Use RPM location hard-coded for now
   AC_SUBST([JUNIT_CLASSPATH], "/usr/share/java/junit4.jar")
(END)

@ClausKlein
Copy link
Author

But than i got this:

checking for Expat XML Parser headers in /usr/local/Cellar/expat/2.4.1/include... found
checking for Expat XML Parser libraries... found
checking for Expat XML Parser... yes
checking if Expat XML Parser version is >= 1.95.8... yes
checking for OMNIORB... yes
checking for OMNITHREAD... yes
checking for OMNIDYNAMIC... yes
checking for COS library... yes
checking for OMNICOS... yes
checking for omniidl... omniidl
checking for default IDL path... /usr/local/Cellar/omniorb/4.2.4_1/share/idl/omniORB
checking for xsdcxx... /usr/local/bin/xsd
checking for xsd/cxx/config.hxx... yes
checking for xmlcatalog... xmlcatalog
checking Enabling support for numa affinity processing... yes
checking for numa_available  in -lnuma... no
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for python install scheme... home
checking for LOG4CXX... yes
checking to see if tracing should be enabled... no
checking to see if domain persistence should be enabled... sqlite
checking for sqlite3.h... yes
checking for sqlite3_open in -lsqlite3... yes
checking whether make supports nested variables... (cached) yes
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/local/opt/python/libexec/bin/python
checking for python version... 3.9
checking for python platform... darwin
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.9/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages
checking for python module logging ... yes
checking for python module subprocess... yes
checking for python module omniORB... yes
checking for python module omniidl... no
configure: error: the python omniidl module is required
+ make -j
make: *** No targets specified and no makefile found.  Stop.
+ exit 0

@ClausKlein ClausKlein changed the title automate based build fails on OSX with brew automake based build fails on OSX with brew installed tools Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant