help-libidn
[Top][All Lists]
Advanced

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

Re: libidn 1.24


From: Simon Josefsson
Subject: Re: libidn 1.24
Date: Wed, 04 Jan 2012 16:54:15 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Hi Simon,
>
>> http://daily.josefsson.org/libidn/libidn-1.24.tar.gz
>
> Test results (much better than the 1.23 test results [1]):

Thank you for testing Bruno!

> FAIL: test-init.sh
>
> This was fixed in gnulib today.

Are you talking about 464f9e7b?  That patch was already in the snapshot.
I didn't see any other relevant patch, but I didn't look exhaustively.

> * mingw with MSVC 9 as compiler
>
> Link failure:
>
>   CCLD   libidn.la
> cl : command line warning D9002 : ignoring unknown option "--version-
> script=./libidn.map"
> cl : Befehlszeile warning D9002 : ignoring unknown option "-dll"
> LINK : fatal error LNK1181: cannot open input file "ink.lib"
> make[2]: *** [libidn.la] Error 2

I don't have that environment, but can you test whether applying this
patch to gnulib and running

rm -rf m && ./gnulib-tool --create-testdir --dir m lib-symbol-versions && cd m 
&& autoreconf && ./configure

helps?  It is a bit weird approach, but simple.

/Simon

diff --git a/m4/ld-version-script.m4 b/m4/ld-version-script.m4
index fd8c043..5ed93ef 100644
--- a/m4/ld-version-script.m4
+++ b/m4/ld-version-script.m4
@@ -1,4 +1,4 @@
-# ld-version-script.m4 serial 2
+# ld-version-script.m4 serial 3
 dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -26,6 +26,12 @@ AC_DEFUN([gl_LD_VERSION_SCRIPT],
     save_LDFLAGS="$LDFLAGS"
     LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
     cat > conftest.map <<EOF
+foo
+EOF
+    AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
+                   [accepts_syntax_errors=yes], [accepts_syntax_errors=no])
+    if test "$accepts_syntax_errors" = no; then
+      cat > conftest.map <<EOF
 VERS_1 {
         global: sym;
 };
@@ -34,8 +40,11 @@ VERS_2 {
         global: sym;
 } VERS_1;
 EOF
-    AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
-                   [have_ld_version_script=yes], [have_ld_version_script=no])
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
+                     [have_ld_version_script=yes], [have_ld_version_script=no])
+    else
+      have_ld_version_script=no
+    fi
     rm -f conftest.map
     LDFLAGS="$save_LDFLAGS"
     AC_MSG_RESULT($have_ld_version_script)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]