These are chat archives for CZ-NIC/knot-resolver

22nd
Jan 2018
dvdfabian
@dvdfabian
Jan 22 2018 11:16
Hello, I have a problem running a custom build of knot-resolver v1.5.1 on COS7. I am using the latest Fedora .spec file and the package builds successfully. kresd -h works as well after installation but if I load the hints module, I get error: error loading module 'hints' from file '/usr/lib64/kdns_modules/hints.so': /usr/lib64/kdns_modules/hints.so: undefined symbol: engine_hint_root_file. That function is part of the kresd daemon (engine.c) and is exported but the library seems not to see it. Am I doing something wrong or is there a bug somewhere in the module dependencies. The older version 1.2.4 worked well with the same config.
Petr Špaček
@pspacek
Jan 22 2018 11:17
@dvdfabian Hello. I have seen similar problems if LD_LIBRARY_PATH environment variable was not set properly, so I would recommend double-checking it.
Wait, if this build is from Fedora spec ... there might be an interesting problem somewhere. I will ask colleagure to investigate.
dvdfabian
@dvdfabian
Jan 22 2018 11:20
Any hint to the environment configuration in the meantime? LD_LIBRARY_PATH is not being set up explicitly. It's a OS default.
Petr Špaček
@pspacek
Jan 22 2018 11:20
Yes, that's what I realized, so it might a bug somewhere in the spec.
We released 1.5.2 with a security fix today, so you can expect new packages soonish (including EPEL 7).
Vladimír Čunát
@vcunat
Jan 22 2018 11:21
engine_hint_root_file comes from the kresd binary itself
dvdfabian
@dvdfabian
Jan 22 2018 11:21
true
Vladimír Čunát
@vcunat
Jan 22 2018 11:22
Maybe some symbol visibility glitch. I can't say I know details of such things.
Petr Špaček
@pspacek
Jan 22 2018 11:23
Yeah, we need to investigate. I do not see how it can work on my system and fail elsewhere.
dvdfabian
@dvdfabian
Jan 22 2018 11:23
well, to be fair, I have merged the latest .spec from Fedora to my older .spec file myself. So there is a certain chance of an error on my part. May I post the .spec somewhere?
Tomas Krizek
@tomaskrizek
Jan 22 2018 11:24
@dvdfabian If you could please paste the spec to https://paste.fedoraproject.org/ I can take a look.
Also, the Fedora spec file is currently missing root.hints file. It might be related.
Petr Špaček
@pspacek
Jan 22 2018 11:25
Yeah, the Fedora spec was quite broken. Anyway, @tomaskrizek will release new Fedora packages soonish so you should be able to use packages from EPEL repo.
dvdfabian
@dvdfabian
Jan 22 2018 11:38
I see, I didn't know about the @cznic repos. The package versions in the repos are quite a bit old but it's nice that someone else is taking care of the build process.
Vladimír Čunát
@vcunat
Jan 22 2018 11:48
BTW, it's @CZ-NIC (on GitHub).
dvdfabian
@dvdfabian
Jan 22 2018 12:06
I meant these https://copr.fedorainfracloud.org/coprs/g/cznic/knot-resolver/, sorry to create a bad link
Petr Špaček
@pspacek
Jan 22 2018 13:02
Oh, these were test packages. To avoid further confusion I've deleted these packages from COPR and clarified repo description.
In any case, most stable packages are ones in base Fedora and EPEL 7.
dvdfabian
@dvdfabian
Jan 22 2018 15:00
ok, I installed the following packages from EPEL and got the same error:knot-resolver-1.5.0-1.el7.x86_64 knot-libs-2.6.1-1.el7.x86_64
Petr Špaček
@pspacek
Jan 22 2018 15:01
Hmm, this is very weird. @tomaskrizek is on it.