[unixODBC-dev] autoheader missing template WITHOUT_RTLD_GROUP

Stefan Radman Stefan.Radman at CTBTO.ORG
Tue Mar 22 08:49:23 GMT 2005


Hi Guys,

Using autoconf 2.57 when trying to run "autoreconf" on a freshly checked
out copy of the CVS, autoheader complains in ./libltdl:
================
-bash-2.05b$ autoreconf
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: missing template: WITHOUT_RTLD_GROUP
Use AC_DEFINE([WITHOUT_RTLD_GROUP], [], [Description])autoreconf:
/usr/bin/autoheader failed with exit status: 1
=================

Found 2 ways to make it work again:

1) OLD WAY:
Index: acconfig.h
===================================================================
RCS file: /cvsroot/unixodbc/unixODBC/libltdl/acconfig.h,v
retrieving revision 1.2
diff -u -r1.2 acconfig.h
--- acconfig.h  3 Apr 2002 23:22:50 -0000       1.2
+++ acconfig.h  22 Mar 2005 08:40:06 -0000
@@ -10,3 +10,6 @@

 /* Define if you have the shl_load function.  */
 #undef HAVE_SHL_LOAD
+
+/* Define to not build with RTDL_GROUP passed to dlopen */
+#undef WITHOUT_RTDL_GROUP

2) NEW WAY (might not work with older autoconf versions)
Index: configure.in
===================================================================
RCS file: /cvsroot/unixodbc/unixODBC/libltdl/configure.in,v
retrieving revision 1.5
diff -u -r1.5 configure.in
--- configure.in        30 Mar 2004 15:39:20 -0000      1.5
+++ configure.in        22 Mar 2005 08:41:03 -0000
@@ -46,7 +46,8 @@
   AC_MSG_RESULT( yes )
 else
   AC_MSG_RESULT( no )
-  AC_DEFINE(WITHOUT_RTLD_GROUP)
+  AC_DEFINE([WITHOUT_RTLD_GROUP],[],
+    [build without RTDL_GROUP passed to dlopen])
 fi

 AC_LIB_LTDL


Choose whichever you think breaks less ;-)

Cheers
Stefan




More information about the unixODBC-dev mailing list