FW: FW: Problem compiling bind 8.2.1 under AIX 4.3.2

Mark_Andrews at isc.org Mark_Andrews at isc.org
Tue Sep 14 01:16:18 UTC 1999


	This looks like you need to run fixincludes from the gcc
	distribution.  Gcc should find the standard included or its
	modified copies of them.

	Mark

> I copied my /usr/include/stdlib.h file to src/port/aix4/include
> directory.(not sure if that is the proper way to fix the problem... but I
> finally got the compile to complete. I did get the following warnings in
> compiling numerous programs. 
> 
> gcc  -g -O2 -I../../port/aix4/include -I../../include  -c named-xfer.c
> named-xfer.c:
> In function `getzone':
> named-xfer.c:1168: warning: passing arg 3 of `ngetsockname' from
> incompatible pointer type
> named-xfer.c:1384: warning: passing arg 3 of `ngetsockname' from
> incompatible pointer type
> named-xfer.c: In function `netread':
> named-xfer.c:1620: warning: passing arg 6 of `nrecvfrom' from incompatible
> pointer type 
> 
> 
> > >>>>> "Cam" == Cam Miles <Cam.Miles at TELUS.Com> writes:
> > 
> >     Cam> I fixed up my assembler problem and got a lot further but now
> >     Cam> I am getting the following error: If anyone can shed some
> >     Cam> light to an inexperienced compiler. Thanks.
> > 
> >     Cam> In function `dns_res_get': dns.c:116: `free' undeclared
> >     Cam> dns.c: In function `dns_res_get':
> >     Cam> dns.c:116: `free' undeclared (first use in this function)
> >     Cam> dns.c:116: (Each undeclared identifier is reported only once
> >     Cam> dns.c:116: for each function it appears in.)
> > 
> > It looks like there's something wrong with your #include files. They
> > seem to be missing a declaration for free(): a fundamental function
> > needed for memory allocation. On my BSD/OS system, the declaration of
> > this function is in <stdlib.h>. Maybe this is missing from your
> > #include files?
> 
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org


More information about the bind-users mailing list