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: -
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:
Status: Open Package: Compile Failure
PHP Version: 7.1.1 OS: Solaris 11.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
13 + 23 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 17:01:27 2019 UTC