ID:               34089
 Comment by:       asokan dot anish at gmail dot com
 Reported By:      [EMAIL PROTECTED]
 Status:           No Feedback
 Bug Type:         Compile Failure
 Operating System: Mac OS X 10.4.8
 PHP Version:      6CVS-2006-10-03
 New Comment:

I installed the gcc-c++ binaries and its dependencies.

using yum install gcc-c++.i386 gcc-libstc++

though there were some 5 more depended files.

The error:

configure: error: installation or configuration problem: C++ compiler
cannot create executables.

was resolved.

and I the configuration script sucessfully completed!

I was able to install php 5.2.3 with apache httpd-2.2.4, mysql-5.0.45,
libxml2-2.6.29, zlib-1.2.3, libpng-1.2.18, gd-2.0.35 etc.

Anish Asokan


Previous Comments:
------------------------------------------------------------------------

[2007-08-10 01:02:49] asokan dot anish at gmail dot com

I was using the configure script :

./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs --disable-debug
--enable-inline-optimization --sysconfdir=/etc --with-png-dir=/usr
--with-png --with-gettext --with-zlib --with-mysql=/usr/local/mysql
--enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars
--enable-trans-sid --enable-yp --enable-tidy --enable-wddx=shared
--enable-mbstring --enable-mm=shared --enable-safe-mode --enable-xml
--with-dom --with-libxml-dir=/usr --with-xml --with-gd=shared
--with-regex=system --enable-dom --with-libxml-dir=/usr


I was also getting the same error.

But I installed, 3 rpm packages.

1] libxml2
2] libxml2-devel
3] zlib-devel

using the command

yum install libxml2 libxml2-devel

zlib-devel was automatically installed as a dependency.


After that the same configure script resolved the libxml error.

but I ended up in a different one!!


Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc   ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot create executables.

I think its something related with my compilers. Let me try another
round of yum install...

------------------------------------------------------------------------

[2007-07-30 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-07-22 23:28:49] [EMAIL PROTECTED]

Is this still a problem in latest HEAD?

------------------------------------------------------------------------

[2006-10-03 23:31:41] [EMAIL PROTECTED]

After an IRC conversation with Andrei, I recompiled ICU so that it did
not have --prefix=/usr/local/icu in the configure line. This put ICU in
a standard location. Then, I recompiled PHP with the following configure
line:

./configure --prefix=/Users/ramsey/Documents/Projects/PHP/build
--enable-debug --with-layout=PHP --without-mysql --disable-cgi
--with-libxml-dir=/sw --with-zlib --disable-pdo --without-sqlite
--enable-unicode

Configure, make, and make install went just fine.

Then, running "php6 -v" from the command line produced:
PHP 6.0.0-dev (cli) (built: Oct  3 2006 19:29:23) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2006 Zend Technologies

Perfect!

So, apparently, configure has a problem with finding ICU in a
non-standard location, even in specifying --with-icu-dir.

------------------------------------------------------------------------

[2006-10-03 22:59:20] [EMAIL PROTECTED]

So, the last time I tried this was about a year ago. I decided to try
it again. Last time was with 6CVS-2005-10-17 and Mac OS X 10.4.2; now
it's with 6CVS-2006-10-03 and Mac OS X 10.4.8.

I have ICU 3.6 installed at /usr/local/icu

I'm using the following configure line:

./configure --with-layout=PHP
--prefix=/Users/ramsey/Documents/Projects/PHP/build
--with-libxml-dir=/sw --with-icu-dir=/usr/local/icu

(Note that I'm using libxml 2.6.22, installed through Fink, so it's at
/sw.)

When I run configure, I get the following error:

checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for
details.

The config.log reveals the following:

configure:27084: checking for location of ICU headers and libraries
configure:27123: result: found in /usr/local/icu
configure:27126: checking for ICU 3.4 or greater
configure:27134: result: found 3.6
configure:27266: result: 
configure:27268: result: Configuring extensions
configure:27285: checking whether to enable LIBXML support
configure:27323: result: yes
configure:27332: checking libxml2 install dir
configure:27350: result: /sw
configure:27362: checking for xml2-config path
configure:27376: result: /sw/bin/xml2-config
configure:27519: checking whether libxml build works
configure:27551: gcc -o conftest -g -O2  -no-cpp-precomp 
-L/usr/local/icu/lib -L/usr/local/icu/lib -L/sw/lib -L/sw/lib conftest.c

          
         -lm  -lm -licui18n -licuuc -licudata -lm -licuio -lxml2 -lz
-liconv -lm >&5
configure:27554: $? = 0
configure:27556: ./conftest
dyld: Library not loaded: libicui18n.dylib.36
  Referenced from:
/Users/ramsey/Documents/Projects/PHP/php-src/./conftest
  Reason: image not found
./configure: line 1:  1070 Trace/BPT trap         
./conftest$ac_exeext
configure:27559: $? = 133
configure: program exited with status 133
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define YYTEXT_POINTER 1
| #define BIND_8_COMPAT 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_SOCKADDR_UN_SUN_LEN 1
| #define PHP_WRITE_STDOUT 1
| #define HAVE_SENDMAIL 1
| #define HAVE_SOCKET 1
| #define HAVE_SOCKETPAIR 1
| #define HAVE_HTONL 1
| #define HAVE_GETHOSTNAME 1
| #define HAVE_GETHOSTBYADDR 1
| #define HAVE_YP_GET_DEFAULT_DOMAIN 1
| #define HAVE_DLOPEN 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBM 1
| #define HAVE_RES_SEARCH 1
| #define HAVE_INET_ATON 1
| #define HAVE_DN_SKIPNAME 1
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MONETARY_H 1
| #define HAVE_MACH_O_DYLD_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_PWD_H 1
| #define HAVE_RESOLV_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_SYSEXITS_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_SYS_IPC_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_ZONE 1
| #define MISSING_FCLOSE_DECL 0
| #define HAVE_TM_GMTOFF 1
| #define HAVE_STRUCT_FLOCK 1
| #define HAVE_SOCKLEN_T 1
| #define SIZEOF_INTMAX_T 8
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_SSIZE_T 4
| #define SIZEOF_PTRDIFF_T 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_LONG_LONG_INT 8
| #define SIZEOF_LONG 4
| #define SIZEOF_INT 4
| #define HAVE_SOCKADDR_STORAGE 1
| #define HAVE_SOCKADDR_SA_LEN 1
| #define HAVE_VPRINTF 1
| #define HAVE_ALPHASORT 1
| #define HAVE_ASCTIME_R 1
| #define HAVE_CHROOT 1
| #define HAVE_CTIME_R 1
| #define HAVE_CRYPT 1
| #define HAVE_FLOCK 1
| #define HAVE_FTOK 1
| #define HAVE_FUNOPEN 1
| #define HAVE_GAI_STRERROR 1
| #define HAVE_GCVT 1
| #define HAVE_GETLOADAVG 1
| #define HAVE_GETLOGIN 1
| #define HAVE_GETPROTOBYNAME 1
| #define HAVE_GETPROTOBYNUMBER 1
| #define HAVE_GETSERVBYNAME 1
| #define HAVE_GETSERVBYPORT 1
| #define HAVE_GETRUSAGE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GMTIME_R 1
| #define HAVE_GRANTPT 1
| #define HAVE_INET_NTOA 1
| #define HAVE_INET_NTOP 1
| #define HAVE_INET_PTON 1
| #define HAVE_ISASCII 1
| #define HAVE_LINK 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_LOCKF 1
| #define HAVE_LCHOWN 1
| #define HAVE_LRAND48 1
| #define HAVE_MEMCPY 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MKSTEMP 1
| #define HAVE_MMAP 1
| #define HAVE_NL_LANGINFO 1
| #define HAVE_PERROR 1
| #define HAVE_POLL 1
| #define HAVE_PTSNAME 1
| #define HAVE_PUTENV 1
| #define HAVE_REALPATH 1
| #define HAVE_RANDOM 1
| #define HAVE_RAND_R 1
| #define HAVE_REGCOMP 1
| #define HAVE_RES_SEARCH 1
| #define HAVE_SCANDIR 1
| #define HAVE_SETITIMER 1
| #define HAVE_SETLOCALE 1
| #define HAVE_LOCALECONV 1
| #define HAVE_SETENV 1
| #define HAVE_SETPGID 1
| #define HAVE_SETSOCKOPT 1
| #define HAVE_SETVBUF 1
| #define HAVE_SHUTDOWN 1
| #define HAVE_SIN 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SRAND48 1
| #define HAVE_SRANDOM 1
| #define HAVE_STATFS 1
| #define HAVE_STATVFS 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRCOLL 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRFTIME 1
| #define HAVE_STRPTIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOK_R 1
| #define HAVE_SYMLINK 1
| #define HAVE_TEMPNAM 1
| #define HAVE_TZSET 1
| #define HAVE_UNLOCKPT 1
| #define HAVE_UNSETENV 1
| #define HAVE_USLEEP 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_UTIME 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_GETADDRINFO 1
| #define HAVE_STRLCAT 1
| #define HAVE_STRLCPY 1
| #define HAVE_GETOPT 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_DECLARED_TIMEZONE 1
| #define HAVE_POSIX_READDIR_R 1
| #define PHP_SIGCHILD 0
| #define DEFAULT_SHORT_OPEN_TAG "1"
| #define HAVE_IPV6 1
| /* end confdefs.h.  */
| 
| 
|     char xmlInitParser();
|     int main() {
|       xmlInitParser();
|       return 0;
|     }
| 
configure:27576: result: no
configure:27578: error: build test failed.  Please check the config.log
for details.


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/34089

-- 
Edit this bug report at http://bugs.php.net/?id=34089&edit=1

Reply via email to