log4cplus-devel Mailing List for log4cplus (Page 12)
Logging Framework for C++
Brought to you by:
wilx
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(7) |
Dec
(15) |
2007 |
Jan
(19) |
Feb
(23) |
Mar
(40) |
Apr
(36) |
May
(18) |
Jun
(8) |
Jul
(10) |
Aug
(18) |
Sep
(18) |
Oct
(4) |
Nov
(1) |
Dec
(4) |
2008 |
Jan
(2) |
Feb
(1) |
Mar
(4) |
Apr
(16) |
May
(17) |
Jun
(15) |
Jul
(23) |
Aug
(7) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(7) |
May
|
Jun
(5) |
Jul
(2) |
Aug
(9) |
Sep
|
Oct
(4) |
Nov
(6) |
Dec
(4) |
2010 |
Jan
(2) |
Feb
(2) |
Mar
(6) |
Apr
(5) |
May
(2) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
(11) |
Jul
(1) |
Aug
(4) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
|
2012 |
Jan
|
Feb
(13) |
Mar
(3) |
Apr
(5) |
May
(18) |
Jun
(22) |
Jul
(11) |
Aug
(25) |
Sep
(56) |
Oct
(1) |
Nov
(28) |
Dec
(3) |
2013 |
Jan
(66) |
Feb
(40) |
Mar
(61) |
Apr
(1) |
May
(45) |
Jun
(30) |
Jul
(30) |
Aug
(46) |
Sep
(23) |
Oct
(43) |
Nov
(95) |
Dec
(27) |
2014 |
Jan
(16) |
Feb
(19) |
Mar
(23) |
Apr
(18) |
May
(22) |
Jun
(12) |
Jul
(15) |
Aug
(16) |
Sep
(30) |
Oct
(10) |
Nov
(10) |
Dec
(5) |
2015 |
Jan
(2) |
Feb
(7) |
Mar
|
Apr
(1) |
May
(10) |
Jun
(3) |
Jul
(1) |
Aug
(5) |
Sep
|
Oct
(6) |
Nov
(2) |
Dec
(15) |
2016 |
Jan
(21) |
Feb
(6) |
Mar
(30) |
Apr
(12) |
May
(11) |
Jun
(4) |
Jul
(2) |
Aug
(7) |
Sep
(13) |
Oct
|
Nov
(6) |
Dec
(8) |
2017 |
Jan
(21) |
Feb
(5) |
Mar
(7) |
Apr
(3) |
May
|
Jun
(4) |
Jul
(18) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2020 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2012-09-23 15:56:36
|
Support Requests item #3571003, was opened at 2012-09-23 06:07 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.0.4 Status: Open Priority: 5 Private: Yes Submitted By: https://www.google.com/accounts () Assigned to: Václav Zeman (wilx) Summary: log4cplus and lnk2001 errors Initial Comment: Hi, I am trying to use log4cplus in a larger project. I need to use the static version of log4cplus under windows using visual studio 2008. I have already added the lib path, the lib itself and the include directory to my project. After adding the "#include" line in my source file I thought I would be able to use log4cplus, but that isn't the case. I am ending up with lnk2001 (__declspec) errors which say that even the ctors can't be found. I have been looking through the unicode options of my project as well - with no success. I also tried different versions of log4cplus ... What am I doing wrong? ---------------------------------------------------------------------- >Comment By: https://www.google.com/accounts () Date: 2012-09-23 08:56 Message: Hi, I have tried log4cplusS.lib, log4cplusSD.lib and log4cplusUSD.lib. I have also tried to set the lib and the project to unicode by using the project properties in visual studio. Still no success. I also thought about mixing release and debug builds up - but that wasn't the case. Thank you for your reply. ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-23 06:42 Message: Typically, problems like this are caused by mix of log4cplus compiled with -DUNICODE and application compiled without it or vice versa. What lig4cplus.lib variant are you linking to your application? Is your application compiled for multi-byte character set or for Unicode? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-23 13:42:34
|
Support Requests item #3571003, was opened at 2012-09-23 06:07 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.0.4 Status: Open Priority: 5 Private: Yes Submitted By: https://www.google.com/accounts () >Assigned to: Václav Zeman (wilx) Summary: log4cplus and lnk2001 errors Initial Comment: Hi, I am trying to use log4cplus in a larger project. I need to use the static version of log4cplus under windows using visual studio 2008. I have already added the lib path, the lib itself and the include directory to my project. After adding the "#include" line in my source file I thought I would be able to use log4cplus, but that isn't the case. I am ending up with lnk2001 (__declspec) errors which say that even the ctors can't be found. I have been looking through the unicode options of my project as well - with no success. I also tried different versions of log4cplus ... What am I doing wrong? ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-23 06:42 Message: Typically, problems like this are caused by mix of log4cplus compiled with -DUNICODE and application compiled without it or vice versa. What lig4cplus.lib variant are you linking to your application? Is your application compiled for multi-byte character set or for Unicode? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-23 13:07:58
|
Support Requests item #3571003, was opened at 2012-09-23 06:07 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.0.4 Status: Open Priority: 5 Private: Yes Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: log4cplus and lnk2001 errors Initial Comment: Hi, I am trying to use log4cplus in a larger project. I need to use the static version of log4cplus under windows using visual studio 2008. I have already added the lib path, the lib itself and the include directory to my project. After adding the "#include" line in my source file I thought I would be able to use log4cplus, but that isn't the case. I am ending up with lnk2001 (__declspec) errors which say that even the ctors can't be found. I have been looking through the unicode options of my project as well - with no success. I also tried different versions of log4cplus ... What am I doing wrong? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-23 05:48:18
|
Support Requests item #3570926, was opened at 2012-09-22 21:00 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3570926&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.1.0 >Status: Pending Priority: 5 Private: No Submitted By: https://www.google.com/accounts () >Assigned to: Václav Zeman (wilx) Summary: Buffer overrun with Hello World example Initial Comment: I'm attempting to use logforcplus in my first c++ project in over ten years, so please assume I might have done something simple wrong. I cannot get the Hello World example working without buffer overrun errors. I downloaded log4cplus-1.1.0-rc10. I used VS2010 to open the sln in msvc10 folder, set log4cplus project to Debug_Unicode, and compile. I created a new project directory log4cplusDemo, with subdirectories bin, include, lib, and src. "Bin" contains log4cplusUD.dll and pdb, "include" contains include\log4cplus, and "lib" contains log4cplusUD.lib. I used VS2012 to create a new C++ Win32 exe in the "src" directory. Project Properties..Configuration Properties..General..Character Set is Unicode. Configuration Properties..C/C++..General..Additional Include Directories has a reference to "include". Configuration Properties..Linker..General..Additional Library Directories has a reference to "lib". Linker..Input..Additional Dependencies has a reference to "log4cplusUD.lib". Trying the hello world example resulted in a buffer overrun error. I was able to expand the macro and isolate the failing line. Replacing it with a hardcoded string works, but causes a buffer overrun when main() exits. What am I doing wrong? #include "stdafx.h" #include <log4cplus/logger.h> #include <log4cplus/loggingmacros.h> #include <log4cplus/configurator.h> using namespace log4cplus; int _tmain(int argc, _TCHAR* argv[]) { BasicConfigurator config; config.configure(); Logger logger = Logger::getInstance(LOG4CPLUS_TEXT("main")); // This causes buffer overrun on this line // LOG4CPLUS_WARN(logger, LOG4CPLUS_TEXT("Hello, World!")); // This works (by commenting out original call to .str() and sending a string directly), // but buffer overflow error occurs on return statement. do { log4cplus::Logger const & _l = log4cplus::detail::macros_get_logger (logger); // I can't figure out this macro, and it's just checking if the desired log level is enabled so comment out // if (LOG4CPLUS_MACRO_LOGLEVEL_PRED ( //_l.isEnabledFor (log4cplus::logLevel), logLevel)) { log4cplus::tostringstream & _log4cplus_buf = log4cplus::detail::get_macro_body_oss (); _log4cplus_buf << LOG4CPLUS_TEXT("Hello, World!"); log4cplus::detail::macro_forced_log (_l, log4cplus::WARN_LOG_LEVEL, // This causes buffer overflow error, replace with string directly //_log4cplus_buf.str(), L"Hello world!", __FILE__, __LINE__, LOG4CPLUS_MACRO_FUNCTION () ); //} } while (0); getchar(); return 0; } ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-22 22:48 Message: AFAIK, you cannot do that. Trying to combine VS 2010 built library and VS 2012 compiled executable, in general, does not work. Build log4cplus using VS 2012 as well. I have not tried but there should be no problem opening the VS 2010 solution in VS 2012 and building it there. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3570926&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-23 04:00:11
|
Support Requests item #3570926, was opened at 2012-09-22 21:00 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3570926&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.1.0 Status: Open Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Buffer overrun with Hello World example Initial Comment: I'm attempting to use logforcplus in my first c++ project in over ten years, so please assume I might have done something simple wrong. I cannot get the Hello World example working without buffer overrun errors. I downloaded log4cplus-1.1.0-rc10. I used VS2010 to open the sln in msvc10 folder, set log4cplus project to Debug_Unicode, and compile. I created a new project directory log4cplusDemo, with subdirectories bin, include, lib, and src. "Bin" contains log4cplusUD.dll and pdb, "include" contains include\log4cplus, and "lib" contains log4cplusUD.lib. I used VS2012 to create a new C++ Win32 exe in the "src" directory. Project Properties..Configuration Properties..General..Character Set is Unicode. Configuration Properties..C/C++..General..Additional Include Directories has a reference to "include". Configuration Properties..Linker..General..Additional Library Directories has a reference to "lib". Linker..Input..Additional Dependencies has a reference to "log4cplusUD.lib". Trying the hello world example resulted in a buffer overrun error. I was able to expand the macro and isolate the failing line. Replacing it with a hardcoded string works, but causes a buffer overrun when main() exits. What am I doing wrong? #include "stdafx.h" #include <log4cplus/logger.h> #include <log4cplus/loggingmacros.h> #include <log4cplus/configurator.h> using namespace log4cplus; int _tmain(int argc, _TCHAR* argv[]) { BasicConfigurator config; config.configure(); Logger logger = Logger::getInstance(LOG4CPLUS_TEXT("main")); // This causes buffer overrun on this line // LOG4CPLUS_WARN(logger, LOG4CPLUS_TEXT("Hello, World!")); // This works (by commenting out original call to .str() and sending a string directly), // but buffer overflow error occurs on return statement. do { log4cplus::Logger const & _l = log4cplus::detail::macros_get_logger (logger); // I can't figure out this macro, and it's just checking if the desired log level is enabled so comment out // if (LOG4CPLUS_MACRO_LOGLEVEL_PRED ( //_l.isEnabledFor (log4cplus::logLevel), logLevel)) { log4cplus::tostringstream & _log4cplus_buf = log4cplus::detail::get_macro_body_oss (); _log4cplus_buf << LOG4CPLUS_TEXT("Hello, World!"); log4cplus::detail::macro_forced_log (_l, log4cplus::WARN_LOG_LEVEL, // This causes buffer overflow error, replace with string directly //_log4cplus_buf.str(), L"Hello world!", __FILE__, __LINE__, LOG4CPLUS_MACRO_FUNCTION () ); //} } while (0); getchar(); return 0; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3570926&group_id=40830 |
From: Václav Z. <vha...@gm...> - 2012-09-21 22:45:25
|
On 09/21/2012 11:23 PM, Tobias Allén wrote: > > Hey im very new to log4cplus and woundering following: > > logger logVar1; > logger logVar2; > > if i have two different logger in my code and i want to change the > level to be logged for only one off. I want to do this from the > property file. how should i solve this? I have read examples on doing > this for only one logger variable but not for 2 separeatly. Assuming that both logVar1 and logVar2 point to the same logger instance (same logger name "foo.bar.baz"), then it is sufficient to change the log level through just one of the two variables. > I want to change the levels during run time and therefore i have to > use the property file. You do not have to use a property file to change log level for one or two loggers. You can just call logVar1->setLogLevel(log4cplus::OFF_LOG_LEVEL) and nothing will be logged through logVar1 any more. -- VZ |
From: Tobias A. <tob...@ho...> - 2012-09-21 21:23:09
|
Hey im very new to log4cplus and woundering following: logger logVar1; logger logVar2; if i have two different logger in my code and i want to change the level to be logged for only one off. I want to do this from the property file. how should i solve this? I have read examples on doing this for only one logger variable but not for 2 separeatly. I want to change the levels during run time and therefore i have to use the property file. Thanks in advance! |
From: SourceForge.net <no...@so...> - 2012-09-19 11:03:16
|
Bugs item #3174236, was opened at 2011-02-06 07:25 Message generated for change (Settings changed) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3174236&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.1.x Status: Pending >Resolution: Remind Priority: 4 Private: No Submitted By: Mikael Tintinger (mtintinger) Assigned to: Václav Zeman (wilx) Summary: Compilation of liblog4cplus 1.0.5 (HEAD) failed on Solaris 8 Initial Comment: libtool: compile: CC -DHAVE_CONFIG_H -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -DUNICODE -D_REENTRANT -g +w -library=stlport4 -library=Crun -D_REENTRANT -c stringhelper.cxx -KPIC -DPIC -o .libs/stringhelper.o "stringhelper.cxx", line 360: Error: towupper is not a member of file level. "stringhelper.cxx", line 378: Error: towlower is not a member of file level. To build the library I have to launch ./configure CFLAGS=-DUNICODE CPPFLAGS=-DUNICODE and include <wchar.h> for towupper and towlower functions in stringhelper.cxx. Is it possible to make UNICODE an option as it is for REENTRANT (enable-threads) ? ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-03 22:33 Message: Is this fixed for you in the 1.1.0 series? ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2011-02-06 13:31 Message: As for the -DUNICODE, I have thought about it in the past and I have decided not to do it. You might want to use single copy of headers with separate binaries for both wchar_t and char versions of the library. The REENTRANT define does not leak into the user space, its situation is slightly different. ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2011-02-06 13:27 Message: Hmm. I think that what needs changing are the bodies of toupper_func and tolower_func, removing the inner #ifdef. I have committed the change in revision 1521. Please try to compile it now. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3174236&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-19 11:01:47
|
Bugs item #3307368, was opened at 2011-05-25 02:08 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3307368&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Roman A Musiy (rmusiy) Assigned to: Václav Zeman (wilx) Summary: Code example issue Initial Comment: Hi, when i tried compile helloworld app there was error message: error C2665: 'log4cplus::Logger::getInstance' : none of the 2 overloads could convert all the argument types to fix this you have to replace Logger logger = Logger::getInstance("main"); to Logger logger = Logger::getInstance(L"main"); ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-19 04:01 Message: I believe this is now fixed on the site. ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2011-05-25 02:23 Message: The examples are very basic. You should use LOG4CPLUS_TEXT("main") instead of direct L"main". I will change the code example on the web. Thanks for the report. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3307368&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-19 10:59:47
|
Bugs item #3313645, was opened at 2011-06-08 03:01 Message generated for change (Settings changed) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3313645&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: v1.1.x >Status: Closed Resolution: Works For Me Priority: 5 Private: No Submitted By: Nikita Manovich (nikman84) Assigned to: Václav Zeman (wilx) Summary: Using cmake is impossible on Linux withtout configure step Initial Comment: I just tried to use cmake to build the product on Linux and got errors (see below). After "./configure" command cmake works. The package does'nt contain log4cplus/config/defines.hxx but only log4cplus/config/defines.hxx.in. Thus configure step is mandatory now. Is it possible to fix that (cmake feature is cool)! [ 1%] Building CXX object CMakeFiles/log4cplus.dir/src/appender.cxx.o /usr/bin/c++ -Dlog4cplus_EXPORTS -fPIC -I/tmp/log4cplus-1.0.4/include -DINSIDE_LOG4CPLUS -o CMakeFiles/log4cplus.dir/src/appender.cxx.o -c /tmp/log4cplus-1.0.4/src/appender.cxx In file included from /tmp/log4cplus-1.0.4/include/log4cplus/appender.h:26:0, from /tmp/log4cplus-1.0.4/src/appender.cxx:21: /tmp/log4cplus-1.0.4/include/log4cplus/config.hxx:33:42: fatal error: log4cplus/config/defines.hxx: No such file or directory compilation terminated. make[2]: *** [CMakeFiles/log4cplus.dir/src/appender.cxx.o] Error 1 make[2]: Leaving directory `/tmp/log4cplus-1.0.4/build' make[1]: *** [CMakeFiles/log4cplus.dir/all] Error 2 make[1]: Leaving directory `/tmp ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-04 03:04 Message: I believe this is now fixed on 1.1.x branch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3313645&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-19 10:57:39
|
Bugs item #3561263, was opened at 2012-08-24 04:06 Message generated for change (Settings changed) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3561263&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None >Group: v1.1.x >Status: Closed Resolution: Works For Me >Priority: 4 Private: No Submitted By: Psychon (psychon) Assigned to: Václav Zeman (wilx) Summary: PatternLayout: printing just the file name Initial Comment: Right now, when using %F in a pattern, the filename as seen by the compiler gets used. This can include parts of a relative path, especially for headers (but also when an out-of-tree build was used while compiling the source). This looks ugly. I have two suggestions: - Change %F (and %l) to just print the substring after the last directory seperator ("/" or "\", depending on OS). - Add new modifiers that do the above. Please let me know if you see this as an issue that should be fixed and which fix you would prefer. Thanks, Uli ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-08-24 09:30 Message: This is already implemented using %b specifier at least on trunk. . ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3561263&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-19 08:34:46
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-19 01:34 Message: Thank you for the bug report and testing. ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-19 01:08 Message: Compiles fine and seems to run. ;-) Thanks ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-18 12:54 Message: Thank you. I have attached a diff that fixes both of the problems that you have reported today. I have reimplemented Semaphore using named POSIX semaphores for MacOS X. Please try it and tell me if it works well for you. ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 06:29 Message: Named semaphores seem to work in my quick test. Except I had problems on app exit (crash in log thread). But this might be another bug. g++ --version i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) echo | g++ -dD -E - # 1 "<stdin>" # 1 "<built-in>" #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __GNUC__ 4 #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __APPLE_CC__ 5658 #define __llvm__ 1 #define __SIZE_TYPE__ long unsigned int #define __PTRDIFF_TYPE__ long int #define __WCHAR_TYPE__ int #define __WINT_TYPE__ int #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __GXX_ABI_VERSION 1002 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __CHAR_BIT__ 8 #define __INTMAX_MAX__ 9223372036854775807L #define __FLT_EVAL_METHOD__ 0 #define __DEC_EVAL_METHOD__ 2 #define __FLT_RADIX__ 2 #define __FLT_MANT_DIG__ 24 #define __FLT_DIG__ 6 #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MAX_EXP__ 128 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN__ 1.17549435e-38F #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_DIG__ 15 #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN__ 2.2250738585072014e-308 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_DIG__ 18 #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX_10_EXP__ 4932 #define __DECIMAL_DIG__ 21 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __DEC32_MANT_DIG__ 7 #define __DEC32_MIN_EXP__ (-95) #define __DEC32_MAX_EXP__ 96 #define __DEC32_MIN__ 1E-95DF #define __DEC32_MAX__ 9.999999E96DF #define __DEC32_EPSILON__ 1E-6DF #define __DEC32_DEN__ 0.000001E-95DF #define __DEC64_MANT_DIG__ 16 #define __DEC64_MIN_EXP__ (-383) #define __DEC64_MAX_EXP__ 384 #define __DEC64_MIN__ 1E-383DD #define __DEC64_MAX__ 9.999999999999999E384DD #define __DEC64_EPSILON__ 1E-15DD #define __DEC64_DEN__ 0.000000000000001E-383DD #define __DEC128_MANT_DIG__ 34 #define __DEC128_MIN_EXP__ (-6143) #define __DEC128_MAX_EXP__ 6144 #define __DEC128_MIN__ 1E-6143DL #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __DEC128_EPSILON__ 1E-33DL #define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL #define __REGISTER_PREFIX__ #define __USER_LABEL_PREFIX__ _ #define __VERSION__ "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)" #define __GNUC_GNU_INLINE__ 1 #define _LP64 1 #define __LP64__ 1 #define __BLOCKS__ 1 #define __NO_INLINE__ 1 #define __FINITE_MATH_ONLY__ 0 #define __pic__ 2 #define __PIC__ 2 #define __SSP__ 1 #define __amd64 1 #define __amd64__ 1 #define __x86_64 1 #define __x86_64__ 1 #define __tune_core2__ 1 #define __MMX__ 1 #define __SSE__ 1 #define __SSE2__ 1 #define __SSE3__ 1 #define __SSE_MATH__ 1 #define __SSE2_MATH__ 1 #define __k8 1 #define __k8__ 1 #define __NO_MATH_INLINES 1 #define __LITTLE_ENDIAN__ 1 #define __MACH__ 1 #define __APPLE__ 1 clang --version Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.1.0 echo | xcrun clang -dD -E - # 1 "<stdin>" # 1 "<stdin>" 1 # 1 "<built-in>" 1 # 1 "<built-in>" 3 #define __llvm__ 1 #define __clang__ 1 #define __clang_major__ 4 #define __clang_minor__ 0 #define __clang_patchlevel__ 0 #define __clang_version__ "4.0 ((tags/Apple/clang-421.0.60))" #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __GNUC__ 4 #define __GXX_ABI_VERSION 1002 #define __ATOMIC_RELAXED 0 #define __ATOMIC_CONSUME 1 #define __ATOMIC_ACQUIRE 2 #define __ATOMIC_RELEASE 3 #define __ATOMIC_ACQ_REL 4 #define __ATOMIC_SEQ_CST 5 #define __PRAGMA_REDEFINE_EXTNAME 1 #define __VERSION__ "4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))" #define __CONSTANT_CFSTRINGS__ 1 #define __block __attribute__((__blocks__(byref))) #define __BLOCKS__ 1 #define __GXX_RTTI 1 #define __CHAR_BIT__ 8 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __INTMAX_MAX__ 9223372036854775807L #define __SIZEOF_DOUBLE__ 8 #define __SIZEOF_FLOAT__ 4 #define __SIZEOF_INT__ 4 #define __SIZEOF_LONG__ 8 #define __SIZEOF_LONG_DOUBLE__ 16 #define __SIZEOF_LONG_LONG__ 8 #define __SIZEOF_POINTER__ 8 #define __SIZEOF_SHORT__ 2 #define __SIZEOF_PTRDIFF_T__ 8 #define __SIZEOF_SIZE_T__ 8 #define __SIZEOF_WCHAR_T__ 4 #define __SIZEOF_WINT_T__ 4 #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __INTMAX_WIDTH__ 64 #define __PTRDIFF_TYPE__ long int #define __PTRDIFF_WIDTH__ 64 #define __INTPTR_TYPE__ long int #define __INTPTR_WIDTH__ 64 #define __SIZE_TYPE__ long unsigned int #define __SIZE_WIDTH__ 64 #define __WCHAR_TYPE__ int #define __WCHAR_WIDTH__ 32 #define __WINT_TYPE__ int #define __WINT_WIDTH__ 32 #define __SIG_ATOMIC_WIDTH__ 32 #define __CHAR16_TYPE__ unsigned short #define __CHAR32_TYPE__ unsigned int #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_DIG__ 6 #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MANT_DIG__ 24 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX_EXP__ 128 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN__ 1.17549435e-38F #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_DIG__ 15 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN__ 2.2250738585072014e-308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_DIG__ 18 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_MAX_10_EXP__ 4932 #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __POINTER_WIDTH__ 64 #define __INT8_TYPE__ char #define __INT16_TYPE__ short #define __INT32_TYPE__ int #define __INT64_TYPE__ long long int #define __INT64_C_SUFFIX__ LL #define __USER_LABEL_PREFIX__ _ #define __FINITE_MATH_ONLY__ 0 #define __GNUC_STDC_INLINE__ 1 #define __NO_INLINE__ 1 #define __PIC__ 1 #define __pic__ 1 #define __FLT_EVAL_METHOD__ 0 #define __FLT_RADIX__ 2 #define __DECIMAL_DIG__ 21 #define __SSP__ 1 #define _LP64 1 #define __LP64__ 1 #define __amd64__ 1 #define __amd64 1 #define __x86_64 1 #define __x86_64__ 1 #define __core2 1 #define __core2__ 1 #define __tune_core2__ 1 #define __LITTLE_ENDIAN__ 1 #define __REGISTER_PREFIX__ #define __NO_MATH_INLINES 1 #define __SSSE3__ 1 #define __SSE3__ 1 #define __SSE2__ 1 #define __SSE2_MATH__ 1 #define __SSE__ 1 #define __SSE_MATH__ 1 #define __MMX__ 1 #define __APPLE_CC__ 5621 #define __APPLE__ 1 #define __MACH__ 1 #define OBJC_NEW_PROPERTIES 1 #define __apple_build_version__ 4210060 #define __weak __attribute__((objc_gc(weak))) #define __strong #define __unsafe_unretained #define __DYNAMIC__ 1 #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1080 #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __STDC_VERSION__ 199901L # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-18 06:21 Message: It seems that I could just use named semaphores on MacOS X instead. I do not want to use OS specific headers if I can avoid it. I'll see what I can do later today. Could you please give me the output of "echo | g++ -dD -E -" (or similar) command? ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 05:14 Message: Taken from http://www.opensource.apple.com/source/freeradius/freeradius-36/freeradius/src/main/threads.c Please add surrounding ifdefs #include <mach/mach.h> #include <mach/task.h> #include <mach/semaphore.h> #undef sem_t #define sem_t semaphore_t #undef sem_init #define sem_init(s,p,c) semaphore_create(mach_task_self(),s,SYNC_POLICY_FIFO,c) #undef sem_wait #define sem_wait(s) semaphore_wait(*s) #undef sem_post #define sem_post(s) semaphore_signal(*s) #undef sem_destroy #define sem_destroy(s) semaphore_destroy(mach_task_self(),*s) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-19 08:09:25
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Comment added) made by rueegg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x Status: Open Resolution: Remind Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- >Comment By: Christian Rüegg (rueegg) Date: 2012-09-19 01:08 Message: Compiles fine and seems to run. ;-) Thanks ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-18 12:54 Message: Thank you. I have attached a diff that fixes both of the problems that you have reported today. I have reimplemented Semaphore using named POSIX semaphores for MacOS X. Please try it and tell me if it works well for you. ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 06:29 Message: Named semaphores seem to work in my quick test. Except I had problems on app exit (crash in log thread). But this might be another bug. g++ --version i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) echo | g++ -dD -E - # 1 "<stdin>" # 1 "<built-in>" #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __GNUC__ 4 #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __APPLE_CC__ 5658 #define __llvm__ 1 #define __SIZE_TYPE__ long unsigned int #define __PTRDIFF_TYPE__ long int #define __WCHAR_TYPE__ int #define __WINT_TYPE__ int #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __GXX_ABI_VERSION 1002 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __CHAR_BIT__ 8 #define __INTMAX_MAX__ 9223372036854775807L #define __FLT_EVAL_METHOD__ 0 #define __DEC_EVAL_METHOD__ 2 #define __FLT_RADIX__ 2 #define __FLT_MANT_DIG__ 24 #define __FLT_DIG__ 6 #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MAX_EXP__ 128 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN__ 1.17549435e-38F #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_DIG__ 15 #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN__ 2.2250738585072014e-308 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_DIG__ 18 #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX_10_EXP__ 4932 #define __DECIMAL_DIG__ 21 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __DEC32_MANT_DIG__ 7 #define __DEC32_MIN_EXP__ (-95) #define __DEC32_MAX_EXP__ 96 #define __DEC32_MIN__ 1E-95DF #define __DEC32_MAX__ 9.999999E96DF #define __DEC32_EPSILON__ 1E-6DF #define __DEC32_DEN__ 0.000001E-95DF #define __DEC64_MANT_DIG__ 16 #define __DEC64_MIN_EXP__ (-383) #define __DEC64_MAX_EXP__ 384 #define __DEC64_MIN__ 1E-383DD #define __DEC64_MAX__ 9.999999999999999E384DD #define __DEC64_EPSILON__ 1E-15DD #define __DEC64_DEN__ 0.000000000000001E-383DD #define __DEC128_MANT_DIG__ 34 #define __DEC128_MIN_EXP__ (-6143) #define __DEC128_MAX_EXP__ 6144 #define __DEC128_MIN__ 1E-6143DL #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __DEC128_EPSILON__ 1E-33DL #define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL #define __REGISTER_PREFIX__ #define __USER_LABEL_PREFIX__ _ #define __VERSION__ "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)" #define __GNUC_GNU_INLINE__ 1 #define _LP64 1 #define __LP64__ 1 #define __BLOCKS__ 1 #define __NO_INLINE__ 1 #define __FINITE_MATH_ONLY__ 0 #define __pic__ 2 #define __PIC__ 2 #define __SSP__ 1 #define __amd64 1 #define __amd64__ 1 #define __x86_64 1 #define __x86_64__ 1 #define __tune_core2__ 1 #define __MMX__ 1 #define __SSE__ 1 #define __SSE2__ 1 #define __SSE3__ 1 #define __SSE_MATH__ 1 #define __SSE2_MATH__ 1 #define __k8 1 #define __k8__ 1 #define __NO_MATH_INLINES 1 #define __LITTLE_ENDIAN__ 1 #define __MACH__ 1 #define __APPLE__ 1 clang --version Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.1.0 echo | xcrun clang -dD -E - # 1 "<stdin>" # 1 "<stdin>" 1 # 1 "<built-in>" 1 # 1 "<built-in>" 3 #define __llvm__ 1 #define __clang__ 1 #define __clang_major__ 4 #define __clang_minor__ 0 #define __clang_patchlevel__ 0 #define __clang_version__ "4.0 ((tags/Apple/clang-421.0.60))" #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __GNUC__ 4 #define __GXX_ABI_VERSION 1002 #define __ATOMIC_RELAXED 0 #define __ATOMIC_CONSUME 1 #define __ATOMIC_ACQUIRE 2 #define __ATOMIC_RELEASE 3 #define __ATOMIC_ACQ_REL 4 #define __ATOMIC_SEQ_CST 5 #define __PRAGMA_REDEFINE_EXTNAME 1 #define __VERSION__ "4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))" #define __CONSTANT_CFSTRINGS__ 1 #define __block __attribute__((__blocks__(byref))) #define __BLOCKS__ 1 #define __GXX_RTTI 1 #define __CHAR_BIT__ 8 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __INTMAX_MAX__ 9223372036854775807L #define __SIZEOF_DOUBLE__ 8 #define __SIZEOF_FLOAT__ 4 #define __SIZEOF_INT__ 4 #define __SIZEOF_LONG__ 8 #define __SIZEOF_LONG_DOUBLE__ 16 #define __SIZEOF_LONG_LONG__ 8 #define __SIZEOF_POINTER__ 8 #define __SIZEOF_SHORT__ 2 #define __SIZEOF_PTRDIFF_T__ 8 #define __SIZEOF_SIZE_T__ 8 #define __SIZEOF_WCHAR_T__ 4 #define __SIZEOF_WINT_T__ 4 #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __INTMAX_WIDTH__ 64 #define __PTRDIFF_TYPE__ long int #define __PTRDIFF_WIDTH__ 64 #define __INTPTR_TYPE__ long int #define __INTPTR_WIDTH__ 64 #define __SIZE_TYPE__ long unsigned int #define __SIZE_WIDTH__ 64 #define __WCHAR_TYPE__ int #define __WCHAR_WIDTH__ 32 #define __WINT_TYPE__ int #define __WINT_WIDTH__ 32 #define __SIG_ATOMIC_WIDTH__ 32 #define __CHAR16_TYPE__ unsigned short #define __CHAR32_TYPE__ unsigned int #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_DIG__ 6 #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MANT_DIG__ 24 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX_EXP__ 128 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN__ 1.17549435e-38F #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_DIG__ 15 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN__ 2.2250738585072014e-308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_DIG__ 18 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_MAX_10_EXP__ 4932 #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __POINTER_WIDTH__ 64 #define __INT8_TYPE__ char #define __INT16_TYPE__ short #define __INT32_TYPE__ int #define __INT64_TYPE__ long long int #define __INT64_C_SUFFIX__ LL #define __USER_LABEL_PREFIX__ _ #define __FINITE_MATH_ONLY__ 0 #define __GNUC_STDC_INLINE__ 1 #define __NO_INLINE__ 1 #define __PIC__ 1 #define __pic__ 1 #define __FLT_EVAL_METHOD__ 0 #define __FLT_RADIX__ 2 #define __DECIMAL_DIG__ 21 #define __SSP__ 1 #define _LP64 1 #define __LP64__ 1 #define __amd64__ 1 #define __amd64 1 #define __x86_64 1 #define __x86_64__ 1 #define __core2 1 #define __core2__ 1 #define __tune_core2__ 1 #define __LITTLE_ENDIAN__ 1 #define __REGISTER_PREFIX__ #define __NO_MATH_INLINES 1 #define __SSSE3__ 1 #define __SSE3__ 1 #define __SSE2__ 1 #define __SSE2_MATH__ 1 #define __SSE__ 1 #define __SSE_MATH__ 1 #define __MMX__ 1 #define __APPLE_CC__ 5621 #define __APPLE__ 1 #define __MACH__ 1 #define OBJC_NEW_PROPERTIES 1 #define __apple_build_version__ 4210060 #define __weak __attribute__((objc_gc(weak))) #define __strong #define __unsafe_unretained #define __DYNAMIC__ 1 #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1080 #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __STDC_VERSION__ 199901L # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-18 06:21 Message: It seems that I could just use named semaphores on MacOS X instead. I do not want to use OS specific headers if I can avoid it. I'll see what I can do later today. Could you please give me the output of "echo | g++ -dD -E -" (or similar) command? ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 05:14 Message: Taken from http://www.opensource.apple.com/source/freeradius/freeradius-36/freeradius/src/main/threads.c Please add surrounding ifdefs #include <mach/mach.h> #include <mach/task.h> #include <mach/semaphore.h> #undef sem_t #define sem_t semaphore_t #undef sem_init #define sem_init(s,p,c) semaphore_create(mach_task_self(),s,SYNC_POLICY_FIFO,c) #undef sem_wait #define sem_wait(s) semaphore_wait(*s) #undef sem_post #define sem_post(s) semaphore_signal(*s) #undef sem_destroy #define sem_destroy(s) semaphore_destroy(mach_task_self(),*s) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 19:54:16
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x Status: Open >Resolution: Remind Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-18 12:54 Message: Thank you. I have attached a diff that fixes both of the problems that you have reported today. I have reimplemented Semaphore using named POSIX semaphores for MacOS X. Please try it and tell me if it works well for you. ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 06:29 Message: Named semaphores seem to work in my quick test. Except I had problems on app exit (crash in log thread). But this might be another bug. g++ --version i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) echo | g++ -dD -E - # 1 "<stdin>" # 1 "<built-in>" #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __GNUC__ 4 #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __APPLE_CC__ 5658 #define __llvm__ 1 #define __SIZE_TYPE__ long unsigned int #define __PTRDIFF_TYPE__ long int #define __WCHAR_TYPE__ int #define __WINT_TYPE__ int #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __GXX_ABI_VERSION 1002 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __CHAR_BIT__ 8 #define __INTMAX_MAX__ 9223372036854775807L #define __FLT_EVAL_METHOD__ 0 #define __DEC_EVAL_METHOD__ 2 #define __FLT_RADIX__ 2 #define __FLT_MANT_DIG__ 24 #define __FLT_DIG__ 6 #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MAX_EXP__ 128 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN__ 1.17549435e-38F #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_DIG__ 15 #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN__ 2.2250738585072014e-308 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_DIG__ 18 #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX_10_EXP__ 4932 #define __DECIMAL_DIG__ 21 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __DEC32_MANT_DIG__ 7 #define __DEC32_MIN_EXP__ (-95) #define __DEC32_MAX_EXP__ 96 #define __DEC32_MIN__ 1E-95DF #define __DEC32_MAX__ 9.999999E96DF #define __DEC32_EPSILON__ 1E-6DF #define __DEC32_DEN__ 0.000001E-95DF #define __DEC64_MANT_DIG__ 16 #define __DEC64_MIN_EXP__ (-383) #define __DEC64_MAX_EXP__ 384 #define __DEC64_MIN__ 1E-383DD #define __DEC64_MAX__ 9.999999999999999E384DD #define __DEC64_EPSILON__ 1E-15DD #define __DEC64_DEN__ 0.000000000000001E-383DD #define __DEC128_MANT_DIG__ 34 #define __DEC128_MIN_EXP__ (-6143) #define __DEC128_MAX_EXP__ 6144 #define __DEC128_MIN__ 1E-6143DL #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __DEC128_EPSILON__ 1E-33DL #define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL #define __REGISTER_PREFIX__ #define __USER_LABEL_PREFIX__ _ #define __VERSION__ "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)" #define __GNUC_GNU_INLINE__ 1 #define _LP64 1 #define __LP64__ 1 #define __BLOCKS__ 1 #define __NO_INLINE__ 1 #define __FINITE_MATH_ONLY__ 0 #define __pic__ 2 #define __PIC__ 2 #define __SSP__ 1 #define __amd64 1 #define __amd64__ 1 #define __x86_64 1 #define __x86_64__ 1 #define __tune_core2__ 1 #define __MMX__ 1 #define __SSE__ 1 #define __SSE2__ 1 #define __SSE3__ 1 #define __SSE_MATH__ 1 #define __SSE2_MATH__ 1 #define __k8 1 #define __k8__ 1 #define __NO_MATH_INLINES 1 #define __LITTLE_ENDIAN__ 1 #define __MACH__ 1 #define __APPLE__ 1 clang --version Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.1.0 echo | xcrun clang -dD -E - # 1 "<stdin>" # 1 "<stdin>" 1 # 1 "<built-in>" 1 # 1 "<built-in>" 3 #define __llvm__ 1 #define __clang__ 1 #define __clang_major__ 4 #define __clang_minor__ 0 #define __clang_patchlevel__ 0 #define __clang_version__ "4.0 ((tags/Apple/clang-421.0.60))" #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __GNUC__ 4 #define __GXX_ABI_VERSION 1002 #define __ATOMIC_RELAXED 0 #define __ATOMIC_CONSUME 1 #define __ATOMIC_ACQUIRE 2 #define __ATOMIC_RELEASE 3 #define __ATOMIC_ACQ_REL 4 #define __ATOMIC_SEQ_CST 5 #define __PRAGMA_REDEFINE_EXTNAME 1 #define __VERSION__ "4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))" #define __CONSTANT_CFSTRINGS__ 1 #define __block __attribute__((__blocks__(byref))) #define __BLOCKS__ 1 #define __GXX_RTTI 1 #define __CHAR_BIT__ 8 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __INTMAX_MAX__ 9223372036854775807L #define __SIZEOF_DOUBLE__ 8 #define __SIZEOF_FLOAT__ 4 #define __SIZEOF_INT__ 4 #define __SIZEOF_LONG__ 8 #define __SIZEOF_LONG_DOUBLE__ 16 #define __SIZEOF_LONG_LONG__ 8 #define __SIZEOF_POINTER__ 8 #define __SIZEOF_SHORT__ 2 #define __SIZEOF_PTRDIFF_T__ 8 #define __SIZEOF_SIZE_T__ 8 #define __SIZEOF_WCHAR_T__ 4 #define __SIZEOF_WINT_T__ 4 #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __INTMAX_WIDTH__ 64 #define __PTRDIFF_TYPE__ long int #define __PTRDIFF_WIDTH__ 64 #define __INTPTR_TYPE__ long int #define __INTPTR_WIDTH__ 64 #define __SIZE_TYPE__ long unsigned int #define __SIZE_WIDTH__ 64 #define __WCHAR_TYPE__ int #define __WCHAR_WIDTH__ 32 #define __WINT_TYPE__ int #define __WINT_WIDTH__ 32 #define __SIG_ATOMIC_WIDTH__ 32 #define __CHAR16_TYPE__ unsigned short #define __CHAR32_TYPE__ unsigned int #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_DIG__ 6 #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MANT_DIG__ 24 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX_EXP__ 128 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN__ 1.17549435e-38F #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_DIG__ 15 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN__ 2.2250738585072014e-308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_DIG__ 18 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_MAX_10_EXP__ 4932 #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __POINTER_WIDTH__ 64 #define __INT8_TYPE__ char #define __INT16_TYPE__ short #define __INT32_TYPE__ int #define __INT64_TYPE__ long long int #define __INT64_C_SUFFIX__ LL #define __USER_LABEL_PREFIX__ _ #define __FINITE_MATH_ONLY__ 0 #define __GNUC_STDC_INLINE__ 1 #define __NO_INLINE__ 1 #define __PIC__ 1 #define __pic__ 1 #define __FLT_EVAL_METHOD__ 0 #define __FLT_RADIX__ 2 #define __DECIMAL_DIG__ 21 #define __SSP__ 1 #define _LP64 1 #define __LP64__ 1 #define __amd64__ 1 #define __amd64 1 #define __x86_64 1 #define __x86_64__ 1 #define __core2 1 #define __core2__ 1 #define __tune_core2__ 1 #define __LITTLE_ENDIAN__ 1 #define __REGISTER_PREFIX__ #define __NO_MATH_INLINES 1 #define __SSSE3__ 1 #define __SSE3__ 1 #define __SSE2__ 1 #define __SSE2_MATH__ 1 #define __SSE__ 1 #define __SSE_MATH__ 1 #define __MMX__ 1 #define __APPLE_CC__ 5621 #define __APPLE__ 1 #define __MACH__ 1 #define OBJC_NEW_PROPERTIES 1 #define __apple_build_version__ 4210060 #define __weak __attribute__((objc_gc(weak))) #define __strong #define __unsafe_unretained #define __DYNAMIC__ 1 #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1080 #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __STDC_VERSION__ 199901L # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-18 06:21 Message: It seems that I could just use named semaphores on MacOS X instead. I do not want to use OS specific headers if I can avoid it. I'll see what I can do later today. Could you please give me the output of "echo | g++ -dD -E -" (or similar) command? ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 05:14 Message: Taken from http://www.opensource.apple.com/source/freeradius/freeradius-36/freeradius/src/main/threads.c Please add surrounding ifdefs #include <mach/mach.h> #include <mach/task.h> #include <mach/semaphore.h> #undef sem_t #define sem_t semaphore_t #undef sem_init #define sem_init(s,p,c) semaphore_create(mach_task_self(),s,SYNC_POLICY_FIFO,c) #undef sem_wait #define sem_wait(s) semaphore_wait(*s) #undef sem_post #define sem_post(s) semaphore_signal(*s) #undef sem_destroy #define sem_destroy(s) semaphore_destroy(mach_task_self(),*s) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 13:29:09
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Comment added) made by rueegg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- >Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 06:29 Message: Named semaphores seem to work in my quick test. Except I had problems on app exit (crash in log thread). But this might be another bug. g++ --version i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) echo | g++ -dD -E - # 1 "<stdin>" # 1 "<built-in>" #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __GNUC__ 4 #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __APPLE_CC__ 5658 #define __llvm__ 1 #define __SIZE_TYPE__ long unsigned int #define __PTRDIFF_TYPE__ long int #define __WCHAR_TYPE__ int #define __WINT_TYPE__ int #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __GXX_ABI_VERSION 1002 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __CHAR_BIT__ 8 #define __INTMAX_MAX__ 9223372036854775807L #define __FLT_EVAL_METHOD__ 0 #define __DEC_EVAL_METHOD__ 2 #define __FLT_RADIX__ 2 #define __FLT_MANT_DIG__ 24 #define __FLT_DIG__ 6 #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MAX_EXP__ 128 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN__ 1.17549435e-38F #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_DIG__ 15 #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN__ 2.2250738585072014e-308 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_DIG__ 18 #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX_10_EXP__ 4932 #define __DECIMAL_DIG__ 21 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __DEC32_MANT_DIG__ 7 #define __DEC32_MIN_EXP__ (-95) #define __DEC32_MAX_EXP__ 96 #define __DEC32_MIN__ 1E-95DF #define __DEC32_MAX__ 9.999999E96DF #define __DEC32_EPSILON__ 1E-6DF #define __DEC32_DEN__ 0.000001E-95DF #define __DEC64_MANT_DIG__ 16 #define __DEC64_MIN_EXP__ (-383) #define __DEC64_MAX_EXP__ 384 #define __DEC64_MIN__ 1E-383DD #define __DEC64_MAX__ 9.999999999999999E384DD #define __DEC64_EPSILON__ 1E-15DD #define __DEC64_DEN__ 0.000000000000001E-383DD #define __DEC128_MANT_DIG__ 34 #define __DEC128_MIN_EXP__ (-6143) #define __DEC128_MAX_EXP__ 6144 #define __DEC128_MIN__ 1E-6143DL #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __DEC128_EPSILON__ 1E-33DL #define __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL #define __REGISTER_PREFIX__ #define __USER_LABEL_PREFIX__ _ #define __VERSION__ "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)" #define __GNUC_GNU_INLINE__ 1 #define _LP64 1 #define __LP64__ 1 #define __BLOCKS__ 1 #define __NO_INLINE__ 1 #define __FINITE_MATH_ONLY__ 0 #define __pic__ 2 #define __PIC__ 2 #define __SSP__ 1 #define __amd64 1 #define __amd64__ 1 #define __x86_64 1 #define __x86_64__ 1 #define __tune_core2__ 1 #define __MMX__ 1 #define __SSE__ 1 #define __SSE2__ 1 #define __SSE3__ 1 #define __SSE_MATH__ 1 #define __SSE2_MATH__ 1 #define __k8 1 #define __k8__ 1 #define __NO_MATH_INLINES 1 #define __LITTLE_ENDIAN__ 1 #define __MACH__ 1 #define __APPLE__ 1 clang --version Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.1.0 echo | xcrun clang -dD -E - # 1 "<stdin>" # 1 "<stdin>" 1 # 1 "<built-in>" 1 # 1 "<built-in>" 3 #define __llvm__ 1 #define __clang__ 1 #define __clang_major__ 4 #define __clang_minor__ 0 #define __clang_patchlevel__ 0 #define __clang_version__ "4.0 ((tags/Apple/clang-421.0.60))" #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define __GNUC__ 4 #define __GXX_ABI_VERSION 1002 #define __ATOMIC_RELAXED 0 #define __ATOMIC_CONSUME 1 #define __ATOMIC_ACQUIRE 2 #define __ATOMIC_RELEASE 3 #define __ATOMIC_ACQ_REL 4 #define __ATOMIC_SEQ_CST 5 #define __PRAGMA_REDEFINE_EXTNAME 1 #define __VERSION__ "4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))" #define __CONSTANT_CFSTRINGS__ 1 #define __block __attribute__((__blocks__(byref))) #define __BLOCKS__ 1 #define __GXX_RTTI 1 #define __CHAR_BIT__ 8 #define __SCHAR_MAX__ 127 #define __SHRT_MAX__ 32767 #define __INT_MAX__ 2147483647 #define __LONG_MAX__ 9223372036854775807L #define __LONG_LONG_MAX__ 9223372036854775807LL #define __WCHAR_MAX__ 2147483647 #define __INTMAX_MAX__ 9223372036854775807L #define __SIZEOF_DOUBLE__ 8 #define __SIZEOF_FLOAT__ 4 #define __SIZEOF_INT__ 4 #define __SIZEOF_LONG__ 8 #define __SIZEOF_LONG_DOUBLE__ 16 #define __SIZEOF_LONG_LONG__ 8 #define __SIZEOF_POINTER__ 8 #define __SIZEOF_SHORT__ 2 #define __SIZEOF_PTRDIFF_T__ 8 #define __SIZEOF_SIZE_T__ 8 #define __SIZEOF_WCHAR_T__ 4 #define __SIZEOF_WINT_T__ 4 #define __INTMAX_TYPE__ long int #define __UINTMAX_TYPE__ long unsigned int #define __INTMAX_WIDTH__ 64 #define __PTRDIFF_TYPE__ long int #define __PTRDIFF_WIDTH__ 64 #define __INTPTR_TYPE__ long int #define __INTPTR_WIDTH__ 64 #define __SIZE_TYPE__ long unsigned int #define __SIZE_WIDTH__ 64 #define __WCHAR_TYPE__ int #define __WCHAR_WIDTH__ 32 #define __WINT_TYPE__ int #define __WINT_WIDTH__ 32 #define __SIG_ATOMIC_WIDTH__ 32 #define __CHAR16_TYPE__ unsigned short #define __CHAR32_TYPE__ unsigned int #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __FLT_HAS_DENORM__ 1 #define __FLT_DIG__ 6 #define __FLT_EPSILON__ 1.19209290e-7F #define __FLT_HAS_INFINITY__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MANT_DIG__ 24 #define __FLT_MAX_10_EXP__ 38 #define __FLT_MAX_EXP__ 128 #define __FLT_MAX__ 3.40282347e+38F #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MIN_EXP__ (-125) #define __FLT_MIN__ 1.17549435e-38F #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_HAS_DENORM__ 1 #define __DBL_DIG__ 15 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __DBL_MANT_DIG__ 53 #define __DBL_MAX_10_EXP__ 308 #define __DBL_MAX_EXP__ 1024 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_MIN_10_EXP__ (-307) #define __DBL_MIN_EXP__ (-1021) #define __DBL_MIN__ 2.2250738585072014e-308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __LDBL_HAS_DENORM__ 1 #define __LDBL_DIG__ 18 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __LDBL_HAS_INFINITY__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __LDBL_MAX_10_EXP__ 4932 #define __LDBL_MAX_EXP__ 16384 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __LDBL_MIN_10_EXP__ (-4931) #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __POINTER_WIDTH__ 64 #define __INT8_TYPE__ char #define __INT16_TYPE__ short #define __INT32_TYPE__ int #define __INT64_TYPE__ long long int #define __INT64_C_SUFFIX__ LL #define __USER_LABEL_PREFIX__ _ #define __FINITE_MATH_ONLY__ 0 #define __GNUC_STDC_INLINE__ 1 #define __NO_INLINE__ 1 #define __PIC__ 1 #define __pic__ 1 #define __FLT_EVAL_METHOD__ 0 #define __FLT_RADIX__ 2 #define __DECIMAL_DIG__ 21 #define __SSP__ 1 #define _LP64 1 #define __LP64__ 1 #define __amd64__ 1 #define __amd64 1 #define __x86_64 1 #define __x86_64__ 1 #define __core2 1 #define __core2__ 1 #define __tune_core2__ 1 #define __LITTLE_ENDIAN__ 1 #define __REGISTER_PREFIX__ #define __NO_MATH_INLINES 1 #define __SSSE3__ 1 #define __SSE3__ 1 #define __SSE2__ 1 #define __SSE2_MATH__ 1 #define __SSE__ 1 #define __SSE_MATH__ 1 #define __MMX__ 1 #define __APPLE_CC__ 5621 #define __APPLE__ 1 #define __MACH__ 1 #define OBJC_NEW_PROPERTIES 1 #define __apple_build_version__ 4210060 #define __weak __attribute__((objc_gc(weak))) #define __strong #define __unsafe_unretained #define __DYNAMIC__ 1 #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1080 #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __STDC_VERSION__ 199901L # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-18 06:21 Message: It seems that I could just use named semaphores on MacOS X instead. I do not want to use OS specific headers if I can avoid it. I'll see what I can do later today. Could you please give me the output of "echo | g++ -dD -E -" (or similar) command? ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 05:14 Message: Taken from http://www.opensource.apple.com/source/freeradius/freeradius-36/freeradius/src/main/threads.c Please add surrounding ifdefs #include <mach/mach.h> #include <mach/task.h> #include <mach/semaphore.h> #undef sem_t #define sem_t semaphore_t #undef sem_init #define sem_init(s,p,c) semaphore_create(mach_task_self(),s,SYNC_POLICY_FIFO,c) #undef sem_wait #define sem_wait(s) semaphore_wait(*s) #undef sem_post #define sem_post(s) semaphore_signal(*s) #undef sem_destroy #define sem_destroy(s) semaphore_destroy(mach_task_self(),*s) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 13:21:15
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-18 06:21 Message: It seems that I could just use named semaphores on MacOS X instead. I do not want to use OS specific headers if I can avoid it. I'll see what I can do later today. Could you please give me the output of "echo | g++ -dD -E -" (or similar) command? ---------------------------------------------------------------------- Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 05:14 Message: Taken from http://www.opensource.apple.com/source/freeradius/freeradius-36/freeradius/src/main/threads.c Please add surrounding ifdefs #include <mach/mach.h> #include <mach/task.h> #include <mach/semaphore.h> #undef sem_t #define sem_t semaphore_t #undef sem_init #define sem_init(s,p,c) semaphore_create(mach_task_self(),s,SYNC_POLICY_FIFO,c) #undef sem_wait #define sem_wait(s) semaphore_wait(*s) #undef sem_post #define sem_post(s) semaphore_signal(*s) #undef sem_destroy #define sem_destroy(s) semaphore_destroy(mach_task_self(),*s) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 12:14:16
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Comment added) made by rueegg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- >Comment By: Christian Rüegg (rueegg) Date: 2012-09-18 05:14 Message: Taken from http://www.opensource.apple.com/source/freeradius/freeradius-36/freeradius/src/main/threads.c Please add surrounding ifdefs #include <mach/mach.h> #include <mach/task.h> #include <mach/semaphore.h> #undef sem_t #define sem_t semaphore_t #undef sem_init #define sem_init(s,p,c) semaphore_create(mach_task_self(),s,SYNC_POLICY_FIFO,c) #undef sem_wait #define sem_wait(s) semaphore_wait(*s) #undef sem_post #define sem_post(s) semaphore_signal(*s) #undef sem_destroy #define sem_destroy(s) semaphore_destroy(mach_task_self(),*s) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 11:46:12
|
Bugs item #3568882, was opened at 2012-09-18 04:46 Message generated for change (Tracker Item Submitted) made by rueegg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Appender Group: v1.1.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: Unnamed semaphores are not supported on Mac OS X Initial Comment: use named semaphores. See: http://stackoverflow.com/questions/1413785/sem-init-on-os-x ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568882&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 11:11:43
|
Bugs item #3568852, was opened at 2012-09-18 03:29 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568852&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Build >Group: v1.1.x >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Václav Zeman (wilx) Summary: include <locale> in factory.h Initial Comment: log4cplus 1.1.0-RC10 factory.h uses two typedef std::locale tttt but doesn't include locale Build System: Mac OSX 10.8, clang-421.0.60 ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-09-18 04:11 Message: Thank you for spotting this. I have fixed it and I will push the fix into Bazaar repository later today. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568852&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 11:10:27
|
Bugs item #3568852, was opened at 2012-09-18 03:29 Message generated for change (Settings changed) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568852&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None >Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) >Assigned to: Václav Zeman (wilx) Summary: include <locale> in factory.h Initial Comment: log4cplus 1.1.0-RC10 factory.h uses two typedef std::locale tttt but doesn't include locale Build System: Mac OSX 10.8, clang-421.0.60 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3568852&group_id=40830 |
From: SourceForge.net <no...@so...> - 2012-09-18 10:29:20
|
Patches item #3568852, was opened at 2012-09-18 03:29 Message generated for change (Tracker Item Submitted) made by rueegg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429075&aid=3568852&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.1.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rüegg (rueegg) Assigned to: Nobody/Anonymous (nobody) Summary: include <locale> in factory.h Initial Comment: log4cplus 1.1.0-RC10 factory.h uses two typedef std::locale tttt but doesn't include locale Build System: Mac OSX 10.8, clang-421.0.60 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429075&aid=3568852&group_id=40830 |
From: Václav Z. <vha...@gm...> - 2012-09-17 20:40:30
|
Hi. I have released log4cplus 1.1.0-RC10. It contains bug fixes and also other improvements: - Fixed non-STLPort4 builds with Solaris Studio. Switch '-library=stlport4' is only added if CXXFLAGS does not already contain a switch matching -library=(stlport4|stdcxx4|Cstd). - Fixed --disable-shared MinGW builds. - Fixed non-working MinGW DLL binaries. DllMain() was not being called because of missing extern "C" in its definition. - CMake build configuration checks have been improved. (Chernyshev Vyacheslav) - GCC switch -O2 is only added if CXXFLAGS does not already contain any other -O. - Improved logging speed using SysLogAppender and Log4jUdpAppender by optimizations in both the loggers and in common sockets code. - FileAppender locale can now be specified in properties files using Locale property. See FileAppender Doxygen documentation for more details. -- VZ |
From: SourceForge.net <no...@so...> - 2012-09-13 19:56:23
|
Bugs item #3467112, was opened at 2011-12-29 11:58 Message generated for change (Settings changed) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3467112&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.1.x >Status: Closed Resolution: Fixed Priority: 6 Private: No Submitted By: rjmyst3 (rjmyst3) Assigned to: Václav Zeman (wilx) Summary: ptd_cleanup_func posix segfault Initial Comment: changes posix implementation of ptd_cleanup_func's call to internal::get_ptd to pass 'false' to prevent a segfault also move ptd_cleanup_func to the internal namespace ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-09-04 02:49 Message: I think that this is now fixed in 1.1.0 in Bazaar repo on trunk and 1.1.x branches. See also https://sourceforge.net/tracker/index.php?func=detail&aid=3563699&group_id=40830&atid=429073# ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-04-29 02:09 Message: Please could you be more specific about the environment you are working in? What OS/CPU are you using? What compiler and compiler version are you using? What library kind have you chosen: static library or dynamically linked library? What is the configure script command line that you are using to produce log4cplus binaries? Please attach config.log, defines.hxx files. Adding a self contained test case would also help tremendously. ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2012-04-19 08:50 Message: Well, I still do not understand the new version of ptd_cleanup_func(): //! Thread local storage clean up function for POSIX threads. static void ptd_cleanup_func (void * arg) { // ??? Asserting for NULL return value from get_ptd() does not make sense to me. // ??? The get_ptd(false) invocation should return the per thread data allocated for this thread. // ??? It could be null but need not to be, AFAICS. assert (0 == internal::get_ptd (false)); // ??? This looks ok. However given the assertion above, it would be no-op. // ??? Maybe the assertion above should be assert (0 == internal::get_ptd (false) || arg == internal::get_ptd (false)); // ??? What do you think? delete reinterpret_cast<internal::per_thread_data*>(arg); } The rest of the patch seems ok. ---------------------------------------------------------------------- Comment By: w0lanto (w0lanto) Date: 2012-01-11 14:02 Message: I've test case that's causing segfault. I have one thread in which I configure log4cplus via configuration file( doConfigure method ). In this thread later on I'm creating a other thread, and waiting for it to finish. After the other thread is finished segfault occurs. The patch fixes this segfault, thanks rjmyst3! ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2011-12-29 14:51 Message: I see the patch but I am not sure that I understand the reasons for it. Do you have a test case that segfaulting? I understand why it should call get_ptd (false) in the ptd_cleanup_func() but I do not understand the reason for splitting the function and the second version of it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3467112&group_id=40830 |
From: Václav Z. <vha...@gm...> - 2012-09-13 10:52:01
|
On 13 September 2012 12:44, Chernyshev Vyacheslav wrote: > 13.09.12, 9:55, Václav Zeman wrote: >> I wonder what difficulties you have had with the Autotools build system >> on MacOS X. I am keen on fixing those as well. > > There are some link problems when C++11 mode and Clang's libc++ is > requested. Configure is done with something like that: > ../configure > --prefix=/opt/log4cplus_clang > --with-iconv > CC=/usr/bin/clang > CXX=/usr/bin/clang++ > CXXFLAGS="-std=gnu++11 -stdlib=libc++ -O3 -march=native -DNDEBUG" > CFLAGS="-std=gnu99 -O3 -march=native -DNDEBUG" > LDFLAGS="-stdlib=libc++" > > Link failures appear after this line in output: > libtool: link: /usr/bin/clang++ > -dynamiclib -o .libs/liblog4cplus-1.1.4.dylib > <skipped object files list> > -liconv -O3 -march=native -O2 > -install_name /opt/log4cplus_cmake/lib/liblog4cplus-1.1.4.dylib > -compatibility_version 5 > -current_version 5.0 > -Wl,-single_module > > I think that the problem is that CXXFLAGS and/or LDFLAGS are not > properly passed to final link command. Without "-std=gnu++11 > -stdlib=libc++" a default c++ runtime library is linked to log4cplus and > it results in undefined references. This sounds like this might a be a Libtool or Automake problem. I am afraid that I can hardly help with this. But I am willing to apply any reasonable patches that fix this, if this is actually log4cplus problem. > As a side note, probably > user-provided CXXFLAGS should be appended to the end of the list, > otherwise default -O2 overrides user's decision. I guess I should omit adding -O2 in case any other -O option is present there. -- VZ |
From: Chernyshev V. <ast...@ro...> - 2012-09-13 10:44:51
|
13.09.12, 9:55, Václav Zeman wrote: > I wonder what difficulties you have had with the Autotools build system > on MacOS X. I am keen on fixing those as well. There are some link problems when C++11 mode and Clang's libc++ is requested. Configure is done with something like that: ../configure --prefix=/opt/log4cplus_clang --with-iconv CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-std=gnu++11 -stdlib=libc++ -O3 -march=native -DNDEBUG" CFLAGS="-std=gnu99 -O3 -march=native -DNDEBUG" LDFLAGS="-stdlib=libc++" Link failures appear after this line in output: libtool: link: /usr/bin/clang++ -dynamiclib -o .libs/liblog4cplus-1.1.4.dylib <skipped object files list> -liconv -O3 -march=native -O2 -install_name /opt/log4cplus_cmake/lib/liblog4cplus-1.1.4.dylib -compatibility_version 5 -current_version 5.0 -Wl,-single_module I think that the problem is that CXXFLAGS and/or LDFLAGS are not properly passed to final link command. Without "-std=gnu++11 -stdlib=libc++" a default c++ runtime library is linked to log4cplus and it results in undefined references. As a side note, probably user-provided CXXFLAGS should be appended to the end of the list, otherwise default -O2 overrides user's decision. |