Bug 232519 - security/php56-openssl: Fails to build with LibreSSL 2.8.2
Summary: security/php56-openssl: Fails to build with LibreSSL 2.8.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-22 07:35 UTC by cedric
Modified: 2018-10-24 13:05 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ale)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cedric 2018-10-22 07:35:38 UTC
===>   php56-openssl-5.6.38_1 depends on file: /usr/local/lib/libcrypto.so.44 - not found
===>   Installing existing package /packages/All/libressl-2.8.2.txz
[p15devel-p15devel-job-07] Installing libressl-2.8.2...
[p15devel-p15devel-job-07] Extracting libressl-2.8.2: .......... done
===>   php56-openssl-5.6.38_1 depends on file: /usr/local/lib/libcrypto.so.44 - found
===>   Returning to build of php56-openssl-5.6.38_1
===========================================================================
=======================<phase: lib-depends    >============================
===========================================================================
=======================<phase: configure      >============================
===>  PHPizing for php56-openssl-5.6.38_1
===>  Configuring for php56-openssl-5.6.38_1
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226

[...]

===>  Building for php56-openssl-5.6.38_1
/bin/sh /wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/libtool --mode=compile cc  -I. -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl -DPHP_ATOM_INC -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/include -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/main -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -O2 -pipe -fstack-protector -fno-strict-aliasing   -c /wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c -o openssl.lo
mkdir .libs
 cc -I. -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl -DPHP_ATOM_INC -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/include -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/main -I/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fstack-protector -fno-strict-aliasing -c /wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c  -fPIC -DPIC -o .libs/openssl.o
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:547:12: error: static declaration of 'RSA_set0_key' follows non-static declaration
static int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
           ^
/usr/local/include/openssl/rsa.h:401:5: note: previous declaration is here
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
    ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:556:12: error: static declaration of 'RSA_set0_factors' follows non-static declaration
static int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q)
           ^
/usr/local/include/openssl/rsa.h:406:5: note: previous declaration is here
int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
    ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:564:12: error: static declaration of 'RSA_set0_crt_params' follows non-static declaration
static int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp)
           ^
/usr/local/include/openssl/rsa.h:404:5: note: previous declaration is here
int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
    ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:573:13: error: static declaration of 'RSA_get0_key' follows non-static declaration
static void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
            ^
/usr/local/include/openssl/rsa.h:399:6: note: previous declaration is here
void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e,
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:580:13: error: static declaration of 'RSA_get0_factors' follows non-static declaration
static void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
            ^
/usr/local/include/openssl/rsa.h:405:6: note: previous declaration is here
void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:586:13: error: static declaration of 'RSA_get0_crt_params' follows non-static declaration
static void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp)
            ^
/usr/local/include/openssl/rsa.h:402:6: note: previous declaration is here
void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1,
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:593:13: error: static declaration of 'DH_get0_pqg' follows non-static declaration
static void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
            ^
/usr/local/include/openssl/dh.h:193:6: note: previous declaration is here
void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:600:12: error: static declaration of 'DH_set0_pqg' follows non-static declaration
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
           ^
/usr/local/include/openssl/dh.h:195:5: note: previous declaration is here
int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
    ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:609:13: error: static declaration of 'DH_get0_key' follows non-static declaration
static void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key)
            ^
/usr/local/include/openssl/dh.h:196:6: note: previous declaration is here
void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key);
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:615:12: error: static declaration of 'DH_set0_key' follows non-static declaration
static int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key)
           ^
/usr/local/include/openssl/dh.h:197:5: note: previous declaration is here
int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
    ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:623:13: error: static declaration of 'DSA_get0_pqg' follows non-static declaration
static void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
            ^
/usr/local/include/openssl/dsa.h:262:6: note: previous declaration is here
void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:639:13: error: static declaration of 'DSA_get0_key' follows non-static declaration
static void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key)
            ^
/usr/local/include/openssl/dsa.h:265:6: note: previous declaration is here
void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key);
     ^
/wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl/openssl.c:657:12: error: static declaration of 'X509_get_signature_nid' follows non-static declaration
static int X509_get_signature_nid(const X509 *x)
           ^
/usr/local/include/openssl/x509.h:907:5: note: previous declaration is here
int X509_get_signature_nid(const X509 *x);
    ^
13 errors generated.
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/security/php56-openssl/work/php-5.6.38/ext/openssl
*** Error code 1

Stop.
make: stopped in /usr/ports/security/php56-openssl
=>> Cleaning up wrkdir
===>  Cleaning for php56-openssl-5.6.38_1
build of security/php56-openssl | php56-openssl-5.6.38_1 ended at Mon Oct 22 07:10:23 CEST 2018
build time: 00:00:11
!!! build failure encountered !!!
Comment 1 commit-hook freebsd_committer 2018-10-24 13:05:05 UTC
A commit references this bug:

Author: ale
Date: Wed Oct 24 13:03:05 UTC 2018
New revision: 482905
URL: https://svnweb.freebsd.org/changeset/ports/482905

Log:
  Fix build with libressl.

  PR:		232519
  Submitted by:	cedric <cedric@precidata.com>

Changes:
  head/security/php56-openssl/files/patch-openssl11