Bug 232214 - devel/p4: fails to build on 12.0-ALPHA9
Summary: devel/p4: fails to build on 12.0-ALPHA9
Status: Closed DUPLICATE of bug 229021
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alan Somers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-13 03:15 UTC by Alan Somers
Modified: 2018-10-26 19:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2018-10-13 03:15:40 UTC
devel/p4 fails to build on 12.0-ALPHA9 and later due to the OpenSSL upgrade to 1.1.1.  Here is the compile error:

net/netsslcredentials.cc:221:16: error: member access into incomplete type 'EVP_PKEY' 
      (aka 'evp_pkey_st')
        if (privateKey->type != EVP_PKEY_RSA)

The problem is that older versions of openssl defined the evp_pkey_st struct, but 1.1.1 merely forward-declares it.  I've tried newer versions of p4; they all exhibit the same problem.  The latest version, 2018.1, is actually worse; it has an additional error:

net/netssltransport.cc:117:36: error: use of undeclared identifier 'CRYPTO_NUM_LOCKS'
static pthread_mutex_t mutexArray[ CRYPTO_NUM_LOCKS ];
 
There are three options to fix it:
1) Disable SSL support
2) Link against security/openssl from ports instead of from base
3) Ask Perforce for a fix.
Comment 1 Alan Somers freebsd_committer freebsd_triage 2018-10-13 03:16:46 UTC
Ken, since you're still a license-paying customer, would you please ask Perforce to fix the build with OpenSSL 1.1.1 ?
Comment 2 Alan Somers freebsd_committer freebsd_triage 2018-10-26 19:13:27 UTC

*** This bug has been marked as a duplicate of bug 229021 ***