I'm getting the following error when trying to build jzmq
https://github.com/nathanmarz/jzmq
Any idea what I'm missing here?
./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal -I config --force -I config
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:13: error: 'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/local/Cellar/automake/1.13.1/share/aclocal-1.13/obsolete-err.m4:14: AM_CONFIG_HEADER is expanded from...
configure.in:13: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
autogen.sh: error: autoreconf exited with status 0
Rename this file:
mv configure.in configure.ac
Now edit that file and change this line:
old:
AM_CONFIG_HEADER(src/config.hpp)
new:
AC_CONFIG_HEADER(src/config.hpp)
Related
I'm trying to build glibc 2.27 as a static library from sources on Ubuntu 18.04. This is the command I am using(after making a separate build directory for glibc):
$ git clone git://sourceware.org/git/glibc.git && cd glibc
$ git checkout release/2.27/master
$ cd ..
$ mkdir glibc-build && cd glibc-build
$ ../glibc/configure --enable-kernel=4.4 --disable-shared --enable-static --enable-static-nss --prefix=/usr
$ make
make results in this error:
cc1: fatal error: /home/parallels/glibc-build/libc-modules.h: No such file or directory
compilation terminated.
../Makerules:281: recipe for target '/home/parallels/glibc-build/ucontext_i.h' failed
make[2]: *** [/home/parallels/glibc-build/ucontext_i.h] Error 1
make[2]: Leaving directory '/home/parallels/glibc/csu'
Makefile:215: recipe for target 'csu/subdir_lib' failed
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/parallels/glibc'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
Full log for make
I am running Ubuntu 18.04 and am using the preinstalled versions of gcc and make.
This is a known issue:
Unable to build GLIBC with --disable-shared
In general, this is not a problem because a default build (without --disable-shared) builds both the static and dynamically linked version of the library, and make install DESTDIR=… installs both.
That file opensslv.h is requested by "make modules bzImage" when trying to compile a new kernel. I had previously done
$ sudo apt-get install update and
$ sudo apt-get install libcurl4-openssl-dev
$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
with no problems reported;
This is the error msg given by make modules bzImage after a few seconds:
(...)
HOSTCC scripts/sign-file
scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:556: recipe for target 'scripts' failed
make: *** [scripts] Error 2
I searched google for the error message; most answers indicate that I should install openssl-dev, which I did. I also searched here for the name of the missing file but answers were not helpful.
I am doing this on ubuntu 16.04, trying to install kernel version linux 4.4.53. Previous steps (installing libncurses5-dev, make menuconfig and make localconfig) gave no problem.
I am trying to install a program by cloning it with git. I am running in an Ubuntu 14.04.4 LTS. I get the source code correctly with "git clone" but autoreconf fails giving the following error:
xray#silvia-desktop:~/Software/Gitsrc/simput$ autoreconf --install --verbose
autoreconf2.50: Entering directory `.'
autoreconf2.50: configure.ac: not using Gettext
autoreconf2.50: running: aclocal
autoreconf2.50: configure.ac: tracing
autoreconf2.50: configure.ac: adding subdirectory extlib/cfitsio to autoreconf
autoreconf2.50: Entering directory `extlib/cfitsio'
autoreconf2.50: configure.in: not using Gettext
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf2.50: configure.in: tracing
autoreconf2.50: configure.in: not using Libtool
autoreconf2.50: running: /usr/bin/autoconf
configure.in:175: AC_PROG_CPP was called before AC_PROG_CC
autoconf: Undefined macros:
configure.in:11:AC_CONFIG_SRCDIR([fitscore.c])
configure.in:178: AC_MSG_NOTICE(cfitsio: == Fortran compiler search has been overridden)
configure.in:179: AC_MSG_NOTICE(cfitsio: == Cfitsio will be built without Fortran wrapper support)
configure.in:186: AC_MSG_NOTICE(cfitsio: == Adding wrapper support for GNU Fortran by default)
configure.in:226:AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void d( int , double) ]])],[PROTO=yes],[PROTO=no])dnl
configure.in:248: AC_LANG_PUSH([C])
configure.in:249: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],[c_has_option=yes],[c_has_option=no])
configure.in:250: AC_MSG_RESULT($c_has_option)
configure.in:251: AC_LANG_POP([])
configure.in:278: AC_LANG_PUSH([C])
configure.in:279: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],[c_has_option=yes],[c_has_option=no])
configure.in:280: AC_MSG_RESULT($c_has_option)
configure.in:281: AC_LANG_POP([])
configure.in:288: AC_DEFINE(_LARGEFILE_SOURCE)
configure.in:289: AC_DEFINE(_FILE_OFFSET_BITS,64)
configure.in:304: AC_DEFINE(_LARGEFILE_SOURCE)
configure.in:305: AC_DEFINE(_FILE_OFFSET_BITS,64)
configure.in:309: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>],
configure.in:311: AC_DEFINE(_LARGEFILE_SOURCE)
configure.in:312: AC_DEFINE(_FILE_OFFSET_BITS,64)
configure.in:313: AC_MSG_RESULT(yes)
configure.in:314: ],[AC_MSG_RESULT(no)])
configure.in:323: AC_DEFINE(_LARGEFILE_SOURCE)
configure.in:324: AC_DEFINE(_FILE_OFFSET_BITS,64)
configure.in:454:AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
configure.in:458:AC_DEFINE(HAVE_FTRUNCATE)
configure.in:459:AC_MSG_RESULT("yes")
configure.in:460:],[AC_MSG_RESULT("no") ])
configure.in:467:AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
configure.in:471:AC_DEFINE(HAVE_LONGLONG)
configure.in:472:AC_MSG_RESULT("yes")
configure.in:473:],[AC_MSG_RESULT("no") ])
configure.in:488:AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/ipc.h>
configure.in:497:AC_DEFINE(HAVE_SHMEM_SERVICES)
configure.in:499:AC_MSG_RESULT("yes")
configure.in:500:],[AC_MSG_RESULT("no") ])
configure.in:509:AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/fcntl.h>
configure.in:513:AC_DEFINE(HAVE_FLOCK_T)
configure.in:514:AC_MSG_RESULT("yes")
configure.in:515:],[AC_MSG_RESULT("no") ])
configure.in:519: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/flock.h>
configure.in:523: AC_DEFINE(HAVE_FLOCK_T)
configure.in:524: AC_MSG_RESULT("yes")
configure.in:525: ],[AC_MSG_RESULT("no") ])
configure.in:534:AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/ipc.h>
configure.in:53: AC_DEFINE(BUILD_HERA)
configure.in:540:AC_DEFINE(HAVE_UNION_SEMUN)
configure.in:541:AC_MSG_RESULT("yes")
configure.in:542:],[AC_MSG_RESULT("no") ])
configure.in:552: AC_DEFINE(HAVE_NET_SERVICES)
configure.in:561: AC_DEFINE(_REENTRANT)
configure.in:566:AC_CONFIG_FILES([Makefile])
configure.in:568:AC_CONFIG_FILES([cfitsio.pc])
configure.in:572:AC_MSG_RESULT([])
configure.in:573:AC_MSG_RESULT([ Congratulations, Makefile update was successful.])
configure.in:574:AC_MSG_RESULT([ You may want to run \"make\" now.])
configure.in:575:AC_MSG_RESULT([])
configure.in:64: AC_DEFINE(GSIFTP_FLAVOUR,1,[Define Globus Toolkit architecture])
configure.in:79: AC_DEFINE(HAVE_GSIFTP,1,[Define if you want Globus Toolkit gsiftp protocol support])
configure.in:93: AC_DEFINE(HAVE_BZIP2,1,[Define if you want bzip2 read support])
configure.in:98: AC_DEFINE(HAVE_BZIP2,1,[Define if you want bzip2 read support])
autoreconf2.50: /usr/bin/autoconf failed with exit status: 1
I have been searching in this site and others. I found that the problem may be related to an old version of libtool, or to not having it installed, but I have already check this and my libtool package is up to date. I aso have autotools updated.
An interesting point is that I have tryed to install it in a Debian I have installed in other computer in a virtual machine, and I get the same error, so it seems to be something related to an error I am committing maybe in system general configuration...
I have been discussing with a mate thas has no problem in the installation, and get this output when doing outoreconf:
lenovo:~/tmp/simput> autoreconf --install --verbose
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory extlib/cfitsio to autoreconf
autoreconf: Entering directory `extlib/cfitsio'
autoreconf: configure.in: not using Gettext
aclocal: warning: autoconf input should be named 'configure.ac', not
'configure.in'
autoreconf: configure.in: tracing
Any idea?
Thanks a lot!
Initially, i run the 'autoreconf -i' command on Ubuntu 18.04 and have:
autoreconf: /usr/bin/autoconf failed with exit status: 1
But after 'autoreconf -i' i do:
# ./autogen.sh
Makefile.am:8: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:8: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:8: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:8: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:8: its definition is in aclocal's search path.
Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1
It seems that the error 'autoconf' is resolved and goes to the error 'automake'.
I am trying to install mulval on my machine following this doc:
http://people.cis.ksu.edu/~xou/argus/software/mulval/readme.html
However, I am not exactly sure how to make changes to the path of XSB, dot and Mulval.
I get the following error when I try to run "make":
~/mulval$ make
(cd src/adapter; make; make install)
make[1]: Entering directory '/home/aditya/mulval/src/adapter'
javac GetCVEID.java -cp :/lib/dom4j-1.6.1.jar:/lib/jaxen-1.1.1.jar:/lib/mysql-connector-java-5.1.8-bin.jar
make[1]: javac: Command not found
Makefile:9: recipe for target 'GetCVEID.class' failed
make[1]: *** [GetCVEID.class] Error 127
make[1]: Leaving directory '/home/aditya/mulval/src/adapter'
make[1]: Entering directory '/home/aditya/mulval/src/adapter'
javac GetCVEID.java -cp :/lib/dom4j-1.6.1.jar:/lib/jaxen-1.1.1.jar:/lib/mysql-connector-java-5.1.8-bin.jar
make[1]: javac: Command not found
Makefile:9: recipe for target 'GetCVEID.class' failed
make[1]: *** [GetCVEID.class] Error 127
make[1]: Leaving directory '/home/aditya/mulval/src/adapter'
Makefile:6: recipe for target 'adapter' failed
make: *** [adapter] Error 2
Any help on getting this installation completed?
Thanks in advance!
Set your MULVALROOT env variable before make:
for instance: export MULVALROOT=/home/aditya/mulval
this error is related to javac, not installed properly:
"make[1]: javac: Command not found"
you can check the version with: javac -version
if not installed, install again with sudo apt install default-jdk
if you have other issues related to lex and/or bison later, install them too:
lex: sudo apt install flex
bison: sudo apt install bison
I'm trying to compile libbsd from source on Ubuntu 13.04. I'm using a toolchain to cross-compile, but automake is on the local machine. I have aclocal-1.13 in the PATH and everything, but I'm still getting this error. I've tried looking them up but can't get any lead. What's going on here?
<...>
config.status: executing libtool commands
CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/bash /home/me/libbsd/build-aux/missing aclocal-1.13 -I m4
error: cannot get project version.
configure.ac:9: error: AC_INIT should be called with package and version arguments
/usr/share/aclocal-1.13/init.m4:23: AM_INIT_AUTOMAKE is expanded from...
configure.ac:9: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.13: error: echo failed with exit status: 1
make: *** [../aclocal.m4] Error 1
Any help is greatly appreciated.
The error here is configure.ac:9: error: AC_INIT should be called with package and version arguments.
You are getting this error because on line 9 of your configure.ac you are not passing package and version arguments to AC_INIT.
The exact information can be found here: https://www.gnu.org/software/automake/manual/automake.html#Public-Macros
Namely,
If your configure.ac has:
AC_INIT([src/foo.c])
AM_INIT_AUTOMAKE([mumble], [1.5])
You should correct it as follows:
AC_INIT([mumble], [1.5])
AC_CONFIG_SRCDIR([src/foo.c])
AM_INIT_AUTOMAKE
Although the other notes around it are important too imho.