[MacPorts] #68180: Openvpn2 +pkcs11 Variant Fails to Build on Lion
MacPorts
noreply at macports.org
Sun Sep 17 17:54:32 UTC 2023
#68180: Openvpn2 +pkcs11 Variant Fails to Build on Lion
-----------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: lion
Port: openvpn2 |
-----------------------+--------------------
Description changed by RobK88:
Old description:
> I am unable to build `openvpn2 +pkcs11` variant on Lion.
>
> {{{
> bash-3.2$ sudo port clean openvpn2
> ---> Cleaning openvpn2
> bash-3.2$
> bash-3.2$ sudo port install openvpn2 +pkcs11
> ---> Computing dependencies for openvpn2
> ---> Fetching archive for openvpn2
> ---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
> from http://packages.macports.org/openvpn2
> ---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
> from
> http://ywg.ca.packages.macports.org/mirror/macports/packages/openvpn2
> ---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
> from http://mirror.fcix.net/macports/packages/openvpn2
> ---> Fetching distfiles for openvpn2
> ---> Verifying checksums for openvpn2
> ---> Extracting openvpn2
> ---> Configuring openvpn2
> ---> Building openvpn2
> Error: Failed to build openvpn2: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port openvpn2 failed
> bash-3.2$
> }}}
>
> When trying to install with the `-v` option, one sees:
>
> {{{
> pkcs11_openssl.c:168:5: error: use of undeclared identifier
> 'CK_RSA_PKCS_PSS_PARAMS'
> CK_RSA_PKCS_PSS_PARAMS pss_params = {0};
> ^
> pkcs11_openssl.c:214:32: error: use of undeclared identifier 'pss_params'
> mech.pParameter = &pss_params;
> ^
> pkcs11_openssl.c:215:42: error: use of undeclared identifier 'pss_params'
> mech.ulParameterLen = sizeof(pss_params);
> ^
> 3 errors generated.
> make[3]: *** [pkcs11_openssl.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6/src/openvpn'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6'
> make: *** [all] Error 2
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6'
> Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6"
> && /usr/bin/make -j4 -w all
> Exit code: 2
> Error: Failed to build openvpn2: command execution failed
> }}}
>
> I have attached `main.log` for more info.
>
> I also tried compiling using `clang-16` but it also fails.
>
> {{{
> bash-3.2$ sudo port clean openvpn2
> ---> Cleaning openvpn2
> bash-3.2$
> bash-3.2$ sudo port install openvpn2 +pkcs11 configure.compiler=macports-
> clang-15
> ---> Computing dependencies for openvpn2
> ---> Fetching archive for openvpn2
> ---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
> from http://packages.macports.org/openvpn2
> ---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
> from
> http://ywg.ca.packages.macports.org/mirror/macports/packages/openvpn2
> ---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
> from http://mirror.fcix.net/macports/packages/openvpn2
> ---> Fetching distfiles for openvpn2
> ---> Verifying checksums for openvpn2
> ---> Extracting openvpn2
> ---> Configuring openvpn2
> ---> Building openvpn2
> Error: Failed to build openvpn2: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port openvpn2 failed
> bash-3.2$
> }}}
New description:
I am unable to build `openvpn2 +pkcs11` variant on Lion.
{{{
bash-3.2$ sudo port clean openvpn2
---> Cleaning openvpn2
bash-3.2$
bash-3.2$ sudo port install openvpn2 +pkcs11
---> Computing dependencies for openvpn2
---> Fetching archive for openvpn2
---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
from http://packages.macports.org/openvpn2
---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
from http://ywg.ca.packages.macports.org/mirror/macports/packages/openvpn2
---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
from http://mirror.fcix.net/macports/packages/openvpn2
---> Fetching distfiles for openvpn2
---> Verifying checksums for openvpn2
---> Extracting openvpn2
---> Configuring openvpn2
---> Building openvpn2
Error: Failed to build openvpn2: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port openvpn2 failed
bash-3.2$
}}}
When trying to install with the `-v` option, one sees:
{{{
pkcs11_openssl.c:168:5: error: use of undeclared identifier
'CK_RSA_PKCS_PSS_PARAMS'
CK_RSA_PKCS_PSS_PARAMS pss_params = {0};
^
pkcs11_openssl.c:214:32: error: use of undeclared identifier 'pss_params'
mech.pParameter = &pss_params;
^
pkcs11_openssl.c:215:42: error: use of undeclared identifier 'pss_params'
mech.ulParameterLen = sizeof(pss_params);
^
3 errors generated.
make[3]: *** [pkcs11_openssl.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6/src/openvpn'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/work/openvpn-2.6.6"
&& /usr/bin/make -j4 -w all
Exit code: 2
Error: Failed to build openvpn2: command execution failed
}}}
I have attached `main.log` for more info.
I also tried compiling using `clang-15` but it also fails.
{{{
bash-3.2$ sudo port clean openvpn2
---> Cleaning openvpn2
bash-3.2$
bash-3.2$ sudo port install openvpn2 +pkcs11 configure.compiler=macports-
clang-15
---> Computing dependencies for openvpn2
---> Fetching archive for openvpn2
---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
from http://packages.macports.org/openvpn2
---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
from http://ywg.ca.packages.macports.org/mirror/macports/packages/openvpn2
---> Attempting to fetch openvpn2-2.6.6_0+pkcs11.darwin_11.x86_64.tbz2
from http://mirror.fcix.net/macports/packages/openvpn2
---> Fetching distfiles for openvpn2
---> Verifying checksums for openvpn2
---> Extracting openvpn2
---> Configuring openvpn2
---> Building openvpn2
Error: Failed to build openvpn2: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openvpn2/openvpn2/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port openvpn2 failed
bash-3.2$
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/68180#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list