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

asked 17 Nov '11, 10:47

Sven's gravatar image

Sven
31114
accept rate: 0%

edited 05 Jul '12, 05:53

Volker%20Barth's gravatar image

Volker Barth
31.3k312458674


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

permanent link

answered 05 Jul '12, 05:48

kaaposc's gravatar image

kaaposc
10624
accept rate: 0%

edited 05 Jul '12, 06:18

Thanks a lot, compiling worked.

(09 Oct '12, 06:55) Sven
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×414
×61
×61
×47

question asked: 17 Nov '11, 10:47

question was seen: 1,961 times

last updated: 09 Oct '12, 07:11