undefined reference to `_Unwind_GetIPInfo@GCC_4.2.0' while compiling PHP 5.2.4 on RedHat 4
| From: | Yair Zaretski | Date: | Tue, 16 Oct 2007 17:17:37 +0000 |
| Subject: | undefined reference to `_Unwind_GetIPInfo@GCC_4.2.0' while compiling PHP 5.2.4 on RedHat 4 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-18305@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to compile PHP 5.2.4 on a RedHat 4 machine.
My configure command is as follows:
../configure --build=i386-redhat-linux --host=i386-redhat-linux
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --cache-file=../config.cache
--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
--enable-force-cgi-redirect --disable-debug --disable-rpath
--enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl
--with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr
--with-gd=shared --enable-gd-native-ttf --without-gdbm --with-gettext
--with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr
--with-openssl --with-pspell --with-xmlrpc=shared --with-pcre-regex=/usr
--with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp
--enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-wddx --with-pear=/usr/share/pear --with-imap=shared
--with-imap-ssl --with-kerberos --with-ldap=shared
--with-mysql=shared,/usr --with-pgsql=shared --without-snmp
--with-unixODBC=shared,/usr --enable-shmop --enable-calendar
--enable-mbstring=shared --enable-mbregex
--with-mime-magic=/usr/share/file/magic.mime --with-apxs2=/usr/sbin/apxs
I've installed all the needed devel packages for all this extensions,
yet at the end of the configure run I get this message:
Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| *** ATTENTION ***
|
|
|
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| php-install@lists.php.net mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
The debug.log (attached) contains the following error:
gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -L/usr/local/lib
-L/usr/kerberos/lib conftest.c -lcrypt -lpspell -lrt -lgm
p -ldb-4.2 -lcurl -lbz2 -lz -lpcre -lresolv -lm -ldl -lnsl -lxml2 -lm
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcryp
to -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl
-lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypt
o -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv
-lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkr
b5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lm -lssl -lcrypto
-lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -l
dl -lz -lxml2 -lm -lcrypt 1>&5
/usr/lib/libstdc++.so.6: undefined reference to
`_Unwind_GetIPInfo@GCC_4.2.0'
collect2: ld returned 1 exit status
The make command fails as well with the same error:
/usr/lib/libstdc++.so.6: undefined reference to
`_Unwind_GetIPInfo@GCC_4.2.0'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
I couldn't find anything useful to make this work.
Can anyone please let me know what I can do?
Yair Zaretski
System Linux/Unix Consultant
GlassHouse Technologies
30 Tuval Street
Ramat-Gan, Israel 52118
T: +972 52 4826093
F: +972 3 7523 737
YairZa@GlassHouse.com
www.glasshouse.com <http://www.glasshouse.com/>
Attachment: [application/octet-stream] debug.log debug.log
Attachment: [application/octet-stream] debug.log debug.log