From MAILER-DAEMON Sun Apr 04 03:42:02 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NyKT1-0000Yn-Le
	for mharc-libtool-commit@gnu.org; Sun, 04 Apr 2010 03:42:00 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NyKSx-0000XP-Sf
	for libtool-commit@gnu.org; Sun, 04 Apr 2010 03:41:56 -0400
Received: from [140.186.70.92] (port=56665 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NyKSt-0000W2-Nl
	for libtool-commit@gnu.org; Sun, 04 Apr 2010 03:41:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NyKSs-0002nH-AK
	for libtool-commit@gnu.org; Sun, 04 Apr 2010 03:41:51 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:57715
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NyKSs-0002nA-1N
	for libtool-commit@gnu.org; Sun, 04 Apr 2010 03:41:50 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NyKSr-0004Jg-P0
	for libtool-commit@gnu.org; Sun, 04 Apr 2010 07:41:49 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NyKSr-0000Fg-DB
	for libtool-commit@gnu.org; Sun, 04 Apr 2010 07:41:49 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: d7e8e16dd075d1ceb92b36f72d32cbc2c2f16f07
X-Git-Newrev: 519bf919cc98013db7f801fe9697421154db9b38
Message-Id: <E1NyKSr-0000Fg-DB@vcs-noshell.in.savannah.gnu.org>
Date: Sun, 04 Apr 2010 07:41:49 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-201-g519bf91
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Apr 2010 07:41:57 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  519bf919cc98013db7f801fe9697421154db9b38 (commit)
      from  d7e8e16dd075d1ceb92b36f72d32cbc2c2f16f07 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 519bf919cc98013db7f801fe9697421154db9b38
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Apr 4 09:32:56 2010 +0200

    Use linker_flags not compiler_flags with $LD.
    
    * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux]
    <archive_cmds, archive_expsym_cmds>: With xlf and bgxlf
    compilers, when linking with $LD, use $linker_flags not
    $compiler_flags.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |    8 ++++++++
 libltdl/m4/libtool.m4 |    4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0d94edf..4e274ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Use linker_flags not compiler_flags with $LD.
+	* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux]
+	<archive_cmds, archive_expsym_cmds>: With xlf and bgxlf
+	compilers, when linking with $LD, use $linker_flags not
+	$compiler_flags.
+
 2010-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Add FAQ, and FAQ entry for flags stripped at library link time.
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index d74038f..5e0bba7 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -4502,12 +4502,12 @@ _LT_EOF
 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 	  if test "x$supports_anon_versioning" = xyes; then
 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 	      echo "local: *; };" >> $output_objdir/$libname.ver~
-	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 	  fi
 	  ;;
 	esac


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Fri Apr 09 15:38:05 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1O0K1k-0006IU-Vs
	for mharc-libtool-commit@gnu.org; Fri, 09 Apr 2010 15:38:05 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1O0K1j-0006HT-7n
	for libtool-commit@gnu.org; Fri, 09 Apr 2010 15:38:03 -0400
Received: from [140.186.70.92] (port=56314 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1O0K1h-0006Gj-QL
	for libtool-commit@gnu.org; Fri, 09 Apr 2010 15:38:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1O0K1g-00021D-E7
	for libtool-commit@gnu.org; Fri, 09 Apr 2010 15:38:01 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:52782
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1O0K1g-000217-CG
	for libtool-commit@gnu.org; Fri, 09 Apr 2010 15:38:00 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1O0K1f-0007XS-Je
	for libtool-commit@gnu.org; Fri, 09 Apr 2010 19:37:59 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1O0K1f-0004sr-Gj
	for libtool-commit@gnu.org; Fri, 09 Apr 2010 19:37:59 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 519bf919cc98013db7f801fe9697421154db9b38
X-Git-Newrev: 3d0fc4870ee41712e43ca2a21936bbd46c78589a
Message-Id: <E1O0K1f-0004sr-Gj@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 09 Apr 2010 19:37:59 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-202-g3d0fc48
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Apr 2010 19:38:03 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  3d0fc4870ee41712e43ca2a21936bbd46c78589a (commit)
      from  519bf919cc98013db7f801fe9697421154db9b38 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3d0fc4870ee41712e43ca2a21936bbd46c78589a
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Apr 4 10:56:27 2010 +0200

    Fix incompatible struct declarations.
    
    * doc/libtool.texi (Dlpreopening): Remove broken documentation
    of lt_dlsymbol and lt_dlsymlist.  Document typedef lt_dlsymlist
    and symbol lt_preloaded_symbols according to the implementation.
    * tests/demo/dlmain.c (lt_symlist): Make struct anonymous ...
    (lt_dlsymlist): ... and typedef to this name.
    (lt_preloaded_symbols, main): Adjust.
    * tests/pdemo/longer_file_name_dlmain.c: Likewise.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                             |   11 +++++++++++
 doc/libtool.texi                      |   26 ++++++++++----------------
 tests/demo/dlmain.c                   |   11 ++++++-----
 tests/pdemo/longer_file_name_dlmain.c |   11 ++++++-----
 4 files changed, 33 insertions(+), 26 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4e274ea..84c0bc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-04-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Fix incompatible struct declarations.
+	* doc/libtool.texi (Dlpreopening): Remove broken documentation
+	of lt_dlsymbol and lt_dlsymlist.  Document typedef lt_dlsymlist
+	and symbol lt_preloaded_symbols according to the implementation.
+	* tests/demo/dlmain.c (lt_symlist): Make struct anonymous ...
+	(lt_dlsymlist): ... and typedef to this name.
+	(lt_preloaded_symbols, main): Adjust.
+	* tests/pdemo/longer_file_name_dlmain.c: Likewise.
+
 2010-04-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Use linker_flags not compiler_flags with $LD.
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 323bf4e..f73f5a7 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -3388,25 +3388,15 @@ you must declare the objects you want your application to dlopen by
 using the @option{-dlopen} or @option{-dlpreopen} flags when you link your
 program (@pxref{Link mode}).
 
-@deftypefn {Structure} {struct} lt_dlsymbol @{ @w{const char *@var{name};} @w{void *@var{address};} @}
+@deftp {Data Type} {lt_dlsymlist} typedef struct @
+  @{ @w{const char *@var{name};} @w{void *@var{address};} @} lt_dlsymlist
 The @var{name} attribute is a null-terminated character string of the
 symbol name, such as @code{"fprintf"}.  The @var{address} attribute is a
 generic pointer to the appropriate object, such as @code{&fprintf}.
-@end deftypefn
-
-@deftypefn {Structure} {struct} lt_dlsymlist @{ @w{const char *@var{originator};} @w{const lt_dlsymbol @var{symbols}[];} @}
-The @var{originator} attribute is a null-terminated character string,
-naming the compilation unit that @var{symbols} were preloaded on
-behalf of.  This is usually the basename of a library,
-@file{libltdl.la} has a corresponding @var{originator} value of
-@samp{libltdl}; if the @var{symbols} are for the benefit of the
-application proper, then @var{originator} is @samp{@@PROGRAM@@},
-though Libtool takes care of that detail if you use
-@samp{LTDL_SET_PRELOADED_SYMBOLS}.
-@end deftypefn
+@end deftp
 
-@deftypevar {const lt_dlsymlist *} lt_preloaded_symbols
-An array of @var{lt_symbol} structures, representing all the preloaded
+@deftypevar {const lt_dlsymlist } lt_preloaded_symbols[]
+An array of @var{lt_dlsymlist} structures, representing all the preloaded
 symbols linked into the program proper.  For each module
 @option{-dlpreopen}ed by the Libtool linked program
 there is an element with the @var{name} of the module and an @var{address}
@@ -3414,6 +3404,10 @@ of @code{0}, followed by all symbols exported from this file.
 For the executable itself the special name @samp{@@PROGRAM@@} is used.
 The last element of all has a @var{name} and @var{address} of
 @code{0}.
+
+To facilitate inclusion of symbol lists into libraries,
+@code{lt_preloaded_symbols} is @samp{#define}d to a suitably unique name
+in @file{ltdl.h}.
 @end deftypevar
 
 Some compilers may allow identifiers that are not valid in ANSI C, such
diff --git a/tests/demo/dlmain.c b/tests/demo/dlmain.c
index 0d42d88..c970998 100644
--- a/tests/demo/dlmain.c
+++ b/tests/demo/dlmain.c
@@ -1,6 +1,7 @@
 /* dlmain.c -- hello test program that uses simulated dynamic linking
 
-   Copyright (C) 1996-1999, 2004, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999, 2004, 2006, 2007, 2010 Free Software
+   Foundation, Inc.
 
    This file is part of GNU Libtool.
 
@@ -27,18 +28,18 @@ or obtained by writing to the Free Software Foundation, Inc.,
 
 #define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
 
-struct lt_symlist
+typedef struct
 {
   const char *name;
   lt_ptr_t address;
-};
+} lt_dlsymlist;
 
-extern const struct lt_symlist lt_preloaded_symbols[];
+extern const lt_dlsymlist lt_preloaded_symbols[];
 
 int
 main ()
 {
-  const struct lt_symlist *s;
+  const lt_dlsymlist *s;
   int (*pfoo)() = 0;
   int (*phello)() = 0;
   int *pnothing = 0;
diff --git a/tests/pdemo/longer_file_name_dlmain.c b/tests/pdemo/longer_file_name_dlmain.c
index fdb5526..ef1e4c5 100644
--- a/tests/pdemo/longer_file_name_dlmain.c
+++ b/tests/pdemo/longer_file_name_dlmain.c
@@ -1,6 +1,7 @@
 /* dlmain.c -- hello test program that uses simulated dynamic linking
 
-   Copyright (C) 1996-1999, 2004, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999, 2004, 2006, 2007, 2010 Free Software
+   Foundation, Inc.
 
    This file is part of GNU Libtool.
 
@@ -27,18 +28,18 @@ or obtained by writing to the Free Software Foundation, Inc.,
 
 #define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
 
-struct lt_symlist
+typedef struct
 {
   const char *name;
   lt_ptr_t address;
-};
+} lt_dlsymlist;
 
-extern const struct lt_symlist lt_preloaded_symbols[];
+extern const lt_dlsymlist lt_preloaded_symbols[];
 
 int
 main (int argc, char **argv)
 {
-  const struct lt_symlist *s;
+  const lt_dlsymlist *s;
   int (*pfoo)() = 0;
   int (*phello)() = 0;
   int *pnothing = 0;


hooks/post-receive
-- 
GNU Libtool



