reverted part of the changes from Sebastian Wilhelmi (1998-10-20). don't
authorTim Janik <timj@gtk.org>
Wed, 21 Oct 1998 18:04:47 +0000 (18:04 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 21 Oct 1998 18:04:47 +0000 (18:04 +0000)
Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>

        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
        from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
        behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
        changed the return value from (!f2 && f1) to (!f2 || f1) so we default
        to not needing an underscore. reverted the extra plugin.c building,
        because .lo files are not ELF libraries, this can't work. This needs
        further investigation on Solaris...

Wed Oct 21 19:58:27 1998  Tim Janik  <timj@gtk.org>

        * gmodule.c (g_module_symbol): fixed a string pointer bug that could
        cause garbage error messages from g_module_symbol() for systems that
        NEED_USCORE.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gmodule/ChangeLog
gmodule/gmodule.c

index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index db364d42ae950acf73f4fe7be01152455aa0ef7e..e4a7a34fcf14b834bd8b64a81cb79fa09879d759 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
+       from Sebastian Wilhelmi (1998-10-20). don't specify a specific loading
+       behaviour (i.e. RTLD_NOW) when we are not sure whether it is supplied.
+       changed the return value from (!f2 && f1) to (!f2 || f1) so we default
+       to not needing an underscore. reverted the extra plugin.c building,
+       because .lo files are not ELF libraries, this can't work. This needs
+       further investigation on Solaris...
+
 Wed Oct 21 17:03:05 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index d4235c2a392d8ce40d8d9b68cb5260cdd21ff574..e840ba28ae5925dac818b388c5b00382fd6b4cbe 100644 (file)
@@ -433,17 +433,16 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
 dnl *** check whether we need preceeding underscores
        AC_MSG_CHECKING(for preceeding underscore in symbols)
        AC_CACHE_VAL(glib_cv_uscore,[
-               echo "int glib_underscore_test (void) { return 42; }" >plugin.c
-               ./libtool --mode=compile $CC -c plugin.c >/dev/null 2>&1
                AC_TRY_RUN([
                #include <dlfcn.h>
+                int glib_underscore_test (void) { return 42; }
                int main() {
                  void *f1 = (void*)0, *f2 = (void*)0, *handle;
-                 handle = dlopen ("./plugin.lo", RTLD_NOW );
+                 handle = dlopen ((void*)0, 0);
                  if (handle) {
                    f1 = dlsym (handle, "glib_underscore_test");
                    f2 = dlsym (handle, "_glib_underscore_test");
-                 } return (!f2 && f1);
+                 } return (!f2 || f1);
                }],     
                        glib_cv_uscore=yes,     
                        glib_cv_uscore=no,
index 07493b40b5fd70bf625fa3aaf6181569ef8485ac..fecf1d99c56f31f58522dd34e785165203b6468e 100644 (file)
@@ -1,3 +1,9 @@
+Wed Oct 21 19:58:27 1998  Tim Janik  <timj@gtk.org>
+
+       * gmodule.c (g_module_symbol): fixed a string pointer bug that could
+       cause garbage error messages from g_module_symbol() for systems that
+       NEED_USCORE.
+
 Mon Sep 21 01:54:48 1998  Tim Janik  <timj@gtk.org>
 
        * gmodule.h: 
index 17133ffbe82eeb26e2a88fa691c04e52a8d48ef3..bb00ddef255df1f016de7e414bd6a20804f78650 100644 (file)
@@ -319,9 +319,13 @@ g_module_symbol (GModule   *module,
   g_return_val_if_fail (symbol != NULL, FALSE);
   
 #ifdef G_MODULE_NEED_USCORE
-  symbol_name = g_strconcat ("_", symbol_name, NULL);
-  *symbol = _g_module_symbol (module->handle, symbol_name);
-  g_free (symbol_name);
+  {
+    gchar *name;
+
+    name = g_strconcat ("_", symbol_name, NULL);
+    *symbol = _g_module_symbol (module->handle, name);
+    g_free (name);
+  }
 #else  /* !G_MODULE_NEED_USCORE */
   *symbol = _g_module_symbol (module->handle, symbol_name);
 #endif /* !G_MODULE_NEED_USCORE */