php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74187 Zend: symbol referencing errors : MySQL
Submitted: 2017-03-01 05:31 UTC Modified: 2017-03-01 08:37 UTC
Votes:3
Avg. Score:4.3 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: fabulousfateh at gmail dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 7.1.2 OS: Solaris 11.3 Sparc
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-03-01 05:31 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-01 08:36 UTC] fabulousfateh at gmail dot com
-Summary: __clzdi2 ld: fatal: symbol referencing errors +Summary: Zend: symbol referencing errors : MySQL
 [2017-03-01 08:37 UTC] fabulousfateh at gmail dot com
This problem should not happen because of patch Bug #71006 Zend: symbol referencing errors.
 [2017-03-01 08:37 UTC] fabulousfateh at gmail dot com
This problem should not happen because of patch Bug #71006 Zend: symbol referencing errors.
 [2017-04-10 15:38 UTC] 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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 00:01:26 2019 UTC