Details
Description
cmake ../mesos
make LDFLAGS='-lexecinfo -lm'
... [ 36%] Building CXX object src/CMakeFiles/mesos-protobufs.dir/__/include/csi/csi.pb.cc.o cd /mesos-build/src && /usr/bin/c++ -DLIBDIR=\"/usr/local/libmesos\" -DPKGDATADIR=\"/usr/local/share/mesos\" -DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" -DVERSION=\"1.6.0\" -Dmesos_protobufs_EXPORTS -I/mesos-build/include -I/mesos-build/include/mesos -I/mesos-build/src -I/mesos/src -I/mesos-build/include/csi -isystem /mesos-build/3rdparty/protobuf-3.5.0/src/protobuf-3.5.0/src -fPIC -Wall -Wsign-compare -Wformat-security -fstack-protector-strong -std=c++11 -o CMakeFiles/mesos-protobufs.dir/__/include/csi/csi.pb.cc.o -c /mesos-build/include/csi/csi.pb.cc In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:763:30: error: expected member name or ';' after declaration specifiers ::google::protobuf::uint32 major() const; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/include/sys/types.h:372:20: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:763:30: error: expected ')' /usr/include/sys/types.h:372:20: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.h:763:30: note: to match this '(' /usr/include/sys/types.h:372:19: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:763:30: error: expected ')' ::google::protobuf::uint32 major() const; ^ /usr/include/sys/types.h:372:37: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.h:763:30: note: to match this '(' /usr/include/sys/types.h:372:25: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:763:30: error: C++ requires a type specifier for all declarations ::google::protobuf::uint32 major() const; ^ /usr/include/sys/types.h:372:27: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:763:30: error: function cannot return function type 'int (())' /usr/include/sys/types.h:372:26: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:763:30: error: expected ')' /usr/include/sys/types.h:372:42: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.h:763:30: note: to match this '(' /usr/include/sys/types.h:372:24: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:769:30: error: expected member name or ';' after declaration specifiers ::google::protobuf::uint32 minor() const; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/include/sys/types.h:373:20: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:769:30: error: expected ')' /usr/include/sys/types.h:373:20: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ /mesos-build/include/csi/csi.pb.h:769:30: note: to match this '(' /usr/include/sys/types.h:373:19: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:769:30: error: C++ requires a type specifier for all declarations ::google::protobuf::uint32 minor() const; ^ /usr/include/sys/types.h:373:27: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:769:30: error: non-member function cannot have '&' qualifier /usr/include/sys/types.h:373:28: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:769:30: error: expected ')' /usr/include/sys/types.h:373:29: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ /mesos-build/include/csi/csi.pb.h:769:30: note: to match this '(' /usr/include/sys/types.h:373:24: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ In file included from /mesos-build/include/csi/csi.pb.cc:4: /mesos-build/include/csi/csi.pb.h:6028:44: error: expected unqualified-id inline ::google::protobuf::uint32 Version::major() const { ^ /mesos-build/include/csi/csi.pb.h:6042:44: error: expected unqualified-id inline ::google::protobuf::uint32 Version::minor() const { ^ /mesos-build/include/csi/csi.pb.cc:3045:13: error: expected unqualified-id if (this->major() != 0) { ^ /usr/include/sys/types.h:372:18: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.cc:3045:13: error: expected expression /usr/include/sys/types.h:372:35: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.cc:3046:72: error: expected unqualified-id ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->major(), output); ^ /usr/include/sys/types.h:372:18: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.cc:3046:72: error: expected expression /usr/include/sys/types.h:372:35: note: expanded from macro 'major' #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ ^ /mesos-build/include/csi/csi.pb.cc:3050:13: error: expected unqualified-id if (this->minor() != 0) { ^ /usr/include/sys/types.h:373:18: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ /mesos-build/include/csi/csi.pb.cc:3050:13: error: expected expression /usr/include/sys/types.h:373:27: note: expanded from macro 'minor' #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=]
Attachments
Issue Links
- relates to
-
MESOS-8724 G++ Warning about libc system macros `major` and `minor` prevents Mesos build
- Resolved