openvpn-auth-radius don't compile on FreeBSD 11.2-RELEASE. RadiusClass/RadiusPacket.cpp:445:78: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int') if(bind(socket2Radius,(struct sockaddr*)&cliAddr,sizeof(struct sockaddr))<0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Manual compilation and port compilation produce the same result. Port compilation log: http://beefy12.nyi.freebsd.org/data/head-amd64-default/p464852_s331113/logs/openvpn-auth-radius-2.1_3.log
Created attachment 194819 [details] RadiusPacket.cpp bind fix patch Please find patch to allow openvpn-auth-radius to be compiled.
Confirmed submitted patch fixes the build.
poudriere testbuild finished fine on 11.2amd64, 11.1amd64, 10.4amd64. I'll commit it after maintainer's approval.
Maintainer approved (via email).
A commit references this bug: Author: meta Date: Mon Jul 9 08:36:03 UTC 2018 New revision: 474240 URL: https://svnweb.freebsd.org/changeset/ports/474240 Log: security/openvpn-auth-radius: fix build on 11.2-RELEASE PR: 229456 Submitted by: nicolas@deffayet.com Approved by: maintainer, pi (mentor) MFC after: 2018Q3 Sponsored by: HAW International, Inc. Differential Revision: https://reviews.freebsd.org/D16135 Changes: head/security/openvpn-auth-radius/Makefile head/security/openvpn-auth-radius/files/patch-Makefile.bsd head/security/openvpn-auth-radius/files/patch-RadiusClass_RadiusPacket.cpp
Committed, thanks!