Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757123 - dev-lang/php-7.4.13 with dev-libs/libressl-3.3.0: sapis-build/embed/ext/openssl/openssl.c:6501:8: error: ‘EVP_CIPH_OCB_MODE’ undeclared (first use in this function)
Summary: dev-lang/php-7.4.13 with dev-libs/libressl-3.3.0: sapis-build/embed/ext/opens...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=80368
Whiteboard:
Keywords:
: 757288 (view as bug list)
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2020-11-27 09:28 UTC by Alexandros C. Couloumbis
Modified: 2020-12-03 20:48 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info dev-lang/php dev-libs/libressl (emerge_info_libressl.txt,7.96 KB, text/plain)
2020-11-27 10:09 UTC, Alexandros C. Couloumbis
Details
php-7.4.13 compile failure build.log (build.log.zip,29.13 KB, application/zip)
2020-11-27 10:20 UTC, Alexandros C. Couloumbis
Details
php-7.4.13 compile failure build.log (php-7_4_13-build_log.txt,179.93 KB, text/plain)
2020-11-27 12:31 UTC, Alexandros C. Couloumbis
Details
SSL Patch (ssl.patch,579 bytes, patch)
2020-12-01 12:15 UTC, René Fuchs
Details | Diff
check for SSL OCB support (check_OCB_MODE.patch,1.16 KB, patch)
2020-12-01 13:09 UTC, Alexandros C. Couloumbis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandros C. Couloumbis 2020-11-27 09:28:03 UTC
php-7.4.13 fails to compile against libressl-3.3.0

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-lang/php-7.4.14

Actual Results:  
>>> Failed to emerge dev-lang/php-7.4.13

 * ERROR: dev-lang/php-7.4.13::gentoo failed (compile phase):
 *   emake failed


Expected Results:  
>>> Installing (1 of 1) dev-lang/php-7.4.13::gentoo

this is possible an libressl upstream issue. until addressed, a workaround is needed
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-27 09:55:05 UTC
Full build.log and emerge —info please
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-11-27 09:56:48 UTC
For completeness please post the output of

  emerge --info dev-lang/php dev-libs/libressl

to this bug and attach the build.log file that contains the build issue.
Comment 3 Alexandros C. Couloumbis 2020-11-27 10:09:48 UTC
Created attachment 675268 [details]
emerge --info dev-lang/php dev-libs/libressl

emerge --info dev-lang/php dev-libs/libressl
Comment 4 Alexandros C. Couloumbis 2020-11-27 10:20:47 UTC
Created attachment 675271 [details]
php-7.4.13 compile failure build.log

when trying to attach the build.log (184kb) I get:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@gentoo.org to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Apache Server at bugs.gentoo.org Port 443
Comment 5 Tomáš Mózes 2020-11-27 12:21:56 UTC
(In reply to Alexandros C. Couloumbis from comment #4)
> Created attachment 675271 [details]
> php-7.4.13 compile failure build.log
> 
> when trying to attach the build.log (184kb) I get:
> 
> Internal Server Error
> 
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> 
> Please contact the server administrator at webmaster@gentoo.org to inform
> them of the time this error occurred, and the actions you performed just
> before this error.
> 
> More information about this error may be available in the server error log.
> Apache Server at bugs.gentoo.org Port 443

Probably the user running the browser doesn't have access to build.log. Check the permissions on it.
Comment 6 Alexandros C. Couloumbis 2020-11-27 12:28:10 UTC
(In reply to Tomáš Mózes from comment #5)
> (In reply to Alexandros C. Couloumbis from comment #4)
> > Created attachment 675271 [details]
> > php-7.4.13 compile failure build.log
> > 
> > when trying to attach the build.log (184kb) I get:
> > 
> > Internal Server Error
> > 
> > The server encountered an internal error or misconfiguration and was unable
> > to complete your request.
> > 
> > Please contact the server administrator at webmaster@gentoo.org to inform
> > them of the time this error occurred, and the actions you performed just
> > before this error.
> > 
> > More information about this error may be available in the server error log.
> > Apache Server at bugs.gentoo.org Port 443
> 
> Probably the user running the browser doesn't have access to build.log.
> Check the permissions on it.
Comment 7 Alexandros C. Couloumbis 2020-11-27 12:31:43 UTC
Created attachment 675280 [details]
php-7.4.13 compile failure build.log

indeed, the problem was the file permissions
Comment 8 René Fuchs 2020-12-01 12:14:32 UTC
Patch found at:

https://bugs.php.net/bug.php?id=80368
Comment 9 René Fuchs 2020-12-01 12:15:00 UTC
Created attachment 676006 [details, diff]
SSL Patch
Comment 10 Alexandros C. Couloumbis 2020-12-01 13:09:13 UTC
Created attachment 676012 [details, diff]
check for SSL OCB support

the last patch compiled fine php-7.4.13 on my 32bit gentoo-current with libressl-3.3.0 installed. I guess this patch needs also testing against a gentoo/openssl system
Comment 11 Thomas Deutschmann (RETIRED) gentoo-dev 2020-12-03 20:35:39 UTC
*** Bug 757288 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2020-12-03 20:48:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8830e5ca56ab4ba2a047220e5462024b32444d

commit ac8830e5ca56ab4ba2a047220e5462024b32444d
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-12-03 20:47:25 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-12-03 20:48:16 +0000

    dev-lang/php: fix building against libressl
    
    Fixes
    
      ext/openssl/openssl.c:6501:8: error: ‘EVP_CIPH_OCB_MODE’ undeclared (first use in this function)
    
    when building against >=dev-libs/libressl-3.3.
    
    Closes: https://bugs.gentoo.org/757123
    Package-Manager: Portage-3.0.10, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-lang/php/files/php-7.4.13-issue80368.patch | 17 +++++++++++++++++
 dev-lang/php/php-7.4.13.ebuild                 |  5 ++++-
 2 files changed, 21 insertions(+), 1 deletion(-)