-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mountain lion : 5.3.* compilation error #24
Comments
it seems that you need 64bit lib for compiling gettext, but the 64bit library is not found. (when you link gettext) In Mac OS, there is a binary format called |
Check this thread, hope this helps you. If it still doesn't work, try not to use gettext extension, use separate variants for your php, then use |
OK, I just got the same error: /Users/c9s/.phpbrew/build/php-5.3.16/Zend/zend_objects.c: In function ‘zend_objects_destroy_object’: Undefined symbols for architecture x86_64: |
really strange because my gettext is compiled with "universal". port installed gettext seems it needs to be fixed in PHP. |
I've forced installation from source for icu4c & gettext but I only have x86_64 binaries. I already have compiled few weeks ago php 5.3.15 with success on mountain lion (was on an iMac whereas I'm trying to compile on a MBA at the moment). The only things that may have changed since are :
So I have tried to compile again on the iMac, same issue! php-5.3.15 & php-5.3.16 source code hasn't changed since, true ? Son before investigating into XCode upgrade, do you know if a recent (1 mont max) change into phpbrew would produce such issue ? |
I took off the --gettext options out from default, can you run self-update to get latest phpbrew for building ? |
I think it might be caused by XCode, because I've built 5.3.* phps on Mac Lion. it works very well. |
Ok thanks, I'll try in a little hour. Le 4 sept. 2012 à 05:16, Yo-An Lin notifications@github.com a écrit : I took off the --gettext options out from default, can you run self-update — |
Hi @shouze, did it solve your problem? I just googled and found something, https://bugs.php.net/bug.php?id=48795 Maybe it helps. |
Found the solution, it's a bug of PHP source. http://blog.gcos.me/2012-10-19_how-to-compile-php53-on-64bit-linux-macos.html |
We now have a built-in patch for building php 5.3.x , I just tested it on my Mac OS X, that should work. ;-) |
I have such problem now, where is the patch? |
Patch is still functional, see here. |
I tried to install 5 mins ago:
|
You're asking for help in the wrong place. This is Pleas go to https://github.com/josegonzalez/homebrew-php/issues or try phpbrew :) |
😅 thx) |
lol |
note: sed fix 9844bb7 |
Hi,
I'm able to install php 5.4.* but can't install 5.3.*.
Seems to be a c++ and/or gettext concern.
I'm running mountain lion with the latest XCode version (4.4.1).
I have installed brew dependencies as notified in the Readme.
Here is my install command :
Even 5.3.15 is not working.
The only thing I've made differently from Readme is linking gettext (brew link gettext) as if I don't make this link it's worse, I have an abort saying c++ compiler don't work at all :
Without brew link gettext
With brew link gettext
Any idea ? I've noticed than 5.4.* version are compiled against clang, 5.3.* with llvm-gcc.
The text was updated successfully, but these errors were encountered: