Upgrade to newest Gnulib to help relocatable-prog on Mac OS X. 20110816030503/pspp 20110817030502/pspp 20110818030503/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 16 Aug 2011 05:39:53 +0000 (22:39 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 16 Aug 2011 05:52:00 +0000 (22:52 -0700)
--enable-relocatable currently fails on Mac OS X due to a link
error related to symbols that Gnulib is supposed to replace.
I see that Gnulib has the following commits, not previously in
PSPP, that mention related changes:

357d319 relocatable-lib: Move AC_LIBOBJ invocations to module description.
c2d8c01 relocatable-prog: Move AC_LIBOBJ invocations to module description.
325f131 relocatable-prog-wrapper: Fix possible link error.
886f850 relocatable-prog-wrapper: Assume strerror() exists.
02d4f86 relocatable-prog-wrapper: Update after module 'areadlink' changed.
d14f18b relocatable-prog-wrapper: Update after module 'areadlink' changed.
69c99f3 * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
ef11bf4 * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10d90c8 * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4e51bc9 unictype/property-byname: Reduce the number of load-time relocations.
fb6aa6a relocatable-prog: fix link error

This commit updates PSPP to capture those changes.  It also
makes the changes recommended by Gnulib's NEWS.

README.Git
src/data/file-name.c
src/libpspp/cast.h

index b8cc4207cec19dc69f177fb44b197207d2c2ec2e..b437237ca23560592d487faba9ce4c667d4e2f59 100644 (file)
@@ -34,14 +34,18 @@ This version of PSPP should work with the Gnulib commit shown below.
 Gnulib does not maintain a stable API or ABI, so it is possible that
 PSPP will not work with older or newer versions of Gnulib.
 
-  commit a38e4bbf37c4a77ea65f548dfcf590cf23e73d7e
-  Author: Bruno Haible <bruno@clisp.org>
-  Date:   Sun Feb 13 18:04:55 2011 +0100
-
-      mbsinit: Don't crash for a NULL argument.
-
-      * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
-      * tests/test-mbsinit.c (mbsinit): Check this behaviour.
+  commit fb6aa6ad7dd950729f4e3349d89d4ad82761af61
+  Author: Ben Pfaff <blp@cs.stanford.edu>
+  Date:   Mon Aug 15 22:33:25 2011 -0700
+
+      relocatable-prog: fix link error
+
+      * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
+      invoke AC_LIBOBJ([relocatable]).  This invocation was previously
+      in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
+      into modules/relocatable-lib without noticing that
+      modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
+      also needs to build relocatable.c.
 
 To clone Gnulib into a directory named "gnulib" using Git, and then
 check out this particular commit, run these commands:
index 2988d50295b073482b3bee10f274834a56bec6d0..5e4080b11f22ffa463f4bc0264b68de2736abd25 100644 (file)
@@ -33,6 +33,7 @@
 #include "libpspp/version.h"
 
 #include "gl/dirname.h"
+#include "gl/dosname.h"
 #include "gl/intprops.h"
 #include "gl/minmax.h"
 #include "gl/relocatable.h"
index 00e42d6603cc68963f498c6d5ce0ab780c1b19f6..802698da23ae2fcca48c158d464b4efd8b34eedb 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    not yet carefully examined the situation, or if you are not sure.
    Use CHAR_CAST if you are convinced that this is actually a correct cast. */
 #define CHAR_CAST(TYPE, POINTER)                                \
-        ((void) verify_true (sizeof (*(POINTER)) == 1),         \
-         (void) (sizeof (*(POINTER) + 1)),                      \
-         (void) verify_true (sizeof (*(TYPE) NULL) == 1),       \
-         (void) (sizeof (*(TYPE) NULL + 1)),                    \
-         (TYPE) (POINTER))
+  ((void) verify_expr (sizeof (*(POINTER)) == 1, 1),            \
+   (void) (sizeof (*(POINTER) + 1)),                            \
+   (void) verify_expr (sizeof (*(TYPE) NULL) == 1, 1),          \
+   (void) (sizeof (*(TYPE) NULL + 1)),                          \
+   (TYPE) (POINTER))
 #define CHAR_CAST_BUG(TYPE, POINTER) CHAR_CAST(TYPE, POINTER)
 
 /* Given POINTER, a pointer to the given MEMBER within structure