[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Build Result: rblcheck on development



Oliver Falk wrote:
On 06/30/2005 10:29 PM, buildsys fedoraproject org wrote:

Build of rblcheck on development failed to complete on one or more archs.

> Please see logs at:

http://extras64.linux.duke.edu/failed/development/rblcheck


I'm a bit confused because of this. rblcheck uses libresolv, which is part of glibc, so it should be installed on extras64, shouldn't it? :-/

The error is here:
[ ... ]
checking for res_query... no
checking for res_query in -lresolv... no
checking for res_query in -lbind... no
configure: error: cannot locate res_query function
error: Bad exit status from /var/tmp/rpm-tmp.88683 (%build)
[ ... ]

I have no non-i386 machine (except alphas) available to test this package, so might someone have a look at this please...

This is a common problem for packages that use res_query in libresolv. On x64_64 and possibly other architectures, res_query is defined as a macro in <resolv.h>, and unless you include that header file in configure test for res_query, the macro won't get picked up, the actual name of the function won't be used and hence the test will fail at link time.


Attached patch should fix it.

Paul.
--- rblcheck-1.5/configure	2005-07-01 10:50:36.000000000 +0100
+++ rblcheck-1.5/configure	2005-07-01 10:57:05.000000000 +0100
@@ -1529,13 +1529,12 @@
 cat > conftest.$ac_ext <<EOF
 #line 1531 "configure"
 #include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char res_query();
+
+/* Include <resolv.h> to get macro definition for res_query */
+#include <resolv.h>
 
 int main() {
-res_query()
+res_query("",0,0,"",0)
 ; return 0; }
 EOF
 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]