On Wed, 10 Nov 2004 09:44:32 -0500, Joao Damas <email@hidden> wrote:
>
> Define, for instance, CFLAGS as an environment variable and export it
> (setenv, export, depending on your shell) or define it in the same line
> just before you type "configure". THe contents should be
> CFLAGS="-DBIND_8_COMPAT" that will make OS x use the bind8 related
> headers.
thanks for the help.
Since CFLAGS is already defined in the Makefile, I simply added the
following ...
ifeq (${OSARCH},Darwin)
CFLAGS+=-DBIND_8_COMPAT
endif
NB: OSARCH is defined from "uname -s" in the Makefile
and indeed "-DBIND_8_COMPAT" is now showing up in the argument list
when gcc is called:
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT
-D_GNU_SOURCE -O6 -DBIND_8_COMPAT
-DASTERISK_VERSION=\"CVS-D2004.06.01.13.00.00-11/09/04-22:55:44\"
-DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\"
-DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\"
-DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\"
-DASTLOGDIR=\"/var/log/asterisk\"
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\"
-DASTMODDIR=\"/usr/lib/asterisk/modules\"
-DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN
-DNEW_PRI_HANGUP -c -o io.o io.c
HOWEVER, I am now getting conflicts between tow different
compatibility headers ...
In file included from enum.c:19:
/usr/include/arpa/nameser_compat.h:121: error: conflicting types for `HEADER'
/usr/include/arpa/nameser8_compat.h:304: error: previous declaration of `HEADER'
In file included from /usr/include/resolv.h:60,
from enum.c:21:
... and also undeclared symbol errors ...
/usr/include/resolv8_compat.h:138: error: `NS_MAXDNAME' undeclared
here (not in a function)
enum.c: In function `ast_get_enum':
enum.c:318: error: `ns_c_in' undeclared (first use in this function)
enum.c:318: error: (Each undeclared identifier is reported only once
enum.c:318: error: for each function it appears in.)
enum.c: In function `ast_get_txt':
enum.c:377: error: `ns_c_in' undeclared (first use in this function)
make: *** [enum.o] Error 1
I am confident I can just remove any references to nameserver_compat.h
to get rid of the conflict, but I am worried about the missing
symbols. Is nameserver8_compat.h in any way "incomplete" when compared
to nameserver_compat.h? Any suggestions?
thanks again
rgds
benjk
--
Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya,
Tokyo, Japan.
NB: Spam filters in place. Messages unrelated to the * mailing lists
may get trashed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden
This email sent to email@hidden