[Date Prev][Date Next] [Chronological] [Thread] [Top]

2.1.25 on OS X 10.3

On an OS X 10.3.1 Panther box

`uname -a` = Darwin 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24
15:48:39 PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC  Power Macintosh

When building......

Entering subdirectory libldap
/bin/sh /usr/local/src/support-libs/openldap-2.1.25/libtool
--mode=compile cc -g -O2 -I../../include        -I../../include
-DLDAP_LIBRARY -c dnssrv.c
rm -f .libs/dnssrv.lo
cc -g -O2 -I../../include -I../../include -DLDAP_LIBRARY -c dnssrv.c
-fno-common -DPIC -o .libs/dnssrv.lo
dnssrv.c: In function `ldap_domain2hostlist':
dnssrv.c:203: error: `C_IN' undeclared (first use in this function)
dnssrv.c:203: error: (Each undeclared identifier is reported only once
dnssrv.c:203: error: for each function it appears in.)
dnssrv.c:213: error: `HEADER' undeclared (first use in this function)
make[2]: *** [dnssrv.lo] Error 1
make[1]: *** [all-common] Error 1
make: *** [all-common] Error 1

the inclusion of the following line in dnssrv.c seems to fix it:

#include <arpa/nameser_compat.h>

A google search saw similar problems with building php and some ethernet
tools on OS X, so I thought I'd try their solution. Seems to work.

 John Snowdon - IT Support Specialist
 Faculty of Medical Sciences Computing Dept
 School of Medical Education Development
 University of Newcastle