php5.5和5.4动态安装mysql扩展错误(ext/mysqlnd/mysqlnd.h: No such file or directory)

错误如下:

IED_224_185_sles10sp1:/data/xingzheng/software/php-5.5.10/ext/mysql # 
IED_224_185_sles10sp1:/data/xingzheng/software/php-5.5.10/ext/mysql # make
/bin/sh /data/xingzheng/software/php-5.5.10/ext/mysql/libtool --mode=compile cc  -I. -I/data/xingzheng/software/php-5.5.10/ext/mysql -DPHP_ATOM_INC -I/data/xingzheng/software/php-5.5.10/ext/mysql/include -I/data/xingzheng/software/php-5.5.10/ext/mysql/main -I/data/xingzheng/software/php-5.5.10/ext/mysql -I/data/xingzheng/install/php-5.5.10/include/php -I/data/xingzheng/install/php-5.5.10/include/php/main -I/data/xingzheng/install/php-5.5.10/include/php/TSRM -I/data/xingzheng/install/php-5.5.10/include/php/Zend -I/data/xingzheng/install/php-5.5.10/include/php/ext -I/data/xingzheng/install/php-5.5.10/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c -o php_mysql.lo 
mkdir .libs
 cc -I. -I/data/xingzheng/software/php-5.5.10/ext/mysql -DPHP_ATOM_INC -I/data/xingzheng/software/php-5.5.10/ext/mysql/include -I/data/xingzheng/software/php-5.5.10/ext/mysql/main -I/data/xingzheng/software/php-5.5.10/ext/mysql -I/data/xingzheng/install/php-5.5.10/include/php -I/data/xingzheng/install/php-5.5.10/include/php/main -I/data/xingzheng/install/php-5.5.10/include/php/TSRM -I/data/xingzheng/install/php-5.5.10/include/php/Zend -I/data/xingzheng/install/php-5.5.10/include/php/ext -I/data/xingzheng/install/php-5.5.10/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c  -fPIC -DPIC -o .libs/php_mysql.o
In file included from /data/xingzheng/install/php-5.5.10/include/php/Zend/zend_compile.h:719,
                 from /data/xingzheng/install/php-5.5.10/include/php/Zend/zend_modules.h:26,
                 from /data/xingzheng/install/php-5.5.10/include/php/Zend/zend_API.h:26,
                 from /data/xingzheng/install/php-5.5.10/include/php/main/php.h:38,
                 from /data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:32:
/data/xingzheng/install/php-5.5.10/include/php/Zend/zend_vm_opcodes.h:173:7: warning: no newline at end of file
In file included from /data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:69:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql_structs.h:39:33: error: ext/mysqlnd/mysqlnd.h: No such file or directory
In file included from /data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql_structs.h:40,
                 from /data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:69:
/data/xingzheng/software/php-5.5.10/ext/mysql/mysql_mysqlnd.h:25:49: error: ext/mysqlnd/mysqlnd_libmysql_compat.h: No such file or directory
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:123: error: expected specifier-qualifier-list before ‘MYSQL’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘_free_mysql_result’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:415: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:415: error: (Each undeclared identifier is reported only once
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:415: error: for each function it appears in.)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:415: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:415: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘php_mysql_select_db’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:438: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:438: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:438: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:438: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:438: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:438: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:440: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘_close_mysql_link’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:456: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘_close_mysql_plink’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:471: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:533:45: error: ext/mysqlnd/mysqlnd_reverse_api.h: No such file or directory
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: At top level:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:534: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:552: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_reverse_api’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zm_startup_mysql’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:571: error: ‘CLIENT_COMPRESS’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:575: error: ‘CLIENT_INTERACTIVE’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:576: error: ‘CLIENT_IGNORE_SPACE’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:587: error: ‘mysql_reverse_api’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘php_mysql_do_connect’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:774: error: ‘CLIENT_INTERACTIVE’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:806: error: ‘CLIENT_LOCAL_FILES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:842: error: ‘mysql_port’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:870: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:874: error: ‘php_mysql_conn’ has no member named ‘multi_query’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:880: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:884: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:884: error: ‘MYSQL_OPT_CONNECT_TIMEOUT’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:889: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:889: warning: comparison between pointer and integer
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:896: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:896: warning: passing argument 1 of ‘_estrdup’ makes pointer from integer without a cast
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:899: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:905: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:905: error: ‘MYSQL_OPT_LOCAL_INFILE’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:922: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:926: error: ‘php_mysql_conn’ has no member named ‘multi_query’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:932: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:933: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:937: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:937: warning: comparison between pointer and integer
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:945: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:949: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:991: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:999: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1001: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1010: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1016: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1016: warning: comparison between pointer and integer
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1023: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1023: warning: passing argument 1 of ‘_estrdup’ makes pointer from integer without a cast
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1026: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1030: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1030: error: ‘MYSQLND_CLOSE_DISCONNECTED’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1036: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_close’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1104: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1104: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1104: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1104: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1104: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1104: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1109: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_get_host_info’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1190: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_get_proto_info’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1213: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_get_server_info’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1236: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_info’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1260: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_thread_id’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1286: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_stat’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1312: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1312: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1312: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1312: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1312: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1312: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1317: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1317: error: ‘PASS’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_client_encoding’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1344: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_set_charset’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1370: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_create_db’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1402: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1402: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1402: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1402: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1402: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1402: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1404: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_drop_db’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1433: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘php_mysql_do_query_general’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1448: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1448: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1458: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1458: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1458: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1458: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1458: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1503: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1506: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1507: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1514: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1516: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1519: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1529: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_list_dbs’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1606: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1606: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1620: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1620: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1620: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1620: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1620: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1623: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_list_tables’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1642: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1642: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1659: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1659: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1659: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1659: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1659: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1661: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_list_fields’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1680: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1680: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1697: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1697: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1697: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1697: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1697: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1699: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_list_processes’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1715: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1715: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1728: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1728: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1728: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1728: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1728: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1730: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_error’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1767: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_errno’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1798: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_affected_rows’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1824: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_real_escape_string’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1877: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_insert_id’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1904: error: ‘php_mysql_conn’ has no member named ‘conn’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_result’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1916: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1916: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1932: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1944: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:1944: error: ‘tmp_field’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_num_rows’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2021: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2021: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2027: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_num_fields’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2040: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2040: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2046: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘php_mysql_fetch_hash’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2057: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2057: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2103: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2155: error: ‘MYSQLND_FETCH_NUM’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2155: error: ‘MYSQLND_FETCH_ASSOC’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2155: error: ‘MYSQLND_MYSQL’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_data_seek’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2274: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2274: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2280: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_fetch_lengths’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2297: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2297: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2306: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2308: warning: assignment makes pointer from integer without a cast
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘php_mysql_get_field_name’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2325: error: ‘FIELD_TYPE_STRING’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2326: error: ‘FIELD_TYPE_VAR_STRING’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2330: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2335: error: ‘FIELD_TYPE_SHORT’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2336: error: ‘FIELD_TYPE_LONG’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2337: error: ‘FIELD_TYPE_LONGLONG’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2338: error: ‘FIELD_TYPE_INT24’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2341: error: ‘FIELD_TYPE_FLOAT’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2342: error: ‘FIELD_TYPE_DOUBLE’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2343: error: ‘FIELD_TYPE_DECIMAL’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2349: error: ‘FIELD_TYPE_TIMESTAMP’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2357: error: ‘FIELD_TYPE_DATE’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2363: error: ‘FIELD_TYPE_TIME’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2366: error: ‘FIELD_TYPE_SET’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2369: error: ‘FIELD_TYPE_ENUM’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2377: error: ‘FIELD_TYPE_DATETIME’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2380: error: ‘FIELD_TYPE_TINY_BLOB’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2381: error: ‘FIELD_TYPE_MEDIUM_BLOB’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2382: error: ‘FIELD_TYPE_LONG_BLOB’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2383: error: ‘FIELD_TYPE_BLOB’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2386: error: ‘FIELD_TYPE_NULL’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_fetch_field’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2402: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2402: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2403: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2403: error: ‘mysql_field’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2409: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2429: error: ‘MULTIPLE_KEY_FLAG’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2430: error: ‘UNIQUE_KEY_FLAG’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2434: error: ‘UNSIGNED_FLAG’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2435: error: ‘ZEROFILL_FLAG’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_field_seek’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2446: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2446: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2451: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘php_mysql_field_info’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2475: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2475: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2476: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2476: error: ‘mysql_field’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2476: error: expected expression before ‘{’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2484: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_free_result’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2646: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2646: error: ‘mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2656: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c: In function ‘zif_mysql_ping’:
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2680: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2680: error: ‘MYSQL_RES’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2680: error: ‘_mysql_result’ undeclared (first use in this function)
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2680: error: expected expression before ‘)’ token
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2680: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2680: error: ‘php_mysql_conn’ has no member named ‘active_result_id’
/data/xingzheng/software/php-5.5.10/ext/mysql/php_mysql.c:2682: error: ‘php_mysql_conn’ has no member named ‘conn’
make: *** [php_mysql.lo] Error 1
IED_224_185_sles10sp1:/data/xingzheng/software/php-5.5.10/ext/mysql # 
IED_224_185_sles10sp1:/data/xingzheng/software/php-5.5.10/ext/mysql # 



解决办法:

重新安装php,在编译php的时候,加上 mysql配置如下:

./configure --prefix=/data/home/xingzheng/install/php-5.5.10 --with-libxml-dir=/data/xingzheng/install/libxml2-2.7.2 --enable-sockets=shared  --with-mysql=shared,mysqlnd




你可能感兴趣的:(php5.5和5.4动态安装mysql扩展错误(ext/mysqlnd/mysqlnd.h: No such file or directory))