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: 2020-11-01 04:22 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: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 7.1.2 OS: Solaris 11.3 Sparc
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fabulousfateh at gmail dot com
New email:
PHP Version: OS:

 

 [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
 [2020-10-23 15:59 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-23 15:59 UTC] cmb@php.net
> export CC="gcc -m64"
> wrong ELF class: ELFCLASS32

Are you trying to build a 64bit PHP with a 32bit library?
 [2020-11-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 08:01:23 2020 UTC