New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"could not create control compt" #949
Comments
The error is created when unbound is making the internal control communication point, it is from Yes I think the warning in the -V output it harmless too, for this issue. The routine tube_create that is called for it logs more when verbosity is 4 or higher, so with that enabled more debug output is produced about this issue. But it seems to fail in tube.c:tube_setup_bg_listen, assuming it is taking the windows code path, and that detected okay, and then calls ub_winsock_register_wsaevent, but that from |
Seems that my build did not define
Seems not be fully Python3 compatible, but pretty cool afterall. So bottom-line, using libevent 2.2.1 does not work for Windows!!? |
Glad that it works! The libevent compile for windows has not been used, so there is no previous data I can tell you about. Could be nice if that works. For the python3 compatibility, I think this is about the printout after the pythonmod log line, that is a printout from the python module itself. Is that a python3 issue in an example python script, it would be nice to know what part of the example is a problem? |
Some use of But I have other issues with MSVC and the Python-module etc. that I raise here. E.g. this: //SWIG will see the ub_ctx as a class
struct ub_ctx {
}; Throws this error in MSVC: libunbound_wrap.c(3633,3): error C2016: C requires that a struct or union have at least one member
};
^ Not sure which C-standard says what about this issue. So would this be OK? struct ub_ctx {
int dummy;
}; |
Not sure if msvc can compile the code, but the dummy member variable is no problem. Added it in the commit. |
The pythonmod/ubmodule-tst.py file should work better with Python 3.x with the commit referenced. That makes it work with Python-3.10 for me. |
Tried with MSVC and it works fine with Python 3.10. |
I'm on Win-10 and seems to have built Unbound and the Pytho3 module OK.
Test outputs from:
libunbound/python/examples/async-lookup.py:
Resolve error: could not forklibunbound/python/examples/ns-lookup.py
: Result:raw data: 05 70 69 70 69 74 03 63 69 73 05 76 75 74 62 72 02 63 7A 00;05 72 68 69 6E 6F 03 63 69 73 05 76 75 74 62 72 02 63 7A 00
host: pipit.cis.vutbr.cz.
host: rhino.cis.vutbr.cz.
libunbound/python/examples/dns-lookup.py
: Result: ['217.31.205.50']libunbound/python/examples/example8-1.py
: Result:raw data: 00 14 02 6D 78 03 6E 69 63 02 63 7A 00;00 0A 04 6D 61 69 6C 03 6E 69 63 02 63 7A 00
priority:10 address:mail.nic.cz.
priority:20 address:mx.nic.cz.
Result:
raw data: D9 1F CD 32
address:217.31.205.50
Result:
raw data: 01 64 02 6E 73 03 6E 69 63 02 63 7A 00;01 61 02 6E 73 03 6E 69 63 02 63 7A 00;01 62 02 6E 73 03 6E 69 63 02 63 7A 00
host: a.ns.nic.cz.
host: b.ns.nic.cz.
host: d.ns.nic.cz.
Seems pretty okay to me. But using an Python3 adaption of
ubmodule-tst.py
, shows these errors:I did cook up an
run/example.conf
based ondoc/example.conf.in
containing:What is this
"control compt"
an how can I fix this?System:
unbound -V
output:The
[warn] signal.c:
seems unimportant for this issue (WSAStartup()
was not called).The text was updated successfully, but these errors were encountered: