[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf on Solaris 8
From: |
ti chi |
Subject: |
Re: autoconf on Solaris 8 |
Date: |
Tue, 4 Feb 2003 07:39:28 -0800 (PST) |
I can't thank you enough for your help - you saved me much grief!
- Ti
Lars Hecking <address@hidden> wrote:
ti chi writes:
>
> nm libsresolv.so | grep hstrerror reveals
Note: libresolv.
> [1622]| 155404| 92|FUNC |GLOB |0 |9 |hstrerror
>
> - Ti
> ti chi wrote:
> I ran autoconf on Solaris 8 with the AC_CHECK_FUNCS(... hstrerror ...) and it says that hstrerror is not supported. So then, I defined an hstrerror structure but then the compiler complains "netdb.h: previous declaration of hstrerror"
>
> Seems that autoconf is returning a false negative on Solaris 8 - what steps can I take to further isolate this issue?
You are using the wrong configure test. AC_CHECK_FUNCS() looks for functions
only in the libraries that are currently in $LIBS (and libc). Use AC_CHECK_LIB
instead.
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now