[JDEV] Jabberd2 b3 on Mac OS X Panther
Morgan McMillian
chimp at monkeystew.com
Mon Nov 10 10:04:41 CST 2003
I figure I should share this since I see no mention of this on the mailing
lists. I ran into an issue building jabberd2 after upgrading to Mac OS
X Panther.
Making all in resolver
source='resolver.c' object='resolver.o' libtool=no \
depfile='.deps/resolver.Po' tmpdepfile='.deps/resolver.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..
-DCONFIG_DIR=\"/Library/Jabber2/etc/jabberd\" -g -O2
-DWANT_STORAGE_PGSQL -DWANT_AUTHREG_LDAP -I/Library/PostgreSQL/include -c
`test -f 'resolver.c' || echo './'`resolver.c
In file included from resolver.h:30,
from resolver.c:21:
dns.h:49: error: parse error before "HEADER"
dns.h:49: warning: no semicolon at end of struct or union
dns.h:51: error: parse error before '}' token
dns.h:51: warning: data definition has no type or storage class
resolver.c: In function `_resolver_sx_callback':
resolver.c:328: error: `T_A' undeclared (first use in this function)
resolver.c:328: error: (Each undeclared identifier is reported only once
resolver.c:328: error: for each function it appears in.)
make[2]: *** [resolver.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
My c is very rusty so I had to do a little research to figure out how to
solve or work around this. I found a similar issue when building PHP.
The fix was to add the following line their dns.c code.
#define BIND_8_COMPAT 1
I guess this has to do with Bind 9 versus Bind 8 support. So I added that
line to the dns.h and jabberd2 builds just fine.
--
Morgan McMillian <gilag at monkeystew.com> GPG Key ID 0x0209EF5D
GPG Fingerprint 6CBB 9C50 AD4B 2482 D169 3264 AF3D 6087 0209 EF5D
Jabber: gilag at monkeystew.org AIM: morganmcmillian
monkeystew.com - better than a slap on the belly with a wet trout
More information about the JDev
mailing list