Details
-
Task
-
Resolution: Done
-
Medium
-
None
Description
Hello,
I have been trying to build common-api/c-poc on https://go.genivi.org/ - see related TOOL-51
As a first step I followed the README.adoc trying to build the sources inside a clean development environment.
I used a Docker container based on Ubuntu 16.04 (development branch) as it includes systemd 229:
$ docker pull ubuntu:16.04 && docker run -ti ubuntu:16.04
Then logged as root@container type the following commands to prepare the build environment:
# apt-get update && apt-get -y dist-upgrade # apt-get -y install autoconf build-essential git libtool make # apt-get -y install libsystemd-dev # id build || useradd -m build # su - build
Now logged as build@container type the following commands to build common-api-c:
$ git clone git://git.projects.genivi.org/common-api/c-poc.git
$ cd c-poc
$ autoreconf -i && ./configure && make && sudo make install
Unfortunately the ./configure step fails with the following error
build@41658b8681c3:~/c-poc$ autoreconf -i && ./configure && make && sudo make install libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. ... checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no ./configure: line 12083: syntax error near unexpected token `LIBSYSTEMD,' ./configure: line 12083: `PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd >= 219)' build@41658b8681c3:~/c-poc$
Notice that libsystemd seems installed correctly:
build@41658b8681c3:~$ dpkg -l libsystemd-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==========================-==================-==================-========================================================== ii libsystemd-dev:amd64 229-1ubuntu2 amd64 systemd utility library - development files build@41658b8681c3:~$