<html><head></head><body>If the problem can be traced to the .pc file and pkg-config I will take blame for a bug.  I am away from an appropriate computer right now, but will investigate further soon.<br>
<br>
-Maitland<br>
<br><br><div class="gmail_quote">On May 18, 2018 7:20:55 AM EDT, Andrey Rahmatullin <wrar@debian.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Fri, May 18, 2018 at 01:06:18PM +0200, Andreas Tille wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> The reason for this: the configure script compiles the following code:<br> <br> #include <log4cpp/Category.hh><br> #include <iostream><br> int main() { std::cout << 1 << '\t' << 0; return 0; }<br> <br> in order to check that <log4cpp/Category.hh> exists.<br> But this code still requires -llog4cpp:<br></blockquote> <br> Thanks for the explanation but may be I'm missing your point.  The<br> package installs liblog4cpp.a as well and the dynamic library installs<br> the according .so file.  So why should the requriement -llog4cpp not<br> fulfilled?<br></blockquote>The configure script doesn't pass -llog4cpp. It tests for the existence of<br>the header and tries to find a correct -I option for it. Finding the<br>correct -L is the next step.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> /tmp/cc41MUW4.o: In function `__static_initialization_and_destruction_0(int, int)':<br> 2.cpp:(.text+0x5b): undefined reference to `log4cpp::Appender::AppenderMapStorageInitializer::AppenderMapStorageInitializer()'<br> 2.cpp:(.text+0x70): undefined reference to `log4cpp::Appender::AppenderMapStorageInitializer::~AppenderMapStorageInitializer()'<br> collect2: error: ld returned 1 exit status<br></blockquote> <br> Isn't this rather a bug in log4cpp?<br></blockquote>No.<br></pre></blockquote></div></body></html>