Bug 1090401 - log4cplus is not compiled with C++11 support
Summary: log4cplus is not compiled with C++11 support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: log4cplus
Version: 21
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomáš Hozza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-23 09:02 UTC by japsmits
Modified: 2015-01-06 06:17 UTC (History)
2 users (show)

Fixed In Version: log4cplus-1.1.3-0.1.rc3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-06 06:17:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.