Re: SO_PASSCRED and SCM_CREDENTIALS | error: use of undeclared identifier
Date: Thu, 21 Mar 2024 07:41:51 UTC
On Wed, Mar 20, 2024 at 11:16 PM Michael Grimm <trashcan@ellael.org> wrote: > > Hi > > Disclaimer: > > I am trying to create a new port (knot-resolver-current) developed under Linux upstream. A so-called manager functionality is brand new in comparison to the previous knot-resolver. The corresponding git repository is leading edge development. > > My main motivation is: learning how to create ports ;-) > > > Compilation fails: > > cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.9 -c knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.c -o build/temp.freebsd-14.0-STABLE-amd64-cpython-39/knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.o > knot_resolver_manager/kresd_controller/supervisord/plugin/notifymodule.c:52:42: error: use of undeclared identifier 'SO_PASSCRED' > 52 | res = setsockopt(controlfd, SOL_SOCKET, SO_PASSCRED, &data, This might help you: https://github.com/CollaboraOnline/online/commit/8c6cbedd583e80e3c0f93a3e42b3579492da2087