on 2011 Nov 17 10:47 AM
Hi,
I tried to compile the new PHP 5.4 RC1 for testing / possible later upgrade with SQLAnywhere 12.0.1.3457 support under openSuSE 12.1 ... but this does not work. With PHP 5.3.8 it is/was working.
I think it may because a newer autoconf version or some changed compiler options ?! Any suggestions ?
/usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c: In function ‘SQLAnywhereConnect’: /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1078:2: error: unknown type name ‘list_entry’ /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1084:6: error: unknown type name ‘list_entry’ /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1140:12: error: request for member ‘type’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1141:12: error: request for member ‘ptr’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1142:10: error: ‘list_entry’ undeclared (first use in this function) /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1142:10: note: each undeclared identifier is reported only once for each function it appears in /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1155:12: error: request for member ‘type’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1162:47: error: request for member ‘ptr’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1174:15: error: ‘index_ptr’ undeclared (first use in this function) /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1174:26: error: ‘new_index_ptr’ undeclared (first use in this function) /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c: In function ‘zif_sasql_pconnect_from_sqlca’: /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1273:5: error: unknown type name ‘list_entry’ /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1274:5: error: unknown type name ‘list_entry’ /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1331:11: error: request for member ‘type’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1332:11: error: request for member ‘ptr’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1333:9: error: ‘list_entry’ undeclared (first use in this function) /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c: In function ‘zif_sasql_close’: /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1360:5: error: unknown type name ‘list_entry’ /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:1374:32: error: request for member ‘ptr’ in something not a structure or union /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c: In function ‘sasql_fetch_hash’: /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:2170:6: error: ‘pval’ undeclared (first use in this function) /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:2170:6: error: expected expression before ‘)’ token /usr/local/src/php-5.4.0RC1/ext/sqlanywhere/sqlanywhere.c:2180:6: error: expected expression before ‘)’ token make: *** [ext/sqlanywhere/sqlanywhere.lo] Error 1 make: *** Waiting for unfinished jobs....
Request clarification before answering.
Due to changes in Zend API 'list_entry
' is now called 'zend_rsrc_list_entry
'. Also, pval
is alias to zval
. After I replaced these, make all
succeeded. Not yet sure if I got everything right, but early tests seem to be OK. I pastebined a patch: http://pastebin.com/7hUHvVXQ
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.