GithubHelp home page GithubHelp logo

Comments (18)

c9s avatar c9s commented on July 21, 2024

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 univeral, Macports support this, but I don't know what the option corresponding to this on homebrew is.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

Check this thread, hope this helps you.

http://librelist.com/browser//homebrew/2010/3/23/creating-universal-binaries-in-homebrew/#37df3230cdc60c89f92e78b71d0cc1d2

If it still doesn't work, try not to use gettext extension, use separate variants for your php, then use phpbrew install-ext gettext to build the gettext extension separately.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

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’:
/Users/c9s/.phpbrew/build/php-5.3.16/Zend/zend_objects.c:96: warning: assignment discards qualifiers from pointer target type

Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
_umsg_format_helper in msgformat_helpers.o
_umsg_parse_helper in msgformat_helpers.o
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for icu_48::UMemoryin msgformat_helpers.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"___gxx_personality_v0", referenced from:
_umsg_format_helper in msgformat_helpers.o
_umsg_parse_helper in msgformat_helpers.o
Dwarf Exception Unwind Info (__eh_frame) in msgformat_helpers.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

from phpbrew.

c9s avatar c9s commented on July 21, 2024

really strange because my gettext is compiled with "universal".

port installed gettext
The following ports are currently installed:
gettext @0.18.1.1_2
gettext @0.18.1.1_2+universal (active)

seems it needs to be fixed in PHP.

from phpbrew.

shouze avatar shouze commented on July 21, 2024

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 :

  • XCode version
  • phpbrew
  • I didn't had to install gettext at that time (is it an added requirement since last updates of phpbrew ?)

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 ?

from phpbrew.

c9s avatar c9s commented on July 21, 2024

I took off the --gettext options out from default, can you run self-update to get latest phpbrew for building ?

from phpbrew.

c9s avatar c9s commented on July 21, 2024

I think it might be caused by XCode, because I've built 5.3.* phps on Mac Lion. it works very well.

from phpbrew.

shouze avatar shouze commented on July 21, 2024

Ok thanks, I'll try in a little hour.

Le 4 sept. 2012 à 05:16, Yo-An Lin [email protected] a écrit :

I took off the --gettext options out from default, can you run self-update
to get latest phpbrew for building ?


Reply to this email directly or view it on
GitHubhttps://github.com//issues/24#issuecomment-8251404.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

Hi @shouze,

did it solve your problem?

I just googled and found something,

https://bugs.php.net/bug.php?id=48795

Maybe it helps.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

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

from phpbrew.

c9s avatar c9s commented on July 21, 2024

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

from phpbrew.

KonstantinKuklin avatar KonstantinKuklin commented on July 21, 2024

I have such problem now, where is the patch?

from phpbrew.

marcioAlmada avatar marcioAlmada commented on July 21, 2024

Patch is still functional, see here.

from phpbrew.

KonstantinKuklin avatar KonstantinKuklin commented on July 21, 2024

I tried to install 5 mins ago:

brew install php53
==> Downloading http://www.php.net/get/php-5.3.29.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php53-5.3.29
==> Patching
patching file configure
patching file configure.in
patching file Zend/zend_language_parser.y
patching file configure
patching file Zend/acinclude.m4
==> rm Zend/zend_{language,ini}_parser.[ch]
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
         of homebrew-php, or you are using a non-standard
         pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php53/5.3.29 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.3 --with-config-file-path=/usr/local/etc/php/5.3 --with-config-file-scan-dir=/usr
==> make
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libphp5.bundle] Error 1

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/josegonzalez/homebrew-php/issues

from phpbrew.

marcioAlmada avatar marcioAlmada commented on July 21, 2024

You're asking for help in the wrong place. This is phpbrew project, not homebrew.

Pleas go to https://github.com/josegonzalez/homebrew-php/issues or try phpbrew :)

from phpbrew.

KonstantinKuklin avatar KonstantinKuklin commented on July 21, 2024

😅 thx)

from phpbrew.

marcioAlmada avatar marcioAlmada commented on July 21, 2024

lol

from phpbrew.

c9s avatar c9s commented on July 21, 2024

note: sed fix 9844bb7

from phpbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.