Re: [PHP] Compilation trouble on OS X
On 12 Jun 2005, at 04:17, Richard Lynch wrote: I vaguely recall an issue with mb_* where people saw this nifty new feature and turned it on having no idea what it was, and, well, they didn't really want that feature turned on at all... This could be the same thing. Or not. Try ./configure --without-mbstring Unfortunately I'm deliberately enabling mbstring because I need multibyte string support, along with mbregex... If I could live without these extensions I wouldn't need to recompile. I just tried compiling on a clean install of 10.4, with a clean install of fink (I'm using some fink packages like apache2, JPEG, PNG, etc) and I'm still getting the ld problem I mentioned. Think I may have to report it as a bug and see what comes of that. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compilation trouble on OS X
On 13 Jun 2005, at 10:52, Marcus Bointon wrote: I just tried compiling on a clean install of 10.4, with a clean install of fink (I'm using some fink packages like apache2, JPEG, PNG, etc) and I'm still getting the ld problem I mentioned. Think I may have to report it as a bug and see what comes of that. A little perseverance always helps... I went through my configure command and removed a few possibly obsolete directives. I then ran into a dependency on gdbm that I can't explain, but after adding that in, I'm happy to report that it now works. For the record, here's my working config while building PHP 5.0.4 on OS X 10.4.1 as an apache2handler using fink libraries, also notable is that it also enables both mysql and mysqli extensions simultaneously: './configure' \ '--disable-overload' \ '--enable-bcmath' \ '--enable-calendar' \ '--enable-dba' \ '--enable-exif' \ '--enable-ftp' \ '--enable-gd-imgstrttf' \ '--enable-gd-native-ttf' \ '--enable-mbregex' \ '--enable-mbstring' \ '--enable-mcal' \ '--enable-pcntl' \ '--enable-shmop' \ '--enable-soap' \ '--enable-sockets' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-track-vars' \ '--enable-wddx' \ '--sysconfdir=/etc' \ '--with-apxs2=/sw/sbin/apxs' \ '--with-bz2' \ '--with-config-file-path=/etc' \ '--with-config-file-scan-dir=/etc/php.d' \ '--with-curl' \ '--with-dom=/usr' \ '--with-freetype2-dir=/sw' \ '--with-gd' \ '--with-gdbm=/sw' \ '--with-gettext=/sw' \ '--with-iconv' \ '--with-imap-ssl=/sw' \ '--with-jpeg-dir=/sw' \ '--with-png-dir=/sw' \ '--with-ldap' \ '--with-mcrypt=/sw' \ '--with-mhash=/sw' \ '--with-mysql=/usr/local/mysql' \ '--with-mysqli=/usr/local/mysql/bin/mysql_config' \ '--with-openssl' \ '--with-pcre' \ '--with-pear' \ '--with-png' \ '--with-ttf' \ '--with-xml' \ '--with-xsl' \ '--with-zlib' \ '--without-oci8' Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compilation trouble on OS X
On Thu, June 9, 2005 5:32 am, Marcus Bointon said: I've been beating my head against this - I've done this so many times on BSD and Linux but I just can't get PHP 5.0.4 to compile on OS X. Even the simplest case: ./configure make fails with: /usr/bin/ld: Undefined symbols: _mbstring_globals _php_mb_encoding_translation I vaguely recall an issue with mb_* where people saw this nifty new feature and turned it on having no idea what it was, and, well, they didn't really want that feature turned on at all... This could be the same thing. Or not. Try ./configure --without-mbstring Only you'll have to check ./configure --help | grep mb and see how to actually turn it off. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compilation trouble on OS X
I've been beating my head against this - I've done this so many times on BSD and Linux but I just can't get PHP 5.0.4 to compile on OS X. Even the simplest case: ./configure make fails with: /usr/bin/ld: Undefined symbols: _mbstring_globals _php_mb_encoding_translation _php_mb_gpc_encoding_converter _php_mb_gpc_encoding_detector _php_mb_gpc_mbchar_bytes _php_mb_strrchr _php_ob_gzhandler_check collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 I'm running 10.4.1 on a dual G4. I've also built a much more complex configuration (why I need to do this) that configures OK, but gives me this on make: /usr/bin/ld: unknown flag: -export-symbols collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 OS X's ld command definitely lacks this option, so I removed references to it from the configure script, and just got some different errors. I have an up to date fink installed and I'm pulling in some stuff from there (jpeg, freetype etc), and my CFLAGS contains: DBIND_8_COMPAT=1 -DEAPI -O3 -mcpu=G4 -mtune=G4 -I/sw/include (I've tried emptying it too, same error) I can't use the Entropy binaries as they're missing some extensions I need. There are no bugs posted on the PHP tracker that match these errors, so it's clearly not a common problem. Any ideas what might be broken, and how I might fix it? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compilation trouble on OS X
On Jun 9, 2005, at 8:32 AM, Marcus Bointon wrote: I've been beating my head against this - I've done this so many times on BSD and Linux but I just can't get PHP 5.0.4 to compile on OS X. Even the simplest case: Do you have the latest XCode installed? I think there was a recent update for OS X 10.4. I did not have any problems compiling PHP 5.0.4 with OS X 10.3, but I have not tried 10.4 yet. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compilation trouble on OS X
On 9 Jun 2005, at 15:46, John DeSoi wrote: Do you have the latest XCode installed? I think there was a recent update for OS X 10.4. I did not have any problems compiling PHP 5.0.4 with OS X 10.3, but I have not tried 10.4 yet. I do have XCode 2.1, but I don't think it has anything to do with this. PHP's build system is completely independent of XCode. PHP uses normal Unix-type tools such as gcc, make, ld, libtool, autoconf etc. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compilation trouble on OS X
I'm pretty sure you have to install the developer tools in order to get the gcc compiler installed. So while you don't need XCode to compile, you do need the developer tools, which is almost synonymous with XCode. Doesn't 10.4 ship with gcc 4? I know I read about some bugs and problem with gcc 4, some specifically related to PPC chips. Do you know if you are compiling using 3.3 or 4.0? On Jun 9, 2005, at 1:04 PM, Marcus Bointon wrote: On 9 Jun 2005, at 15:46, John DeSoi wrote: Do you have the latest XCode installed? I think there was a recent update for OS X 10.4. I did not have any problems compiling PHP 5.0.4 with OS X 10.3, but I have not tried 10.4 yet. I do have XCode 2.1, but I don't think it has anything to do with this. PHP's build system is completely independent of XCode. PHP uses normal Unix-type tools such as gcc, make, ld, libtool, autoconf etc. Marcus -- Brent Baisley Systems Architect Landover Associates, Inc. Search Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compilation trouble on OS X
On 9 Jun 2005, at 18:11, Brent Baisley wrote: I'm pretty sure you have to install the developer tools in order to get the gcc compiler installed. So while you don't need XCode to compile, you do need the developer tools, which is almost synonymous with XCode. Of course I have the developer tools installed - I wouldn't even be able to attempt a compile without them. XCode is an IDE - it provides project management and a nice GUI for lower level tools, however, it is squarely targeted at development of OS X applications that are set up as XCode projects, which does not include PHP. Bear in mind that almost none of the thousands of open source projects available via sources like fink have anything to do with XCode - they're all designed for a standard unix-style build system using the tools I mentioned. Doesn't 10.4 ship with gcc 4? I know I read about some bugs and problem with gcc 4, some specifically related to PPC chips. Do you know if you are compiling using 3.3 or 4.0? I'm using the standard system gcc 4.0.0, but this is a problem with the parameters (defined in the PHP configure script) passed to ld, so strictly speaking this is a linking rather than a compiling problem (i.e. the problem occurs after gcc has finished successfully). It seems that the OS X ld has different options to the GNU or BSD implementations, so I guess I'm really after someone that knows ld well enough. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php