cancel
Showing results for 
Search instead for 
Did you mean: 

PHP 5.4 RC + SQLAnywhere Compile Error

Former Member
3,827

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....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

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

Former Member
0 Kudos

Thanks a lot, compiling worked.