FW: FW: Problem compiling bind 8.2.1 under AIX 4.3.2
Cam Miles
Cam.Miles at TELUS.Com
Mon Sep 13 19:24:03 UTC 1999
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?
More information about the bind-users
mailing list