Hi, If Claws Mail is compiled against latest git branch with ./configure --enable-tests, these errors are produced: /usr/bin/ld: ../.libs/libfeed.a(libfeed_la-feed.o): in function `feed_update': /home/numan/Belgeler/depolar/claws/src/plugins/rssyl/libfeed/feed.c:261: undefined reference to `curl_easy_init' /usr/bin/ld: /home/numan/Belgeler/depolar/claws/src/plugins/rssyl/libfeed/feed.c:268: undefined reference to `XML_ParserCreate' /usr/bin/ld: /home/numan/Belgeler/depolar/claws/src/plugins/rssyl/libfeed/feed.c:284: undefined reference to `curl_easy_setopt' /usr/bin/ld: /home/numan/Belgeler/depolar/claws/src/plugins/rssyl/libfeed/feed.c:351: undefined reference to `XML_ParserFree' and similar ones. System: LC_ALL=C uname -a Linux kubuntu 5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux LC_ALL=C lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal LC_ALL=C gcc --version gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Steps to produce: 1. git clone https://git.claws-mail.org/readonly/claws.git 2. cd claws && ./autogen.sh 3. cd po 4. make claws-mail.pot 5. msgmerge --update tr.po claws-mail.pot 6. Update translations and cd to parent directory 7. ./configure --enable-tests
what is the output of configure?
Created attachment 2087 [details] Output og configure Paul, I attached the output of configure command. Should I also add output of ./configure --enable-tests?
It doesn't look like it has anything to do with --enable-tests. It's related to curl and expat, dependencies of the rssyl plugin. The configure output says they are found, but those errors disagree. It seems your system has a problem.
But only when I use --enable-tests option the compilation ends with an error. Well, it is not an important error and I do not use --enable-tests option when I compile Claws Mail. I just wanted to test all the options to see Claws Mail works without any flaws. When I was searching a solution, I encountered lots of commends mentioning that this kind of problem arises from using linker before source files. Anyway, thanks and sorry for taking your time.
> It doesn't look like it has anything to do with --enable-tests. It builds fine without the flag and fails with it, so... :-) > It's related to curl and expat, dependencies of the rssyl plugin. > > The configure output says they are found, but those errors disagree. > > It seems your system has a problem. It's also reproducible here (Debian testing), and while it can be also my system has a problem, I think it's because the dependencies on the rssyl/test/Makefile.am are not fully correct, though my poor attempts to fix it have failed miserably so far. Reopening just in case some enlightened mind can provide some help with this. Thanks in advance!
Created attachment 2088 [details] ldadd fix for tests
I tried to compile 3.17.6 release with --enable-tests 4 required header files are missing from the tarball: src/common/tests/mock_prefs_common_get_flush_metadata.h src/common/tests/mock_prefs_common_get_use_shred.h src/plugins/rssyl/libfeed/tests/mock_procheader_date_parse.h src/tests/mock_debug_print.h After adding these headers form git source, I can compile the release with the attached patch.
well, I cannot reproduce that problem here, so I leave it to those that can. (But I have to wonder, do we even need these tests?)