Compiling bind on aix 3.2.5: no errors but some warnings

Mark.Andrews at nominum.com Mark.Andrews at nominum.com
Wed Sep 27 22:53:47 UTC 2000


	strdup() should be declared

		char * strdup(const char *);

	in <string.h>.

	If it is not declared in <string.h> you can declare it in
	src/port/aix32/include/port_after.h.

	So long as the executables link it should be ok.  If they don't
	link because strdup is missing there are defines that cause a
	strdup to be compiled.

	If you make changes please send them to bind-bugs at isc.org so that
	they can be merged back into the distribution.

	Mark
> 
> Hi,
> 
> I've just compiled bind 8.2.2p5 on aix 3.2.5 without errors
> but with some warning messages. Here's the list:
> 
> res_debug.c: In function `__loc_ntoa':
> res_debug.c:951: warning: passing arg 1 of `strdup' discards `const' from poi
> nter target type
> res_debug.c:953: warning: passing arg 1 of `strdup' discards `const' from poi
> nter target type
> res_debug.c:955: warning: passing arg 1 of `strdup' discards `const' from poi
> nter target type
> res_debug.c: In function `__loc_ntoa':
> res_debug.c:951: warning: passing arg 1 of `strdup' discards `const' from poi
> nter target type
> res_debug.c:953: warning: passing arg 1 of `strdup' discards `const' from poi
> nter target type
> res_debug.c:955: warning: passing arg 1 of `strdup' discards `const' from poi
> nter target type
> res_mkupdate.c: In function `__res_mkupdrec':
> res_mkupdate.c:859: warning: passing arg 1 of `strdup' discards `const' from 
> pointer target type
> res_mkupdate.c: In function `__res_mkupdrec':
> res_mkupdate.c:859: warning: passing arg 1 of `strdup' discards `const' from 
> pointer target type
> gen.c: In function `__irs_gen_acc':
> gen.c:135: warning: passing arg 1 of `strdup' discards `const' from pointer t
> arget type
> gen.c: In function `__irs_gen_acc':
> gen.c:135: warning: passing arg 1 of `strdup' discards `const' from pointer t
> arget type
> gen_ng.c: In function `ng_rewind':
> gen_ng.c:153: warning: passing arg 1 of `strdup' discards `const' from pointe
> r target type
> gen_ng.c: In function `ng_rewind':
> gen_ng.c:153: warning: passing arg 1 of `strdup' discards `const' from pointe
> r target type
> lcl_ng.c: In function `ng_rewind':
> lcl_ng.c:164: warning: passing arg 1 of `strdup' discards `const' from pointe
> r target type
> lcl_ng.c: In function `ng_rewind':
> lcl_ng.c:164: warning: passing arg 1 of `strdup' discards `const' from pointe
> r target type
> nis_ng.c: In function `ng_rewind':
> nis_ng.c:173: warning: passing arg 1 of `strdup' discards `const' from pointe
> r target type
> nis_ng.c: In function `ng_rewind':
> nis_ng.c:173: warning: passing arg 1 of `strdup' discards `const' from pointe
> r target type
> dst_api.c: In function `dst_s_get_key_struct':
> dst_api.c:174: warning: passing arg 1 of `strdup' discards `const' from point
> er target type
> dst_api.c: In function `dst_s_get_key_struct':
> dst_api.c:174: warning: passing arg 1 of `strdup' discards `const' from point
> er target type
> 
> Can I ignore these warnings?
> Bye .
> 
> Francesco
> 
> 
> > 
> > Try the BIND 8.2.3 beta.  It should work.
> > 
> > Mark
> > 
> > > 
> > > Hi,
> > > 
> > > I'm trying to compile bind 8.2.2p5 on aix 3.2.5
> > > but the command 'make all' aborts with the
> > > following errors:
> > > 
> > > prandom.c:36: prand_conf.h: No such file or directory
> > > blah, blah, blah
> 
> 
> 
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com



More information about the bind-users mailing list