ID: 36708 User updated by: jerome at macsaresexy dot com Reported By: jerome at macsaresexy dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Mac OS X 10.4.5 PHP Version: 5.1.2 New Comment:
I tried autoconf 2.13 by removing the configure file and running /sw/bin/autoconf which is where it was installed (thru fink), not sure if that's proper enough. I then ran ./ configure and put the makefile on the internet: http://www.jeremyknope.com/files/Makefile-pdo-autoconf2.13.txt Previous Comments: ------------------------------------------------------------------------ [2006-03-13 15:05:17] [EMAIL PROTECTED] Please try with autoconf 2.13 and put the result Makefile somewhere in the Net, so we can take a look at it. ------------------------------------------------------------------------ [2006-03-13 14:59:49] jerome at macsaresexy dot com autoconf 2.59 which i believe is same as my linux machine i tested on. automake is 1.6.3, the linux box was recently switched to 1.8 due to requirement to build lighttpd web server. is that a possibility? ------------------------------------------------------------------------ [2006-03-13 08:30:57] [EMAIL PROTECTED] What autoconf version are you using? ------------------------------------------------------------------------ [2006-03-13 07:37:32] jerome at macsaresexy dot com Apparently this is not just PDO, it's the majority of the extensions, nothing obvious in similarity. PDO, curl, XSL fail, gd and mysql succeeded. Mysql required editing configure to link to libz (or defining LDFLAGS might've worked) So it seems in general the configure/makefile setup with PHP extensions in OS X has issues with leaving out the compile instructions ------------------------------------------------------------------------ [2006-03-12 23:59:10] jerome at macsaresexy dot com Description: ------------ phpize runs, configure runs, but make fails to produce any actually compilation. This successfully works on a linux machine with similar configured php, something in the makefile generation fails to include something I suppose. I can't seem to find anything except that this might be a bug with OS X setup. Reproduce code: --------------- Using PHP built with configure line: './configure' '--enable-memory-limit' '--with-layout=GNU' '--prefix=/usr/local/php5' '--disable-all' '--enable-xml' '--enable-libxml' '--enable-spl' '--with-regex=php' '--disable-cli' '--enable-force-cgi-redirect' '--enable-fastcgi' PDO extension fails to build on OS X, with no failures or even attempts at building. Phpize and configure successfully run but not make. Expected result: ---------------- Compilation of the module should've happened after 'make' not nothing. Actual result: -------------- Actual result is this: $ phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 $ ./configure checking for egrep... grep -E checking for a sed that does not truncate output... /usr/ bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... no checking build system type... powerpc-apple-darwin8.5.0 checking host system type... powerpc-apple-darwin8.5.0 checking target system type... powerpc-apple-darwin8.5.0 checking for PHP prefix... /usr/local/php5 checking for PHP includes... -I/usr/local/php5/include/php - I/usr/local/php5/include/php/main -I/usr/local/php5/include/ php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/ php5/include/php/ext checking for PHP extension directory... /usr/local/php5/lib/ php/20050922 checking for PHP installed headers prefix... /usr/local/ php5/include/php checking for re2c... no configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable PDO support... yes, shared checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.5.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.5.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged $ make Build complete. (It is safe to ignore warnings about tempnam and tmpnam). $ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36708&edit=1