1 |
I got php-cgi running using this patch: |
2 |
|
3 |
/ |
4 |
--- php-4.3.9.orig/ext/standard/dns.c 2003-09-01 |
5 |
//16:37:46.000000000 -0600 |
6 |
//+++ php-4.3.9/ext/standard/dns.c 2004-11-30 |
7 |
//23:53:55.000000000 -0700 |
8 |
//@@ -207,7 +207,7 @@ |
9 |
// } |
10 |
// /* }}} */ |
11 |
// |
12 |
//-#if HAVE_RES_SEARCH && //!(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) |
13 |
//+#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && />/ > !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) |
14 |
// |
15 |
// /* {{{ proto int checkdnsrr(string host [, string type]) |
16 |
// Check DNS records corresponding to a given Internet host |
17 |
//name or IP address */ |
18 |
// |
19 |
//--- php-4.3.9.orig/ext/standard/basic_functions.c //2004-07-30 10:52:35.000000000 -0600 |
20 |
//+++ php-4.3.9/ext/standard/basic_functions.c 2004-11-30 |
21 |
//23:56:42.000000000 -0700 |
22 |
//@@ -446,7 +446,7 @@ |
23 |
// PHP_FE(gethostbyname, |
24 |
// |
25 |
// NULL) |
26 |
// PHP_FE(gethostbynamel, |
27 |
// |
28 |
// NULL) |
29 |
// |
30 |
//-#if HAVE_RES_SEARCH && !(defined(__BEOS__) || //defined(PHP_WIN32) || defined(NETWARE)) |
31 |
//+#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && //!(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) |
32 |
// PHP_FE(checkdnsrr,NULL) |
33 |
// PHP_FE(getmxrr,second_and_third_args_force_ref) |
34 |
// #endif/ |
35 |
|
36 |
I don't know if this works as a patch as I have just edited the files by |
37 |
hand. |
38 |
I found it at the uclibc mailing-lists: |
39 |
http://www.uclibc.org/lists/uclibc/2004-December/010664.html |
40 |
Which gave me a working php-cgi-4.4.0 on a uclibc-mips. I haven't |
41 |
submitted this to bugs.gentoo.org because I have tweaked alot more by |
42 |
hand and I wasn't sure this was the only patch needed. |
43 |
This patch solved my __dn_skipname problems but I alsa disabled some |
44 |
more xml-stuff for all the localisation stuff unsupported by uclibc. |
45 |
|
46 |
Philippe Clérié wrote: |
47 |
|
48 |
>I've been trying to compile PHP on the uclibc profile for the last |
49 |
>couple of days. I am now stuck with an error on __dn_skipname as |
50 |
>seen below. |
51 |
> |
52 |
>I've seen some references to this after googling for a while, some |
53 |
>of it being quite old. So it's not a new issue. But I haven't |
54 |
>really found a cure. Hope someone has been there already. |
55 |
> |
56 |
>Thanks |
57 |
>Philippe |
58 |
> |
59 |
> |
60 |
>======================================== |
61 |
> |
62 |
>emerge --info |
63 |
> |
64 |
>Portage 2.0.51.22-r3 (uclibc/x86/2005.1, gcc-3.3.6, |
65 |
>uclibc-0.9.27-r0, 2.6.12-vs2.0-gentoo-r1 i686) |
66 |
>================================================================= |
67 |
>System uname: 2.6.12-vs2.0-gentoo-r1 i686 AMD Athlon(tm) XP 2000+ |
68 |
>Gentoo Base System version 1.6.13 |
69 |
>dev-lang/python: 2.3.4-r1, 2.4.2 |
70 |
>sys-apps/sandbox: 1.2.12 |
71 |
>sys-devel/autoconf: 2.13, 2.59-r6 |
72 |
>sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, |
73 |
>1.9.6-r1 |
74 |
>sys-devel/binutils: 2.15.92.0.2-r10 |
75 |
>sys-devel/libtool: 1.5.20 |
76 |
>virtual/os-headers: 2.6.11-r2 |
77 |
>ACCEPT_KEYWORDS="x86" |
78 |
>AUTOCLEAN="yes" |
79 |
>CBUILD="i386-gentoo-linux-uclibc" |
80 |
>CFLAGS="-Os -pipe" |
81 |
>CHOST="i386-gentoo-linux-uclibc" |
82 |
>CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" |
83 |
>CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" |
84 |
>CXXFLAGS="-Os -pipe" |
85 |
>DISTDIR="/usr/portage/distfiles" |
86 |
>FEATURES="autoconfig buildpkg distlocks nodoc noinfo noman sandbox |
87 |
>sfperms strict" |
88 |
>GENTOO_MIRRORS="http://distfiles.gentoo.org |
89 |
>http://distro.ibiblio.org/pub/Linux/distributions/gentoo" |
90 |
>PKGDIR="/usr/portage/packages/uclibc" |
91 |
>PORTAGE_TMPDIR="/var/tmp" |
92 |
>PORTDIR="/usr/portage" |
93 |
>SYNC="rsync://rsync.gentoo.org/gentoo-portage" |
94 |
>USE="x86 berkdb libwww ncurses perl python readline tcpd uclibc xml2 |
95 |
>zlib userland_GNU kernel_linux elibc_uclibc" |
96 |
>Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, |
97 |
>PORTDIR_OVERLAY |
98 |
> |
99 |
>==== /etc/portage/package.use =========================== |
100 |
> |
101 |
>dev-lang/php cgi force-cgi-redirect -berkdb -xml2 -ncurses -readline |
102 |
> |
103 |
>==== command line ================================== |
104 |
> |
105 |
> emerge dev-lang/php |
106 |
> |
107 |
>==== emerge output ======================== |
108 |
> |
109 |
>/bin/sh /var/tmp/portage/php-4.4.0-r1/work/php-4.4.0/libtool |
110 |
>--silent --preserve-dup-deps --mode=link gcc -export-dynamic -Os |
111 |
>-pipe ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo |
112 |
>regex/regcomp.lo regex/regexec.lo regex/regerror.lo |
113 |
>regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo |
114 |
>... |
115 |
><lots of lines skipped> |
116 |
>... |
117 |
> main/internal_functions.lo -lcrypt -lcrypt -lz -lm -ldl -lnsl |
118 |
>-lcrypt -lcrypt -o sapi/cgi/php |
119 |
>ext/standard/dns.o(.text+0x700): In function `zif_getmxrr': |
120 |
>: undefined reference to `__dn_skipname' |
121 |
>ext/standard/dns.o(.text+0x73c): In function `zif_getmxrr': |
122 |
>: undefined reference to `__dn_skipname' |
123 |
>collect2: ld returned 1 exit status |
124 |
>make: *** [sapi/cgi/php] Error 1 |
125 |
> |
126 |
>!!! ERROR: dev-lang/php-4.4.0-r1 failed. |
127 |
>!!! Function php4_4-sapi_src_compile, Line 511, Exitcode 2 |
128 |
>!!! make failed |
129 |
>!!! If you need support, post the topmost build error, NOT this |
130 |
>status message. |
131 |
>======================================= |
132 |
> |
133 |
> |
134 |
> |