[prev in list] [next in list] [prev in thread] [next in thread] 

List:       commoncpp-bug
Subject:    
From:       Adam Sampson <ats () offog ! org>
Date:       2016-03-16 21:43:56
Message-ID: 20160316214355.GN23815 () cartman ! at ! offog ! org
[Download RAW message or body]

Hi commoncpp maintainers,

Building commoncpp2 1.8.1 with GCC 5.3.0 and glibc 2.23 fails like this:

| applog.cpp: In constructor 'ost::logger::logger(const char*, bool)':
| applog.cpp:300:43: error: 'S_IREAD' was not declared in this scope
|        int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);
|                                            ^
| applog.cpp:300:53: error: 'S_IWRITE' was not declared in this scope
|        int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);
|                                                      ^
| applog.cpp:300:61: error: 'mkfifo' was not declared in this scope
|        int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);

This is because applog.cpp doesn't include <sys/stat.h>. Adding the
missing include fixes it.

Thanks very much,

-- 
Adam Sampson <ats@offog.org>                         <http://offog.org/>

_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-commoncpp
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic