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