Open elliefm opened 4 years ago
@earthspike,
configure:19135: gcc -o conftest -W -Wno-unused-parameter -g -O0 -Wall -Wextra -Werror -fPIC -Wl,-rpath,/usr/local/cyruslibs/lib -Wl,-rpath,/usr/local/cyruslibs/lib/x86_64-linux-gnu conftest.c -lxml2 -lja>
I think this line has been truncated while pasting, notice that it ends with "-lja>". It looks like it's trying to link against -ljansson but it doesn't have the -L/path/to/nonstandard/libjansson before it that I would have expected, which is very unusual.
When I configure 3.2 here, it doesn't try to link libjansson for this check at all, and I don't see why libxml2 would be dependent on libjansson, so it's stranger and stranger. So I think the question is not "why can't it find libjansson?", but "why does it think it wants it?"
Can you please:
1) Attach your full config.log file here (redact as necessary for privacy, but please leave all the detail). You can attach a file by clicking the "Attach files by..." bit at the bottom of the comment box. 2) Apply this patch https://github.com/cyrusimap/cyrus-imapd/compare/cyrus-imapd-3.2...elliefm:v32/3175-libxml2-jansson (you can download it as a .patch file from this address: https://github.com/cyrusimap/cyrus-imapd/commit/7cf703f0b9b9ce4e74a71dc2c3bf1fd1a3fc4ecc.patch), re-run configure, and attach the new config.log as well
I'm not yet sure what the shape of the correct fix will be, but hopefully comparing these two config logs will send me in the correct direction. Thanks!
Apologies, @elliefm I've not been able to get to this for a few months. Still needed? I'm now trying to compile 3.3.1 and have a separate issue.
I'm not sure! I wasn't able to reproduce whatever was going on locally, so without config logs to pore over, I couldn't really do much. It doesn't seem likely to have just fixed itself either... but nobody else is reporting a problem, so 🤷♀️
What's your 3.3.1 issue?
Thanks, @elliefm. I've just dug a bit further and the
libxml2
test is failing in configure as it cannot find-ljansson
. Butlibjansson
has already been found and is OK (seeconfig.log
below). So it looks likelibjansson
is not correctly linked in theconfigure
test forlibxml2
. In my setup, I'm using thelibjansson
in/usr/local/cyruslibs
. Unfortunately, C has not been my first language for about 30 years, so I'm reluctant to go digging any further, but it looks like the real issue is in the configure test.Originally posted by @earthspike in https://github.com/cyrusimap/cyrus-imapd/pull/3153#issuecomment-687653713