[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble linking to gsasl 1.6.1 on Mac OS Lion
From: |
Simon Josefsson |
Subject: |
Re: Trouble linking to gsasl 1.6.1 on Mac OS Lion |
Date: |
Mon, 21 Nov 2011 12:51:35 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Lothar May <address@hidden> writes:
> Hi,
>
> I just wanted to update gsasl from 1.4.4 to 1.6.1 on my Mac, but I ran
> into trouble. I'm now getting the following error when linking to
> libgsasl:
>
> Undefined symbols for architecture x86_64:
> "_strnlen", referenced from:
> _scram_parse_client_first in libgsasl.a(lt20-parser.o)
> _scram_parse_server_final in libgsasl.a(lt20-parser.o)
> _scram_parse_client_final in libgsasl.a(lt20-parser.o)
> _scram_parse_server_first in libgsasl.a(lt20-parser.o)
>
> I used "./configure CC="gcc -arch x86_64 -mmacosx-version-min=10.5"
> --disable-gs2 --disable-gssapi" to configure the gsasl build.
>
> Googling for it, this seems to be a known issue, it seems that strnlen
> is simply not available. Does anyone have an idea how to solve this
> issue, e.g. which function to use instead for the same result?
Hi Lothar!
This seems strange, there is an implementation of strnlen shipped with
GNU SASL for platforms that doesn't have it. It is in lib/gl/strnlen.c.
Could you tell if it was built on your platform? I.e., if there is a
file lib/gl/strnlen.o. Otherwise, grep for strnlen in ./configure
output to see if the strnlen detection code maybe failed.
/Simon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Trouble linking to gsasl 1.6.1 on Mac OS Lion,
Simon Josefsson <=