public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] uClibc and PHP
@ 2005-10-26  0:31 Philippe Clérié
  2005-10-26 21:49 ` René Rhéaume
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Philippe Clérié @ 2005-10-26  0:31 UTC (permalink / raw
  To: gentoo-embedded

I've been trying to compile PHP on the uclibc profile for the last 
couple of days. I am now stuck with an error on __dn_skipname as 
seen below.

I've seen some references to this after googling for a while, some 
of it being quite old. So it's not a new issue. But I haven't 
really found a cure. Hope someone has been there already.

Thanks
Philippe


========================================

emerge --info

Portage 2.0.51.22-r3 (uclibc/x86/2005.1, gcc-3.3.6, 
uclibc-0.9.27-r0, 2.6.12-vs2.0-gentoo-r1 i686)
=================================================================
System uname: 2.6.12-vs2.0-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 
1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks nodoc noinfo noman sandbox 
sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages/uclibc"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb libwww ncurses perl python readline tcpd uclibc xml2 
zlib userland_GNU kernel_linux elibc_uclibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, 
PORTDIR_OVERLAY

==== /etc/portage/package.use ===========================

dev-lang/php cgi force-cgi-redirect -berkdb -xml2 -ncurses -readline

==== command line ==================================

 emerge dev-lang/php

==== emerge output ========================

/bin/sh /var/tmp/portage/php-4.4.0-r1/work/php-4.4.0/libtool 
--silent --preserve-dup-deps --mode=link gcc -export-dynamic -Os 
-pipe     ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo 
regex/regcomp.lo regex/regexec.lo regex/regerror.lo 
regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo
...
<lots of lines skipped>
...
 main/internal_functions.lo -lcrypt -lcrypt -lz -lm -ldl -lnsl 
-lcrypt -lcrypt  -o sapi/cgi/php
ext/standard/dns.o(.text+0x700): In function `zif_getmxrr':
: undefined reference to `__dn_skipname'
ext/standard/dns.o(.text+0x73c): In function `zif_getmxrr':
: undefined reference to `__dn_skipname'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

!!! ERROR: dev-lang/php-4.4.0-r1 failed.
!!! Function php4_4-sapi_src_compile, Line 511, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this 
status message.
=======================================

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-26  0:31 [gentoo-embedded] uClibc and PHP Philippe Clérié
@ 2005-10-26 21:49 ` René Rhéaume
  2005-10-27  1:22   ` Philippe Clérié
  2005-10-26 22:27 ` Mike Frysinger
  2005-10-27  6:30 ` Walter Goossens
  2 siblings, 1 reply; 11+ messages in thread
From: René Rhéaume @ 2005-10-26 21:49 UTC (permalink / raw
  To: gentoo-embedded

This is something you should file on http://bugs.gentoo.org. A mailing
list is not meant for bug tracking.

Nevertheless, I think you have enough information for the bug report
and you will only need to perform a smart copy-and-paste.

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-26  0:31 [gentoo-embedded] uClibc and PHP Philippe Clérié
  2005-10-26 21:49 ` René Rhéaume
@ 2005-10-26 22:27 ` Mike Frysinger
  2005-10-27  1:24   ` Philippe Clérié
  2005-10-27  6:30 ` Walter Goossens
  2 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2005-10-26 22:27 UTC (permalink / raw
  To: gentoo-embedded

On Tue, Oct 25, 2005 at 08:31:25PM -0400, Philippe Cl??ri?? wrote:
> I've been trying to compile PHP on the uclibc profile for the last 
> couple of days. I am now stuck with an error on __dn_skipname as 
> seen below.

try dev-lang/php-5.0.x, that seemed to work for me
-mike
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-26 21:49 ` René Rhéaume
@ 2005-10-27  1:22   ` Philippe Clérié
  2005-10-28  3:48     ` Mike Frysinger
  0 siblings, 1 reply; 11+ messages in thread
From: Philippe Clérié @ 2005-10-27  1:22 UTC (permalink / raw
  To: gentoo-embedded

Will do. 

As soon as I tame the bugzilla monster.

Thanks


On Wednesday, 26 October 2005 17:49, René Rhéaume wrote:
> This is something you should file on http://bugs.gentoo.org. A
> mailing list is not meant for bug tracking.
>
> Nevertheless, I think you have enough information for the bug
> report and you will only need to perform a smart copy-and-paste.

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-26 22:27 ` Mike Frysinger
@ 2005-10-27  1:24   ` Philippe Clérié
  2005-10-27  6:51     ` Natanael Copa
  0 siblings, 1 reply; 11+ messages in thread
From: Philippe Clérié @ 2005-10-27  1:24 UTC (permalink / raw
  To: gentoo-embedded

I will try!

But, the application I have in mind may have a different opinion.

I am thinking of porting the m0n0wall gui interface to gentoo. 

Any thoughts?



On Wednesday, 26 October 2005 18:27, Mike Frysinger wrote:
> On Tue, Oct 25, 2005 at 08:31:25PM -0400, Philippe Cl??ri?? wrote:
> > I've been trying to compile PHP on the uclibc profile for the
> > last couple of days. I am now stuck with an error on
> > __dn_skipname as seen below.
>
> try dev-lang/php-5.0.x, that seemed to work for me
> -mike
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-26  0:31 [gentoo-embedded] uClibc and PHP Philippe Clérié
  2005-10-26 21:49 ` René Rhéaume
  2005-10-26 22:27 ` Mike Frysinger
@ 2005-10-27  6:30 ` Walter Goossens
  2005-10-28  1:00   ` Philippe Clérié
  2 siblings, 1 reply; 11+ messages in thread
From: Walter Goossens @ 2005-10-27  6:30 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 5172 bytes --]

I got php-cgi running using this patch:

/
--- 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 don't know if this works as a patch as I have just edited the files by 
hand.
I found it at the uclibc mailing-lists:
http://www.uclibc.org/lists/uclibc/2004-December/010664.html
Which gave me a working php-cgi-4.4.0 on a uclibc-mips. I haven't 
submitted this to bugs.gentoo.org because I have tweaked alot more by 
hand and I wasn't sure this was the only patch needed.
This patch solved my __dn_skipname problems but I alsa disabled some 
more xml-stuff for all the localisation stuff unsupported by uclibc.

Philippe Clérié wrote:

>I've been trying to compile PHP on the uclibc profile for the last 
>couple of days. I am now stuck with an error on __dn_skipname as 
>seen below.
>
>I've seen some references to this after googling for a while, some 
>of it being quite old. So it's not a new issue. But I haven't 
>really found a cure. Hope someone has been there already.
>
>Thanks
>Philippe
>
>
>========================================
>
>emerge --info
>
>Portage 2.0.51.22-r3 (uclibc/x86/2005.1, gcc-3.3.6, 
>uclibc-0.9.27-r0, 2.6.12-vs2.0-gentoo-r1 i686)
>=================================================================
>System uname: 2.6.12-vs2.0-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
>Gentoo Base System version 1.6.13
>dev-lang/python:     2.3.4-r1, 2.4.2
>sys-apps/sandbox:    1.2.12
>sys-devel/autoconf:  2.13, 2.59-r6
>sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 
>1.9.6-r1
>sys-devel/binutils:  2.15.92.0.2-r10
>sys-devel/libtool:   1.5.20
>virtual/os-headers:  2.6.11-r2
>ACCEPT_KEYWORDS="x86"
>AUTOCLEAN="yes"
>CBUILD="i386-gentoo-linux-uclibc"
>CFLAGS="-Os -pipe"
>CHOST="i386-gentoo-linux-uclibc"
>CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
>CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
>CXXFLAGS="-Os -pipe"
>DISTDIR="/usr/portage/distfiles"
>FEATURES="autoconfig buildpkg distlocks nodoc noinfo noman sandbox 
>sfperms strict"
>GENTOO_MIRRORS="http://distfiles.gentoo.org 
>http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
>PKGDIR="/usr/portage/packages/uclibc"
>PORTAGE_TMPDIR="/var/tmp"
>PORTDIR="/usr/portage"
>SYNC="rsync://rsync.gentoo.org/gentoo-portage"
>USE="x86 berkdb libwww ncurses perl python readline tcpd uclibc xml2 
>zlib userland_GNU kernel_linux elibc_uclibc"
>Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, 
>PORTDIR_OVERLAY
>
>==== /etc/portage/package.use ===========================
>
>dev-lang/php cgi force-cgi-redirect -berkdb -xml2 -ncurses -readline
>
>==== command line ==================================
>
> emerge dev-lang/php
>
>==== emerge output ========================
>
>/bin/sh /var/tmp/portage/php-4.4.0-r1/work/php-4.4.0/libtool 
>--silent --preserve-dup-deps --mode=link gcc -export-dynamic -Os 
>-pipe     ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo 
>regex/regcomp.lo regex/regexec.lo regex/regerror.lo 
>regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo
>...
><lots of lines skipped>
>...
> main/internal_functions.lo -lcrypt -lcrypt -lz -lm -ldl -lnsl 
>-lcrypt -lcrypt  -o sapi/cgi/php
>ext/standard/dns.o(.text+0x700): In function `zif_getmxrr':
>: undefined reference to `__dn_skipname'
>ext/standard/dns.o(.text+0x73c): In function `zif_getmxrr':
>: undefined reference to `__dn_skipname'
>collect2: ld returned 1 exit status
>make: *** [sapi/cgi/php] Error 1
>
>!!! ERROR: dev-lang/php-4.4.0-r1 failed.
>!!! Function php4_4-sapi_src_compile, Line 511, Exitcode 2
>!!! make failed
>!!! If you need support, post the topmost build error, NOT this 
>status message.
>=======================================
>
>  
>


[-- Attachment #2: Type: text/html, Size: 5943 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-27  1:24   ` Philippe Clérié
@ 2005-10-27  6:51     ` Natanael Copa
  0 siblings, 0 replies; 11+ messages in thread
From: Natanael Copa @ 2005-10-27  6:51 UTC (permalink / raw
  To: gentoo-embedded

On ons, 2005-10-26 at 21:24 -0400, Philippe Clérié wrote:

> I am thinking of porting the m0n0wall gui interface to gentoo. 
> 
> Any thoughts?

In case you would like to avoid php, there is an interesting project
that embed shellcode in html, php-style.
http://haserl.sourceforge.net/

I think the uClibc Bering webconf uses it.

There is an ebuild here:
https://bugs.gentoo.org/show_bug.cgi?id=76213

--
Natanael Copa

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-27  6:30 ` Walter Goossens
@ 2005-10-28  1:00   ` Philippe Clérié
  2005-10-28  3:44     ` Mike Frysinger
  0 siblings, 1 reply; 11+ messages in thread
From: Philippe Clérié @ 2005-10-28  1:00 UTC (permalink / raw
  To: gentoo-embedded

Isn't this a bit dated though? I figured that if that has not been 
included yet it has other problems. 

Anyway, I'll try it over the week-end and report back.

Thanks to all for the responses. :-)

Philippe


On Thursday, 27 October 2005 02:30, Walter Goossens wrote:
> I got php-cgi running using this patch:
>
> /
> --- 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 don't know if this works as a patch as I have just edited the
> files by hand.
> I found it at the uclibc mailing-lists:
> http://www.uclibc.org/lists/uclibc/2004-December/010664.html
> Which gave me a working php-cgi-4.4.0 on a uclibc-mips. I haven't
> submitted this to bugs.gentoo.org because I have tweaked alot
> more by hand and I wasn't sure this was the only patch needed.
> This patch solved my __dn_skipname problems but I alsa disabled
> some more xml-stuff for all the localisation stuff unsupported by
> uclibc.
>
> Philippe Clérié wrote:
> >I've been trying to compile PHP on the uclibc profile for the
> > last couple of days. I am now stuck with an error on
> > __dn_skipname as seen below.
> >
> >I've seen some references to this after googling for a while,
> > some of it being quite old. So it's not a new issue. But I
> > haven't really found a cure. Hope someone has been there
> > already.
> >
> >Thanks
> >Philippe
> >
> >
> >========================================
> >
> >emerge --info
> >
> >Portage 2.0.51.22-r3 (uclibc/x86/2005.1, gcc-3.3.6,
> >uclibc-0.9.27-r0, 2.6.12-vs2.0-gentoo-r1 i686)
> >================================================================
> >= System uname: 2.6.12-vs2.0-gentoo-r1 i686 AMD Athlon(tm) XP
> > 2000+ Gentoo Base System version 1.6.13
> >dev-lang/python:     2.3.4-r1, 2.4.2
> >sys-apps/sandbox:    1.2.12
> >sys-devel/autoconf:  2.13, 2.59-r6
> >sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3,
> >1.9.6-r1
> >sys-devel/binutils:  2.15.92.0.2-r10
> >sys-devel/libtool:   1.5.20
> >virtual/os-headers:  2.6.11-r2
> >ACCEPT_KEYWORDS="x86"
> >AUTOCLEAN="yes"
> >CBUILD="i386-gentoo-linux-uclibc"
> >CFLAGS="-Os -pipe"
> >CHOST="i386-gentoo-linux-uclibc"
> >CONFIG_PROTECT="/etc /usr/kde/2/share/config
> > /usr/kde/3/share/config /usr/share/config /var/qmail/control"
> > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> > CXXFLAGS="-Os -pipe"
> >DISTDIR="/usr/portage/distfiles"
> >FEATURES="autoconfig buildpkg distlocks nodoc noinfo noman
> > sandbox sfperms strict"
> >GENTOO_MIRRORS="http://distfiles.gentoo.org
> >http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
> >PKGDIR="/usr/portage/packages/uclibc"
> >PORTAGE_TMPDIR="/var/tmp"
> >PORTDIR="/usr/portage"
> >SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> >USE="x86 berkdb libwww ncurses perl python readline tcpd uclibc
> > xml2 zlib userland_GNU kernel_linux elibc_uclibc"
> >Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS,
> > MAKEOPTS, PORTDIR_OVERLAY
> >
> >==== /etc/portage/package.use ===========================
> >
> >dev-lang/php cgi force-cgi-redirect -berkdb -xml2 -ncurses
> > -readline
> >
> >==== command line ==================================
> >
> > emerge dev-lang/php
> >
> >==== emerge output ========================
> >
> >/bin/sh /var/tmp/portage/php-4.4.0-r1/work/php-4.4.0/libtool
> >--silent --preserve-dup-deps --mode=link gcc -export-dynamic -Os
> >-pipe     ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo
> >regex/regcomp.lo regex/regexec.lo regex/regerror.lo
> >regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo
> >...
> ><lots of lines skipped>
> >...
> > main/internal_functions.lo -lcrypt -lcrypt -lz -lm -ldl -lnsl
> >-lcrypt -lcrypt  -o sapi/cgi/php
> >
> >ext/standard/dns.o(.text+0x700): In function `zif_getmxrr':
> >: undefined reference to `__dn_skipname'
> >
> >ext/standard/dns.o(.text+0x73c): In function `zif_getmxrr':
> >: undefined reference to `__dn_skipname'
> >
> >collect2: ld returned 1 exit status
> >make: *** [sapi/cgi/php] Error 1
> >
> >!!! ERROR: dev-lang/php-4.4.0-r1 failed.
> >!!! Function php4_4-sapi_src_compile, Line 511, Exitcode 2
> >!!! make failed
> >!!! If you need support, post the topmost build error, NOT this
> >status message.
> >=======================================

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-28  1:00   ` Philippe Clérié
@ 2005-10-28  3:44     ` Mike Frysinger
  2005-10-28 21:26       ` Philippe Clérié
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2005-10-28  3:44 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

On Thu, Oct 27, 2005 at 09:00:00PM -0400, Philippe Cl??ri?? wrote:
> Isn't this a bit dated though? I figured that if that has not been 
> included yet it has other problems. 

indeed, this should have been resolved a while ago

try the attached patch which i gave a quick spin in my uclibc env with 
php-4.4.x and php-4.3.x
-mike

[-- Attachment #2: php4-uclibc-dn-skipname.patch --]
[-- Type: text/plain, Size: 977 bytes --]

Only use the dn_skipname() function if it's available (it isnt in uClibc)

This fix is in the 5.0+ branches, but not in the 4.3/4.4 ones

--- ext/standard/dns.c
+++ ext/standard/dns.c
@@ -275,6 +275,7 @@ PHP_FUNCTION(checkdnsrr)
 #define MAXHOSTNAMELEN  256
 #endif /* MAXHOSTNAMELEN */
 
+#if HAVE_DN_SKIPNAME
 /* {{{ proto int getmxrr(string hostname, array mxhosts [, array weight])
    Get MX records corresponding to a given Internet host name */
 PHP_FUNCTION(getmxrr)
@@ -355,6 +356,7 @@ PHP_FUNCTION(getmxrr)
 	RETURN_TRUE;
 }
 /* }}} */
+#endif /* HAVE_DN_SKIPNAME */
 
 #endif
 /*
--- ext/standard/basic_functions.c
+++ ext/standard/basic_functions.c
@@ -449,7 +449,9 @@ function_entry basic_functions[] = {
 
 #if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE))
 	PHP_FE(checkdnsrr,														NULL)
+# if HAVE_DN_SKIPNAME
 	PHP_FE(getmxrr,second_and_third_args_force_ref)
+# endif
 #endif
 
 	PHP_FE(getmyuid,														NULL)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-27  1:22   ` Philippe Clérié
@ 2005-10-28  3:48     ` Mike Frysinger
  0 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2005-10-28  3:48 UTC (permalink / raw
  To: gentoo-embedded

On Wed, Oct 26, 2005 at 09:22:33PM -0400, Philippe Cl??ri?? wrote:
> Will do. 
> 
> As soon as I tame the bugzilla monster.

dont file a bug, there is already one open:
http://bugs.gentoo.org/99225
-mike
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-embedded] uClibc and PHP
  2005-10-28  3:44     ` Mike Frysinger
@ 2005-10-28 21:26       ` Philippe Clérié
  0 siblings, 0 replies; 11+ messages in thread
From: Philippe Clérié @ 2005-10-28 21:26 UTC (permalink / raw
  To: gentoo-embedded

On Thursday, 27 October 2005 23:44, Mike Frysinger wrote:
> On Thu, Oct 27, 2005 at 09:00:00PM -0400, Philippe Cl??ri?? wrote:
> > Isn't this a bit dated though? I figured that if that has not
> > been included yet it has other problems.
>
> indeed, this should have been resolved a while ago
>
> try the attached patch which i gave a quick spin in my uclibc env
> with php-4.4.x and php-4.3.x
> -mike

Just did. And thanks for putting in the existing bug report that I 
could not find the first time through.

http://bugs.gentoo.org/show_bug.cgi?id=99225

for interested parties.

Thanks people. You've been great.

Philippe
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-10-28 21:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-26  0:31 [gentoo-embedded] uClibc and PHP Philippe Clérié
2005-10-26 21:49 ` René Rhéaume
2005-10-27  1:22   ` Philippe Clérié
2005-10-28  3:48     ` Mike Frysinger
2005-10-26 22:27 ` Mike Frysinger
2005-10-27  1:24   ` Philippe Clérié
2005-10-27  6:51     ` Natanael Copa
2005-10-27  6:30 ` Walter Goossens
2005-10-28  1:00   ` Philippe Clérié
2005-10-28  3:44     ` Mike Frysinger
2005-10-28 21:26       ` Philippe Clérié

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox