[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: asprintf not defined
From: |
Simon Josefsson |
Subject: |
Re: asprintf not defined |
Date: |
Sun, 06 Jan 2008 15:47:18 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Kevin Tindall <address@hidden> writes:
> Hello,
> I'm trying to compile GSASL 0.2.9 on Solaris 10 (8/07) and I am
> getting an error
> saying that asprintf is undefined, but that should be a part of
> stdio.h correct?
Hi! Thanks for the report. Solaris 10 doesn't have asprintf, as far as
I know. Gsasl should ship with a replacement copy from gnulib. That
copy should be automatically enabled if ./configure detects that the
system doesn't have asprintf. Could you post the
gsasl-*/lib/config.log?
Also, version 0.2.9 is over 2 years old. Perhaps this has been fixed in
later releases. Try version 0.2.22.
/Simon
> copy of error:
> /opt/local/bin/gcc -march=pentium4 -pipe -O0 -g -o .libs/client
> client.o ../lib/src/.libs/libgsasl.so -L/opt/local/lib
> /opt/local/lib/libgss.so /opt/local/lib/libintl.so
> /opt/local/lib/libiconv.so -lc -lnsl -lsocket -R/opt/local/lib
> Undefined first referenced
> symbol in file
> asprintf ../lib/src/.libs/libgsasl.so
> ld: fatal: Symbol referencing errors. No output written to .libs/client
> collect2: ld returned 1 exit status
> make[2]: *** [client] Error 1
> make[2]: Leaving directory `/root/sources/gsasl-0.2.9/examples'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/sources/gsasl-0.2.9'
> make: *** [all] Error 2
>
>
>
> below is all the relevant information I can think of to help solve
> this error:
> uname -a: SunOS 5.10 Generic_120012-14 i86pc i386 i86pc Solaris
> cpu type: Pentium 4
> GCC: 4.2.2
> GSS: 0.0.9
> libgcrypt: 1.4.0
> libgpg-error: 1.6
> GNU ld: 2.18