ID:               48317
 Updated by:       paj...@php.net
 Reported By:      jf at netmadeira dot com
-Status:           Wont fix
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: linux
 PHP Version:      5.3CVS-2009-05-18 (snap)
 New Comment:

Feel free to send a patch (cvs diff -up :)




Previous Comments:
------------------------------------------------------------------------

[2009-05-18 20:25:13] jf at netmadeira dot com

Sorry to post again, but checked 5.2.9 basic_functions.h

and the rule was:
#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) ||
defined(NETWARE))

in 5.3.0 bracket was added before HAVE_RES_SEARCH, think its that what
is triggering this.

------------------------------------------------------------------------

[2009-05-18 20:16:41] jf at netmadeira dot com

Whele, it seems its not cross-compiling fault!
ext/standard/dns.h has this rule for dns_get_record fucntion:

#if defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) ||
defined(NETWARE)))

# if defined(PHP_WIN32) || (HAVE_DN_SKIPNAME && HAVE_DN_EXPAND)
PHP_FUNCTION(dns_get_mx);
PHP_FUNCTION(dns_check_record);
# endif

#if defined(PHP_WIN32) || HAVE_DNS_FUNCS
PHP_FUNCTION(dns_get_record);
PHP_MINIT_FUNCTION(dns);
# endif

in ext/standard/basic_functions.c the prepocessor rule to define(/or
not) php dns_get_record function is:
#if defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) ||
defined(NETWARE)))

so, something is triggering the defenition of this function somewhere
else, think that this rule must be revised..

------------------------------------------------------------------------

[2009-05-18 18:49:20] jf at netmadeira dot com

Ok, I understand..
Do you have at least an ideia of what is causing it?? Maybe I can try
to fix it myself..

Best regards

------------------------------------------------------------------------

[2009-05-18 18:28:37] j...@php.net

Sorry, cross-compiling is not supported. If it works, fine, if you can

provide patches to fix issues, even better, but we are not going to try

fix them ourselves. 

------------------------------------------------------------------------

[2009-05-18 18:16:07] jf at netmadeira dot com

Just to add more info on the error:
/bin/sh /wdtv/wip/php-5.3.0/php5.3-snap/libtool --silent
--preserve-dup-deps --mode=compile mipsel-linux-gcc  -Iext/standard/
-I/wdtv/wip/php-5.3.0/php5.3-snap/ext/standard/ -DPHP_ATOM_INC
-I/wdtv/wip/php-5.3.0/php5.3-snap/include
-I/wdtv/wip/php-5.3.0/php5.3-snap/main -I/wdtv/wip/php-5.3.0/php5.3-snap
-I/wdtv/wip/php-5.3.0/php5.3-snap/ext/date/lib
-I/wdtv/wip/php-5.3.0/php5.3-snap/ext/ereg/regex
-I/usr/wdtvtool/include/libxml2 -I/tmp/.webspath/usr/include
-I/tmp/.webspath/usr/include/freetype2
-I/wdtv/wip/php-5.3.0/php5.3-snap/ext/sqlite3/libsqlite
-I/usr/wdtvtool/include -I/wdtv/wip/php-5.3.0/php5.3-snap/TSRM
-I/wdtv/wip/php-5.3.0/php5.3-snap/Zend  -I/usr/wdtvtool/include
-D_XPG_IV  -I/tmp/.webspath/usr/include -fvisibility=hidden  -c
/wdtv/wip/php-5.3.0/php5.3-snap/ext/standard/basic_functions.c -o
ext/standard/basic_functions.lo 
/wdtv/wip/php-5.3.0/php5.3-snap/ext/standard/basic_functions.c:3007:
error: 'zif_dns_check_record' undeclared here (not in a function)
make: *** [ext/standard/basic_functions.lo] Error 1

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48317

-- 
Edit this bug report at http://bugs.php.net/?id=48317&edit=1

Reply via email to