Bug 207244 - security/php70-openssl fails to build
Summary: security/php70-openssl fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Martin Wilke
Keywords: needs-qa, patch
Depends on:
Reported: 2016-02-16 10:17 UTC by Mattia Basone
Modified: 2019-09-15 02:53 UTC (History)
1 user (show)

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

config.log from make install (72.35 KB, text/plain)
2016-02-16 10:17 UTC, Mattia Basone
no flags Details
build log of php70-openssl (14.14 KB, text/plain)
2016-02-16 10:37 UTC, rainer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Basone 2016-02-16 10:17:39 UTC
Created attachment 167074 [details]
config.log from make install

configure: error: Cannot find OpenSSL's <evp.h>
===>  Script "configure" failed unexpectedly.
Please report the problem to miwi@FreeBSD.org [maintainer] and attach the
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

make: stopped in /usr/ports/security/php70-openssl

root@freebsd:/usr/ports/security/php70-openssl # locate evp.h
Comment 1 Martin Wilke freebsd_committer 2016-02-16 10:29:10 UTC

In all my testings php70-openssl was working, have you any special configs in /etc/make.conf or /etc/src.conf?

Comment 2 rainer 2016-02-16 10:35:17 UTC
I guess this must be the case.
For me, php70-imap also fails (in addtion to php70-openssl).
Comment 3 rainer 2016-02-16 10:37:35 UTC
Created attachment 167076 [details]
build log of php70-openssl
Comment 4 Mattia Basone 2016-02-16 10:40:15 UTC
(In reply to Martin Wilke from comment #1)

Hi Martin,

I don't have /etc/src.conf set and the only option in my /etc/make.conf is "OPTIONS_UNSET=X11"
Comment 5 Martin Wilke freebsd_committer 2016-02-16 10:41:58 UTC

I think I know what happened.

Give me a bit.
Comment 6 Martin Wilke freebsd_committer 2016-02-16 10:51:46 UTC
Hi again,

Can you please test this in lang/php70/ rm files/patch-acinclude.m4, and php70 and then security/php70-openssl, please make sure you run make clean before.

@Rainer I know you building with dtrace enabled, this wont help you at this point. 

I suspect that I did something wrong with the patch-acinclude.

Please let me know.

Comment 7 Martin Wilke freebsd_committer 2016-02-16 10:52:35 UTC
(In reply to Martin Wilke from comment #6)
sorry i mean to say rebuild php70 after removing the patch.
Comment 8 Mattia Basone 2016-02-16 11:13:13 UTC
(In reply to Martin Wilke from comment #6)

Following your steps the port has been successfully built!

Thank you
Comment 9 Martin Wilke freebsd_committer 2016-02-16 11:16:43 UTC
(In reply to Mattia Basone from comment #8)

@ mattia Good, thank you!

@Rainer please try this patch https://people.freebsd.org/~miwi/patches/php70-fix-ssl.diff

Please let me know ;).

Comment 10 rainer 2016-02-16 11:22:53 UTC
Because my build-box isn't that fast and because pkg got updated, too, it's building all my packages again. That build will be under way for some time.

I'll try your patch in the evening, probably.

Thanks so far
Comment 11 Martin Wilke freebsd_committer 2016-02-16 11:48:16 UTC
(In reply to rainer from comment #10)

Okay thanks,

I'll build test both with and without dtrace and see if all is ok now, and update here.

Thanks all :)
Comment 13 commit-hook freebsd_committer 2016-02-16 12:31:38 UTC
A commit references this bug:

Author: miwi
Date: Tue Feb 16 12:30:43 UTC 2016
New revision: 408988
URL: https://svnweb.freebsd.org/changeset/ports/408988

  - Fix build for -openssl and -imap

  PR:		207244

Comment 14 Martin Wilke freebsd_committer 2016-02-16 12:31:45 UTC
I have committed the patch, sorry for the problems. 

Thanks for your testing and feedback.

- Martin
Comment 15 commit-hook freebsd_committer 2019-09-15 02:47:13 UTC
A commit references this bug:

Author: jgh
Date: Sun Sep 15 02:46:37 UTC 2019
New revision: 512086
URL: https://svnweb.freebsd.org/changeset/ports/512086

  - update to 0.7_2
  - code shift to github
  - update WWW along with pkg-descr
  - support docs and examples

  PR:		207244
  Reported by:	lapo@lapo.it, w.schwarzenfeld@utanet.at (WWW)

Comment 16 commit-hook freebsd_committer 2019-09-15 02:53:15 UTC
A commit references this bug:

Author: jgh
Date: Sun Sep 15 02:52:22 UTC 2019
New revision: 512087
URL: https://svnweb.freebsd.org/changeset/ports/512087

  MFH: r512086

  - update to 0.7_2
  - code shift to github
  - update WWW along with pkg-descr
  - support docs and examples

  PR:		207244
  Reported by:	lapo@lapo.it, w.schwarzenfeld@utanet.at (WWW)

  Approved by:	ports-secteam (with hat)

_U  branches/2019Q3/