Bug 259383

Summary: security/openssl: 1.0.1h fails to build: error: use of undeclared identifier 'CRIOGET' on FreeBSD 13 (Non-ports build)
Product: Ports & Packages Reporter: bycn82
Component: Individual Port(s)Assignee: Kubilay Kocak <koobs>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: brnrd
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description bycn82 2021-10-23 14:57:11 UTC
# Failed to compile the openssl from the source code failed on FreeBSD 13

This is not about the ports since i am downloading the source code directly from the openssl.org, and it works on FreeBSD 12, but failed on FreeBSD 13. below are the steps.


# uname -a
FreeBSD web 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

# below are the steps
## download the source code
https://www.openssl.org/source/old/1.0.1/openssl-1.0.1h.tar.gz

## configure and compile
./config BSD-x86_64/cc
make

## rrror message
eng_cryptodev.c:202:16: error: use of undeclared identifier 'CRIOGET'
        if (ioctl(fd, CRIOGET, &retfd) == -1)
                      ^
eng_cryptodev.c:973:9: error: assigning to 'u_int8_t' (aka 'unsigned char') from incompatible type 'void'
                pd[i] = crp->crp_p[bytes - i - 1];
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-24 01:23:04 UTC
Thank you for your report. For upstream (direct) builds, please report any issues upstream. FreeBSD can only provide support for software packages provided by, or in FreeBSD base versions and ports or packages.

If 1.0.1h is provided with any supported (not End-of-Life) versions of FreeBSD and the issue is reproducible in that version, please don't hesitate to re-open this issue with additional information, reproduction environment and steps to reproduce.