[Debian-med-packaging] Bug#898964: mrs: FTBFS: you don't seem to have log4cpp installed

Andrey Rahmatullin wrar at debian.org
Fri May 18 12:20:55 BST 2018


On Fri, May 18, 2018 at 01:06:18PM +0200, Andreas Tille wrote:
> > The reason for this: the configure script compiles the following code:
> > 
> > #include <log4cpp/Category.hh>
> > #include <iostream>
> > int main() { std::cout << 1 << '\t' << 0; return 0; }
> > 
> > in order to check that <log4cpp/Category.hh> exists.
> > But this code still requires -llog4cpp:
> 
> Thanks for the explanation but may be I'm missing your point.  The
> package installs liblog4cpp.a as well and the dynamic library installs
> the according .so file.  So why should the requriement -llog4cpp not
> fulfilled?
The configure script doesn't pass -llog4cpp. It tests for the existence of
the header and tries to find a correct -I option for it. Finding the
correct -L is the next step.

> > /tmp/cc41MUW4.o: In function `__static_initialization_and_destruction_0(int, int)':
> > 2.cpp:(.text+0x5b): undefined reference to `log4cpp::Appender::AppenderMapStorageInitializer::AppenderMapStorageInitializer()'
> > 2.cpp:(.text+0x70): undefined reference to `log4cpp::Appender::AppenderMapStorageInitializer::~AppenderMapStorageInitializer()'
> > collect2: error: ld returned 1 exit status
> 
> Isn't this rather a bug in log4cpp?
No.

-- 
WBR, wRAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20180518/02332c52/attachment-0001.sig>


More information about the Debian-med-packaging mailing list