help-libidn
[Top][All Lists]
Advanced

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

Re: libidn-1.30: Test failure on NetBSD


From: Simon Josefsson
Subject: Re: libidn-1.30: Test failure on NetBSD
Date: Wed, 08 Jul 2015 22:24:22 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux)

Thomas Klausner <address@hidden> writes:

> Hi!
>
> lib/gltests/test-localename.c from libidn-1.30 fails to build on NetBSD:
>
>   CCLD     test-localename
> test-localename.o: In function `test_locale_name_thread':
> test-localename.c:(.text+0x23): undefined reference to `uselocale'
> test-localename.c:(.text+0x73): undefined reference to `uselocale'
> test-localename.c:(.text+0x109): undefined reference to `uselocale'
> test-localename.c:(.text+0x191): undefined reference to `uselocale'
> test-localename.c:(.text+0x1ce): undefined reference to `uselocale'
> test-localename.o:test-localename.c:(.text+0x27c): more undefined references 
> to `uselocale' follow
> *** Error code 1
>
> The configure script already checks for this function, but the result
> is ignored (from config.h):
>
> /* Define to 1 if you have the `uselocale' function. */
> /* #undef HAVE_USELOCALE */
>
> Please do not reference uselocale() on systems where it doesn't exist.

Hello Thomas.  Thanks for the report.

I cannot reproduce this.  On my NetBSD 6.1.4 (a virtual machine
downloaded from http://pretest.nongnu.org/), which doesn't have
uselocale either, it builds fine.

The lib/gltests/test-localename.c code should use the HAVE_NEWLOCALE
#define to check whether it should call uselocale or not, and on my
NetBSD system config.h correctly have this:

/* #undef HAVE_NEWLOCALE */

You will have to debug a bit more, or give me some way of reproducing
it.  Also, I'm currently in the process of releasing 1.31 so please try
that version before debugging anything.

/Simon

Attachment: signature.asc
Description: PGP signature


reply via email to

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