I hope someone will be able to help me, though i realise I'm asking
for trouble trying to build against 5.4. I also have *no* experience
with C programming, making this harder I'm sure ;)
So, when i try to build 1.2.2 driver against php 5.4 (a branch
revision, not a alpha release), I get the following error:
cc -I./util -I. -I/Users/scottaubrey/src/mongo-php-driver -
DPHP_ATOM_INC -I/Users/scottaubrey/src/mongo-php-driver/include -I/
Users/scottaubrey/src/mongo-php-driver/main -I/Users/scottaubrey/src/
mongo-php-driver -I/Users/scottaubrey/.usr//include/php -I/Users/
scottaubrey/.usr//include/php/main -I/Users/scottaubrey/.usr//include/
php/TSRM -I/Users/scottaubrey/.usr//include/php/Zend -I/Users/
scottaubrey/.usr//include/php/ext -I/Users/scottaubrey/.usr//include/
php/ext/date/lib -I/Users/scottaubrey/src/mongo-php-driver/util -
DHAVE_CONFIG_H -arch x86_64 -arch i386 -arch x86_64 -arch ppc -arch
ppc64 -c /Users/scottaubrey/src/mongo-php-driver/mongo.c -DPIC
In file included from /Users/scottaubrey/src/mongo-php-driver/mongo.c:
46:
/Users/scottaubrey/src/mongo-php-driver/php_mongo.h:487: error:
expected declaration specifiers or ‘...’ before ‘list_entry’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:138: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_functions’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:144: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_methods’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:178: error:
‘mongo_functions’ undeclared here (not in a function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:267: error: expected
declaration specifiers or ‘...’ before ‘list_entry’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘kill_cursor’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: (Each
undeclared identifier is reported only once
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: for each
function it appears in.)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: too many
arguments to function ‘php_mongo_free_cursor_node’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:310: error: too many
arguments to function ‘php_mongo_free_cursor_node’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: At top level:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:313: error: expected
declaration specifiers or ‘...’ before ‘list_entry’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_free_cursor_node’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:338: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_free_cursor_le’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error:
‘list_entry’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:365: error: too many
arguments to function ‘kill_cursor’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:371: error: too many
arguments to function ‘kill_cursor’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_create_le’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error:
‘list_entry’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:437: error: expected
‘;’ before ‘new_le’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:438: error: ‘new_le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_link_new’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:741: error:
‘zend_class_entry’ has no member named ‘default_properties’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘mongo_init_Mongo’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:748: error:
‘mongo_methods’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_get_reply’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error:
‘list_entry’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2417: error: too many
arguments to function ‘php_mongo_free_cursor_node’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2469: error: too many
arguments to function ‘php_mongo_free_cursor_node’
In file included from /Users/scottaubrey/src/mongo-php-driver/mongo.c:
46:
/Users/scottaubrey/src/mongo-php-driver/php_mongo.h:487: error:
expected declaration specifiers or ‘...’ before ‘list_entry’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:138: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_functions’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:144: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_methods’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:178: error:
‘mongo_functions’ undeclared here (not in a function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:267: error: expected
declaration specifiers or ‘...’ before ‘list_entry’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘kill_cursor’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: (Each
undeclared identifier is reported only once
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: for each
function it appears in.)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: too many
arguments to function ‘php_mongo_free_cursor_node’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:310: error: too many
arguments to function ‘php_mongo_free_cursor_node’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: At top level:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:313: error: expected
declaration specifiers or ‘...’ before ‘list_entry’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_free_cursor_node’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:338: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_free_cursor_le’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error:
‘list_entry’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:365: error: too many
arguments to function ‘kill_cursor’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:371: error: too many
arguments to function ‘kill_cursor’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_create_le’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error:
‘list_entry’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:437: error: expected
‘;’ before ‘new_le’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:438: error: ‘new_le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_link_new’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:741: error:
‘zend_class_entry’ has no member named ‘default_properties’
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘mongo_init_Mongo’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:748: error:
‘mongo_methods’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c: In function
‘php_mongo_get_reply’:
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error:
‘list_entry’ undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: ‘le’
undeclared (first use in this function)
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2417: error: too many
arguments to function ‘php_mongo_free_cursor_node’
/Users/scottaubrey/src/mongo-php-driver/mongo.c:2469: error: too many
arguments to function ‘php_mongo_free_cursor_node’
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/
powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or
directory
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/
powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or
directory
lipo: can't figure out the architecture type of: /var/folders/_n/
_rb2rbhs5255c_8683qnh0700000gn/T//ccXMMB2u.out
make: *** [mongo.lo] Error 1
so I updated to the latest commit in the mongo-php-driver repo and
tried again, and got:
On Monday, August 8, 2011 at 6:56 PM, Scott Aubrey wrote: > Hi Guys
> I hope someone will be able to help me, though i realise I'm asking > for trouble trying to build against 5.4. I also have *no* experience > with C programming, making this harder I'm sure ;)
> So, when i try to build 1.2.2 driver against php 5.4 (a branch > revision, not a alpha release), I get the following error:
> cc -I./util -I. -I/Users/scottaubrey/src/mongo-php-driver - > DPHP_ATOM_INC -I/Users/scottaubrey/src/mongo-php-driver/include -I/ > Users/scottaubrey/src/mongo-php-driver/main -I/Users/scottaubrey/src/ > mongo-php-driver -I/Users/scottaubrey/.usr//include/php -I/Users/ > scottaubrey/.usr//include/php/main -I/Users/scottaubrey/.usr//include/ > php/TSRM -I/Users/scottaubrey/.usr//include/php/Zend -I/Users/ > scottaubrey/.usr//include/php/ext -I/Users/scottaubrey/.usr//include/ > php/ext/date/lib -I/Users/scottaubrey/src/mongo-php-driver/util - > DHAVE_CONFIG_H -arch x86_64 -arch i386 -arch x86_64 -arch ppc -arch > ppc64 -c /Users/scottaubrey/src/mongo-php-driver/mongo.c -DPIC > In file included from /Users/scottaubrey/src/mongo-php-driver/mongo.c: > 46: > /Users/scottaubrey/src/mongo-php-driver/php_mongo.h:487: error: > expected declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:138: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_functions’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:144: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_methods’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:178: error: > ‘mongo_functions’ undeclared here (not in a function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:267: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘kill_cursor’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: (Each > undeclared identifier is reported only once > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: for each > function it appears in.) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:310: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: At top level: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:313: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_node’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:338: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:365: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:371: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_create_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:437: error: expected > ‘;’ before ‘new_le’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:438: error: ‘new_le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_link_new’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:741: error: > ‘zend_class_entry’ has no member named ‘default_properties’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘mongo_init_Mongo’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:748: error: > ‘mongo_methods’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_get_reply’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2417: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2469: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > In file included from /Users/scottaubrey/src/mongo-php-driver/mongo.c: > 46: > /Users/scottaubrey/src/mongo-php-driver/php_mongo.h:487: error: > expected declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:138: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_functions’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:144: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_methods’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:178: error: > ‘mongo_functions’ undeclared here (not in a function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:267: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘kill_cursor’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: (Each > undeclared identifier is reported only once > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: for each > function it appears in.) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:310: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: At top level: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:313: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_node’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:338: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:365: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:371: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_create_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:437: error: expected > ‘;’ before ‘new_le’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:438: error: ‘new_le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_link_new’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:741: error: > ‘zend_class_entry’ has no member named ‘default_properties’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘mongo_init_Mongo’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:748: error: > ‘mongo_methods’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_get_reply’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2417: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2469: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/ > powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or > directory > llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/ > powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or > directory > lipo: can't figure out the architecture type of: /var/folders/_n/ > _rb2rbhs5255c_8683qnh0700000gn/T//ccXMMB2u.out > make: *** [mongo.lo] Error 1
> so I updated to the latest commit in the mongo-php-driver repo and > tried again, and got:
The PHP API changes every point release and the driver hasn't been updated for the 5.4 release, yet. There's a bug you can follow, if you're interested: https://jira.mongodb.org/browse/PHP-246.
I need to do a little bit of research, as the struct for object guts changed for 5.4 and I need to make sure that the driver is handling that correctly.
On Thu, Aug 11, 2011 at 2:14 AM, Tim Hawkins <tim.thawk...@gmail.com> wrote: > I would also be greatly interested in this, we are trying to bring up a > 5.4 environment for dev work, because of the introduction of "Traits".
> On Monday, August 8, 2011 at 6:56 PM, Scott Aubrey wrote:
> Hi Guys
> I hope someone will be able to help me, though i realise I'm asking > for trouble trying to build against 5.4. I also have *no* experience > with C programming, making this harder I'm sure ;)
> So, when i try to build 1.2.2 driver against php 5.4 (a branch > revision, not a alpha release), I get the following error:
> cc -I./util -I. -I/Users/scottaubrey/src/mongo-php-driver - > DPHP_ATOM_INC -I/Users/scottaubrey/src/mongo-php-driver/include -I/ > Users/scottaubrey/src/mongo-php-driver/main -I/Users/scottaubrey/src/ > mongo-php-driver -I/Users/scottaubrey/.usr//include/php -I/Users/ > scottaubrey/.usr//include/php/main -I/Users/scottaubrey/.usr//include/ > php/TSRM -I/Users/scottaubrey/.usr//include/php/Zend -I/Users/ > scottaubrey/.usr//include/php/ext -I/Users/scottaubrey/.usr//include/ > php/ext/date/lib -I/Users/scottaubrey/src/mongo-php-driver/util - > DHAVE_CONFIG_H -arch x86_64 -arch i386 -arch x86_64 -arch ppc -arch > ppc64 -c /Users/scottaubrey/src/mongo-php-driver/mongo.c -DPIC > In file included from /Users/scottaubrey/src/mongo-php-driver/mongo.c: > 46: > /Users/scottaubrey/src/mongo-php-driver/php_mongo.h:487: error: > expected declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:138: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_functions’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:144: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_methods’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:178: error: > ‘mongo_functions’ undeclared here (not in a function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:267: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘kill_cursor’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: (Each > undeclared identifier is reported only once > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: for each > function it appears in.) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:310: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: At top level: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:313: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_node’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:338: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:365: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:371: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_create_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:437: error: expected > ‘;’ before ‘new_le’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:438: error: ‘new_le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_link_new’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:741: error: > ‘zend_class_entry’ has no member named ‘default_properties’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘mongo_init_Mongo’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:748: error: > ‘mongo_methods’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_get_reply’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2417: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2469: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > In file included from /Users/scottaubrey/src/mongo-php-driver/mongo.c: > 46: > /Users/scottaubrey/src/mongo-php-driver/php_mongo.h:487: error: > expected declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:138: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_functions’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:144: error: expected > ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mongo_methods’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:178: error: > ‘mongo_functions’ undeclared here (not in a function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:267: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘kill_cursor’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: (Each > undeclared identifier is reported only once > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: for each > function it appears in.) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:277: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:310: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: At top level: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:313: error: expected > declaration specifiers or ‘...’ before ‘list_entry’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_node’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:338: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_free_cursor_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:348: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:365: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:371: error: too many > arguments to function ‘kill_cursor’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_create_le’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:386: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:437: error: expected > ‘;’ before ‘new_le’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:438: error: ‘new_le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_link_new’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:741: error: > ‘zend_class_entry’ has no member named ‘default_properties’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘mongo_init_Mongo’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:748: error: > ‘mongo_methods’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c: In function > ‘php_mongo_get_reply’: > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: > ‘list_entry’ undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2407: error: ‘le’ > undeclared (first use in this function) > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2417: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > /Users/scottaubrey/src/mongo-php-driver/mongo.c:2469: error: too many > arguments to function ‘php_mongo_free_cursor_node’ > llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/ > powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or > directory > llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/ > powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or > directory