Operating System - HP-UX
1753845 Members
7701 Online
108806 Solutions
New Discussion юеВ

Re: compiling php 5.3.3 on hp-ux 11.23

 
K2view
New Member

compiling php 5.3.3 on hp-ux 11.23

Hi,

I'm trying to compile php 5.3.3 on HP 11.23

Here is the configure:
./configure --prefix=/usr/local/php.5.3.3 --with-mysqli=mysqlnd --enable-libxml --with-libxml-dir=/usr/local/libxml2-2.7 --disable-dom

The configure has no problem when trying to run make I'm getting this error:
/bin/sh /system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc  -Imain/ -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/main/ -DPHP_ATOM_INC -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/include -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/main -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3 -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/ext/date/lib -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/ext/ereg/regex -I/usr/local/libxml2-2.7/include/libxml2 -I/usr/local/mysql/include/mysql -I/oravl01/oracle/10.2.0.3/rdbms/public -I/oravl01/oracle/10.2.0.3/rdbms/demo -I/oravl01/oracle/10.2.0.3/plsql/public -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/ext/sqlite3/libsqlite -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/TSRM -I/system_kits/tmp/alexai/PHP/php.5.3.5/php-5.3.3/Zend  -D_XOPEN_SOURCE_EXTENDED  -I/usr/local/include -g -O2 -fvisibility=hidden  -c main/internal_functions.c -o main/internal_functions.lo
main/internal_functions.c:60: error: 'phpext_mysqlnd_ptr' undeclared here (not in a function)
main/internal_functions.c:63: error: 'phpext_spl_ptr' undeclared here (not in a function)
main/internal_functions.c:67: error: 'phpext_posix_ptr' undeclared here (not in a function)
main/internal_functions.c:68: error: 'phpext_reflection_ptr' undeclared here (not in a function)
main/internal_functions.c:69: error: 'phpext_session_ptr' undeclared here (not in a function)
main/internal_functions.c:70: error: 'phpext_simplexml_ptr' undeclared here (not in a function)
main/internal_functions.c:71: error: 'phpext_sqlite_ptr' undeclared here (not in a function)
main/internal_functions.c:72: error: 'phpext_standard_ptr' undeclared here (not in a function)
main/internal_functions.c:73: error: 'phpext_tokenizer_ptr' undeclared here (not in a function)
main/internal_functions.c:74: error: 'phpext_xml_ptr' undeclared here (not in a function)
main/internal_functions.c:75: error: 'phpext_xmlreader_ptr' undeclared here (not in a function)
main/internal_functions.c:76: error: 'phpext_xmlwriter_ptr' undeclared here (not in a function)
gmake: *** [main/internal_functions.lo] Error 1

Any idea?
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: compiling php 5.3.3 on hp-ux 11.23

>internal_functions.c:60: error: 'phpext_mysqlnd_ptr' undeclared here

What's on lines 50 to 80 of that file?
K2view
New Member

Re: compiling php 5.3.3 on hp-ux 11.23

47 static zend_module_entry *php_builtin_extensions[] = {
48 phpext_date_ptr,
49 phpext_ereg_ptr,
50 phpext_libxml_ptr,
51 phpext_pcre_ptr,
52 phpext_sqlite3_ptr,
53 phpext_ctype_ptr,
54 phpext_dom_ptr,
55 phpext_fileinfo_ptr,
56 phpext_filter_ptr,
57 phpext_hash_ptr,
58 phpext_iconv_ptr,
59 phpext_json_ptr,
60 phpext_spl_ptr,
61 phpext_pdo_ptr,
62 phpext_pdo_sqlite_ptr,
63 phpext_phar_ptr,
64 phpext_posix_ptr,
65 phpext_reflection_ptr,
66 phpext_session_ptr,
67 phpext_simplexml_ptr,
68 phpext_sqlite_ptr,
69 phpext_standard_ptr,
70 phpext_tokenizer_ptr,
71 phpext_xml_ptr,
72 phpext_xmlreader_ptr,
73 phpext_xmlwriter_ptr,
74
75 };
76
77 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
78
79 PHPAPI int php_register_internal_extensions(TSRMLS_D)
80 {
81 return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC);
82 }
83
84 /*
85 * Local variables:
86 * tab-width: 4
87 * c-basic-offset: 4
88 * End:
89 */
Dennis Handly
Acclaimed Contributor

Re: compiling php 5.3.3 on hp-ux 11.23

60 phpext_spl_ptr,
63 phpext_phar_ptr, etc.

Are these variables declared anywhere?
K2view
New Member

Re: compiling php 5.3.3 on hp-ux 11.23

I don't know,

internal_function is part of the php 5.3.3 source code.
Dennis Handly
Acclaimed Contributor

Re: compiling php 5.3.3 on hp-ux 11.23

>I don't know,

Try grepping for phpext_spl_ptr. Are they in a .h?
Is it suppose to be a function? What is a zend_module_entry?