[uClibc] Re: does dn_skipname implemented in latest uclibcsnapshot?[solved]

Mitch Davis mitch.davis at opennw.com
Wed Dec 1 09:28:41 UTC 2004


Furthermore, I now have PHP more or less running under
the busybox httpd.  Note: This patch I found has a bug:

  http://www.busybox.net/lists/busybox/2004-May/011619.html

It's a bad idea to strcat onto the end of memory
that's just been strdup'ed.

> I have just compiled PHP and found the same thing :-(
> 
> > Appling the following 2 patches to php-4.3.9 will make 
> > compiling finished successfully.
> > Looks like uclibc-snapshot has implemented res_search() but 
> > ommited dn_skipname().
> > the checkdnsrr() and getmxrr() in php source code look like 
> > some dns reverse lookup functions, thanks god I do not need them :-)
> > 
> > --- php-4.3.9.orig/ext/standard/dns.c   2003-09-01 
> > 16:37:46.000000000 -0600
> > +++ php-4.3.9/ext/standard/dns.c        2004-11-30 
> > 23:53:55.000000000 -0700
> > @@ -207,7 +207,7 @@
> >  }
> >  /* }}} */
> >  
> > -#if HAVE_RES_SEARCH && 
> > !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
> > +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && 
> > !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
> >  
> >  /* {{{ proto int checkdnsrr(string host [, string type])
> >     Check DNS records corresponding to a given Internet host 
> > name or IP address */
> > 
> > --- php-4.3.9.orig/ext/standard/basic_functions.c       
> > 2004-07-30 10:52:35.000000000 -0600
> > +++ php-4.3.9/ext/standard/basic_functions.c    2004-11-30 
> > 23:56:42.000000000 -0700
> > @@ -446,7 +446,7 @@
> >         PHP_FE(gethostbyname,                                 
> >                                                               
> >     NULL)
> >         PHP_FE(gethostbynamel,                                
> >                                                               
> >     NULL)
> >  
> > -#if HAVE_RES_SEARCH && !(defined(__BEOS__) || 
> > defined(PHP_WIN32) || defined(NETWARE))
> > +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && 
> > !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE))
> >         PHP_FE(checkdnsrr,NULL)
> >         PHP_FE(getmxrr,second_and_third_args_force_ref)
> >  #endif
> > 
> >         I HOLLO
> >         ihollo at tom.com
> >           2004-12-01
> > 
> > 
> > _______________________________________________
> > uClibc mailing list
> > uClibc at uclibc.org
> > http://uclibc.org/mailman/listinfo/uclibc
> > 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
> 



More information about the uClibc mailing list