help-libidn
[Top][All Lists]
Advanced

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

Re: libidn fails when builddir!=srcdir and wchar.h is unavailable


From: Simon Josefsson
Subject: Re: libidn fails when builddir!=srcdir and wchar.h is unavailable
Date: Tue, 19 Feb 2008 22:02:22 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Mike Frysinger <address@hidden> writes:

> On Tuesday 19 February 2008, Simon Josefsson wrote:
>> Mike Frysinger <address@hidden> writes:
>> > On Tuesday 19 February 2008, Simon Josefsson wrote:
>> >> Mike Frysinger <address@hidden> writes:
>> >> > ../../libidn-1.5/src/idn.c:449: undefined reference to
>> >> > `_idna_to_unicode_8z4z' ../../libidn-1.5/src/idn.c:456: undefined
>> >> > reference to `_idna_strerror'
>> >>
>> >> That is strange, all those symbols should be defined in libidn.  What
>> >> does 'bfin-linux-uclibc-nm lib/.libs/libidn.so' show?
>> >
>> > ok, it's a bug in libtool, not libidn.  once i fixed that, it builds. 
>> > should be fine to release.  thanks!
>>
>> Yeah, I tracked it down as well, and it seems the -export-symbols-regex
>> parameter doesn't really work well under bfin because of a function name
>> underscore mismatch.  Btw, how did you fix the libtool bug?
>
> it's a known issue in libtool when working with toolchains that have symbol 
> prefixes and -export-symbols-regex.  libtool takes the symbol list, removes 
> the prefix, does the regex, but then forgets to add back in the prefix before 
> generating the version script.
>
> stick a `sed s:^:_:` in the pipeline after the regex matching and it works.

Ok, thanks for explaining.  Hopefully v1.5 should have solved the other
problem.

/Simon




reply via email to

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