Bug #74187 [Opn->Fbk]: Zend: symbol referencing errors : MySQL

From: Date: Fri, 23 Oct 2020 15:59:48 +0000
Subject: Bug #74187 [Opn->Fbk]: Zend: symbol referencing errors : MySQL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229888@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74187&edit=1 ID: 74187 Updated by: cmb@php.net Reported by: fabulousfateh at gmail dot com Summary: Zend: symbol referencing errors : MySQL -Status: Open +Status: Feedback Type: Bug Package: Compile Failure Operating System: Solaris 11.3 Sparc PHP Version: 7.1.2 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > export CC="gcc -m64" > wrong ELF class: ELFCLASS32 Are you trying to build a 64bit PHP with a 32bit library? Previous Comments: ------------------------------------------------------------------------ [2017-04-10 15:38:59] nicek at hotmail dot com I also have this problem with PHP 7.1.3 on Solaris 11.3 SRU 17.5. ./configure --prefix=/local --with-apxs2=/usr/apache2/2.4/bin/apxs --with-mysqli=/local/bin/mysql_config --with-pdo-mysql=/local --enable-maintainer-zts --without-pdo-sqlite --without-sqlite3 --with-gd --enable-opcache CFLAGS="-m64 -O2" --with-pdo-oci=instantclient,/apps/oci8/instantclient_12_2,12.1 --with-oci8=instantclient,/apps/oci8/instantclient_12_2 (Also, if you use --with-pdo-oci=instantclient,/apps/oci8/instantclient_12_2,12.2 it fails and says Unsupported version 12.2) ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc.a(_clzdi2.o): wrong ELF class: ELFCLASS32 ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc_eh.a(unwind-dw2.o): wrong ELF class: ELFCLASS32 ld: warning: file libsoftcrypto.so.1: required by /apps/oci8/instantclient_12_2/libclntsh.so, not found Undefined first referenced symbol in file __clzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /usr/nist/lib/libgcc_s.so.1) __ctzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /usr/nist/lib/libgcc_s.so.1) isfinite ext/filter/.libs/logical_filters.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [sapi/cgi/php-cgi] Error 1 gmake: *** Waiting for unfinished jobs.... ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc.a(_clzdi2.o): wrong ELF class: ELFCLASS32 ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc_eh.a(unwind-dw2.o): wrong ELF class: ELFCLASS32 ld: warning: file libsoftcrypto.so.1: required by /apps/oci8/instantclient_12_2/libclntsh.so, not found Undefined first referenced symbol in file __clzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /usr/nist/lib/libgcc_s.so.1) __ctzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /usr/nist/lib/libgcc_s.so.1) isfinite ext/filter/.libs/logical_filters.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [sapi/cli/php] Error 1 ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc.a(_clzdi2.o): wrong ELF class: ELFCLASS32 ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc.a(_clzdi2.o): wrong ELF class: ELFCLASS32 ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc_eh.a(unwind-dw2.o): wrong ELF class: ELFCLASS32 ld: warning: file libsoftcrypto.so.1: required by /apps/oci8/instantclient_12_2/libclntsh.so, not found Undefined first referenced symbol in file __clzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /usr/nist/lib/libgcc_s.so.1) __ctzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /usr/nist/lib/libgcc_s.so.1) isfinite ext/filter/.libs/logical_filters.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [sapi/phpdbg/phpdbg] Error 1 ------------------------------------------------------------------------ [2017-03-01 08:37:07] fabulousfateh at gmail dot com This problem should not happen because of patch Bug #71006 Zend: symbol referencing errors. ------------------------------------------------------------------------ [2017-03-01 08:37:04] fabulousfateh at gmail dot com This problem should not happen because of patch Bug #71006 Zend: symbol referencing errors. ------------------------------------------------------------------------ [2017-03-01 05:31:36] fabulousfateh at gmail dot com Description: ------------ I got an error during compiling Make PHP. This should be a bug from PHP 7.1.2 and MySQL Enterprise Server - Advanced Edition (Commercial) Ver 5.7.17 Test script: --------------- export CC="gcc -m64" export CFLAGS="-std=gnu99" ./configure --prefix=/opt/app/php --with-openssl=/opt/app/openssl --datadir=/opt/app/php --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-pcre-regex=/opt/app/pcre --with-apxs2=/opt/app/apache/bin/apxs --with-mysqli=/opt/app/mysql/mysql/bin/mysql_config --with-mysql-sock=/opt/app/mysql/mysql/socket/mysql.sock --with-libxml-dir=/opt/app/libxml2 --with-bz2 --with-zlib gmake Expected result: ---------------- gmake successfully compile. Actual result: -------------- ld: warning: file /usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/libgcc.a(_clzdi2.o): wrong ELF class: ELFCLASS32 Undefined first referenced symbol in file __clzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /opt/app/mysql/mysql/lib/libgcc_s.so.1) __ctzdi2 Zend/.libs/zend_alloc.o (symbol belongs to implicit dependency /opt/app/mysql/mysql/lib/libgcc_s.so.1) ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [sapi/cli/php] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74187&edit=1

« previous php.bugs (#229888) next »