[getdns-api] Building getdns on CentOS 6.6 from git

Robert Groenenberg robert.groenenberg at broadforward.com
Tue Jun 21 16:53:21 CEST 2016


When building getdns fresh from Git on CentOS 6.6 I run in a few issues. 
I followed the instructions in README.md, INSTALL and 
project-doc/release-procedure.txt, but I can't make it build without 
some manual patches. So probably I'm missing some steps.

Here's what happens:

*[rgr at henry ***[:] *t]$ git clone https://github.com/getdnsapi/getdns.git*
... (all Ok)
*[rgr at henry [:] t]$ cd getdns**
**[rgr at henry [:develop] getdns]$ libtoolize -ci*
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
*[rgr at henry [:develop] getdns]$ autoreconf -fi*
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
*[rgr at henry [:develop] getdns]$ ./configure --with-libevent=/usr/local
*...
checking for u_char... yes
checking for fcntl... yes
checking for ioctlsocket... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CHECK... yes
./configure: line 16761: syntax error near unexpected token `fi'
./configure: line 16761: `fi'

The offending line is an empty if:
> if test "x$have_libcheck" = x1; then
>
> fi
(there are a few more of these). I'm no m4 expert, so I don't get why 
configure is generated like this.
Changing this into
> if test "x$have_libcheck" = x1; then
> echo Getdns rocks
> fi
makes configure run without errors.

The 2nd problem is that PACKAGE_URL is missing from the generated 
src/config.h. After adding that manually things compile and work fine.


So apparently something goes wrong in the autoreconf area. I have:
- libtoolize (GNU libtool) 2.2.6b
- autoreconf (GNU Autoconf) 2.63

Any hints would be appreciated.

Thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://getdnsapi.net/pipermail/spec/attachments/20160621/49ac30e3/attachment.html>


More information about the spec mailing list