php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73996 gmake: *** [sapi/cli/php] Error 1
Submitted: 2017-01-25 16:14 UTC Modified: 2021-07-11 04:22 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bercomic at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 7.1.1 OS: Solaris 11.3
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bercomic at gmail dot com
New email:
PHP Version: OS:

 

 [2017-01-25 16:14 UTC] bercomic at gmail dot com
Description:
------------
CC="gcc -std=gnu99" ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/lib \
--with-curl=/usr/local/ --with-gettext --with-libxml-dir=/usr/local --with-zlib=/usr/local --with-xpm-dir=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli --disable-phar --without-pgsql --with-jpeg-dir=/usr/local/lib \
--with-zlib-dir=/usr/local/lib --enable-mbstring --enable-exif --enable-soap  --with-png-dir=/usr/local/lib \
--with-pcre-dir=/usr/local --with-ldap=/usr/local --with-openssl --with-freetype-dir=/usr/local --with-gd=/usr/local --enable-opcache


Undefined                       first referenced
 symbol                             in file
EC_KEY_get0_group                   ext/openssl/.libs/openssl.o
EVP_PKEY_get1_EC_KEY                ext/openssl/.libs/openssl.o
EC_GROUP_get_curve_name             ext/openssl/.libs/openssl.o
EC_KEY_get0_private_key             ext/openssl/.libs/openssl.o
EC_KEY_free                         ext/openssl/.libs/xp_ssl.o
EC_KEY_new_by_curve_name            ext/openssl/.libs/xp_ssl.o
PEM_write_bio_ECPrivateKey          ext/openssl/.libs/openssl.o
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
gmake: *** [sapi/cli/php] Error 1



Test script:
---------------
whenever I try to compile PHP --with-openssl, i get the following error:


Undefined                       first referenced
 symbol                             in file
EC_KEY_get0_group                   ext/openssl/.libs/openssl.o
EVP_PKEY_get1_EC_KEY                ext/openssl/.libs/openssl.o
EC_GROUP_get_curve_name             ext/openssl/.libs/openssl.o
EC_KEY_get0_private_key             ext/openssl/.libs/openssl.o
EC_KEY_free                         ext/openssl/.libs/xp_ssl.o
EC_KEY_new_by_curve_name            ext/openssl/.libs/xp_ssl.o
PEM_write_bio_ECPrivateKey          ext/openssl/.libs/openssl.o
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
gmake: *** [sapi/cli/php] Error 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-10 10:53 UTC] ranvir dot chandard at thecoventry dot co dot uk
I've had similar issue compiling V7.1.1 on Solaris 10

I used the following based on https://lucamerello.wordpress.com/2015/01/29/solaris-10-how-to-build-and-install-php/

unset LD_LIBRARY_PATH
umask 0000
export CFLAGS="-std=gnu99 -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
export EXTENSION_DIR=/usr/local/lib/php/ext
export LDFLAGS="-L/usr/lib -R/usr/lib"

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-ldap --with-zlib=yes --with-libxml-dir=/usr/local --with-openssl --with-openssl-dir=/usr/local/ssl --enable-shared --enable-sigchild --enable-sockets --without-sqlite3 --without-pdo-sqlite --disable-ipv6 --with-pear=/usr/local/lib/php	


Hope that helps
 [2021-07-02 16:56 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-02 16:56 UTC] cmb@php.net
Is this still an issue for you with any of the actively supported
PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-07-11 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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 00:01:30 2024 UTC