2005/7/18, Jean-Max Reymond <[EMAIL PROTECTED]>:
> compiling courier 0.50 on Mac OS X (Darwin Kernel), I have the
> following message when running ./configure:
>
> checking for connect in -lsocket... (cached) no
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking for ber_scanf in -llber... yes
> checking whether -lresolv is needed for res_query... configure: error:
> Cannot find function res_query
a little test:
ckrmac:/tmp jmax$ cat query.c
#include <sys/types.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#include <resolv.h>
void (*func)()= (void (*)())res_query;
int
main ()
{
(*func)();
;
return 0;
}
ckrmac:/tmp jmax$ cc query.c -o query -lresolv
In file included from query.c:5:
/usr/include/resolv.h:174: error: field `nsaddr_list' has incomplete type
/usr/include/resolv.h:188: error: field `addr' has incomplete type
/usr/include/resolv.h:216: error: field `sin' has incomplete type
and
ckrmac:/tmp jmax$ cc -D HAVE_NETINET_IN_H query.c -o query -lresolv
ckrmac:/tmp jmax$
seems, it is OK with HAVE_NETINET_IN_H defined but very dangerous to
force the definition
--
Jean-Max Reymond
CKR Solutions Open Source
Nice France
http://www.ckr-solutions.com
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users