Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
php driver on Mac OS X Lion against php 5.4
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott Aubrey  
View profile  
 More options Aug 8 2011, 6:56 am
From: Scott Aubrey <sc...@aubrey.org.uk>
Date: Mon, 8 Aug 2011 03:56:45 -0700 (PDT)
Local: Mon, Aug 8 2011 6:56 am
Subject: php driver on Mac OS X Lion against php 5.4
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:

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

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hawkins  
View profile  
 More options Aug 11 2011, 2:14 am
From: Tim Hawkins <tim.thawk...@gmail.com>
Date: Thu, 11 Aug 2011 14:14:53 +0800
Local: Thurs, Aug 11 2011 2:14 am
Subject: Re: [mongodb-dev] php driver on Mac OS X Lion against php 5.4

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

--  
Tim Hawkins
Sent with Sparrow (http://bit.ly/sigsprw)

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Aug 11 2011, 10:43 am
From: Kristina Chodorow <krist...@10gen.com>
Date: Thu, 11 Aug 2011 10:43:55 -0400
Local: Thurs, Aug 11 2011 10:43 am
Subject: Re: [mongodb-dev] php driver on Mac OS X Lion against php 5.4

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.

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »