<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi John,<br>
<br>
Thanks for confirming the issue on CentOS 6.6.<br>
<br>
<div class="moz-cite-prefix">On 06/22/2016 12:57 PM, John Dickinson
wrote:<br>
</div>
<blockquote
cite="mid:E7056C4C-B0DE-48AC-9E96-73519B77D614@sinodun.com"
type="cite">
<pre wrap="">On 21 Jun 2016, at 15:53, Robert Groenenberg wrote:
</pre>
<blockquote type="cite">
<pre wrap="">...</pre>
</blockquote>
</blockquote>
<blockquote
cite="mid:E7056C4C-B0DE-48AC-9E96-73519B77D614@sinodun.com"
type="cite">
<blockquote type="cite">
<pre wrap="">*[rgr@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:
</pre>
<blockquote type="cite">
<pre wrap="">if test "x$have_libcheck" = x1; then
fi
</pre>
</blockquote>
<pre wrap="">(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
</pre>
<blockquote type="cite">
<pre wrap="">if test "x$have_libcheck" = x1; then
echo Getdns rocks
fi
</pre>
</blockquote>
<pre wrap="">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
_______________________________________________
spec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:spec@getdnsapi.net">spec@getdnsapi.net</a>
</pre>
</blockquote>
<pre wrap="">
The if clause should look like this
if test "x$have_libcheck" = x1; then :
fi
Note the extra : or do nothing command.
I see the same on Centos 6.6 but it works fine on CentOS 7. So I guess there is something wrong with /bin/sh or autoconf on 6.6
</pre>
</blockquote>
I found that the EPEL repository provides a version 2.68 of autconf
for CentOS 6 (autoconf268), so I gave that a try with good results:
both the empty if clause and the missing PACKAGE_URL are fixed.<br>
configure.ac currently wants 2.56 as minimum for autoconf, this
clearly needs to be increased to something higher than 2.63
(standard CentOS 6). It might work with a version between 2.63 and
2.68, but at least 2.68 works.<br>
I'll make a patch for that.<br>
<br>
Kind regards,<br>
Robert<br>
<blockquote
cite="mid:E7056C4C-B0DE-48AC-9E96-73519B77D614@sinodun.com"
type="cite">
<pre wrap="">
regards
John
John Dickinson
<a class="moz-txt-link-freetext" href="http://sinodun.com">http://sinodun.com</a>
Sinodun Internet Technologies Ltd.
Magdalen Centre
Oxford Science Park
Robert Robinson Avenue
Oxford OX4 4GA
U.K.</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
spec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:spec@getdnsapi.net">spec@getdnsapi.net</a></pre>
</blockquote>
<br>
<br>
</body>
</html>