[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#898964: mrs: FTBFS: you don't seem to have log4cpp installed



On Fri, May 18, 2018 at 11:44:02AM +0200, Andreas Tille wrote:
> > Checking for liblog4cpp...
> > 
> > Cannot continue since you don't seem to have log4cpp installed
> > Please install the log4cpp-dev package and run configure again.
> > make[1]: *** [debian/rules:11: override_dh_auto_configure] Error 2
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:

/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

As the configure script first searches for the header and only then for library
there appears to be no way to fix this apart from searching for some other
header that doesn't require linking the library (if that exists).

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: