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.
> >=======================================
--
[email protected] mailing list