Bug 1090401

Summary: log4cplus is not compiled with C++11 support
Product: [Fedora] Fedora Reporter: japsmits
Component: log4cplusAssignee: Tomáš Hozza <thozza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: thozza, vhaisman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: log4cplus-1.1.3-0.1.rc3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-06 06:17:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description japsmits 2014-04-23 09:02:34 UTC
Description of problem:

Building code that requires the log4cplus::Logger(log4cplus::Logger&&) constructor fails at link time with the following error:

In function `log4cplus::detail::macros_get_logger(log4cplus::Logger&&)':
/usr/include/log4cplus/loggingmacros.h:106: undefined reference to `log4cplus::Logger::Logger(log4cplus::Logger&&)'

Version-Release number of selected component (if applicable):

log4cplus.x86_64 1.1.1-1.fc19

How reproducible:

Compile code that uses this constructor, for example like this:

#include <log4cplus/logger.h>

log4cplus::Logger logger() 
{
    return log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("main"));
}

Additional info:

This link http://sourceforge.net/p/log4cplus/bugs/272/ contains the following information on how to compile it:

"Both the library and your application have to be compiled in the same "mode". If you want to compile log4cplus in C++11 mode than (if you are using GCC) add CXXFLAGS="-std=c++11" to the configure script command line."

Comment 1 Fedora Update System 2014-12-16 16:05:04 UTC
log4cplus-1.1.3-0.1.rc3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/log4cplus-1.1.3-0.1.rc3.fc21

Comment 2 Tomáš Hozza 2014-12-16 16:06:08 UTC
I'm not going to make the change in older versions than F21.

Comment 3 Fedora Update System 2014-12-18 06:04:02 UTC
Package log4cplus-1.1.3-0.1.rc3.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing log4cplus-1.1.3-0.1.rc3.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-17114/log4cplus-1.1.3-0.1.rc3.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-01-06 06:17:50 UTC
log4cplus-1.1.3-0.1.rc3.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.