Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ g++ -DXP_UNIX -Wall -Werror -o service ./frameworks/native/cmds/service/service.cpp
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- In file included from ./frameworks/native/include/binder/Parcel.h:25:
- ./system/libbase/include/android-base/unique_fd.h:59:9: error: use of undeclared identifier 'android_fdsan_exchange_owner_tag'
- if (android_fdsan_exchange_owner_tag) {
- ^
- ./system/libbase/include/android-base/unique_fd.h:60:26: error: use of undeclared identifier 'android_fdsan_create_owner_tag'
- uint64_t old_tag = android_fdsan_create_owner_tag(ANDROID_FDSAN_OWNER_TYPE_UNIQUE_FD,
- ^
- ./system/libbase/include/android-base/unique_fd.h:62:26: error: use of undeclared identifier 'android_fdsan_create_owner_tag'
- uint64_t new_tag = android_fdsan_create_owner_tag(ANDROID_FDSAN_OWNER_TYPE_UNIQUE_FD,
- ^
- ./system/libbase/include/android-base/unique_fd.h:64:7: error: use of undeclared identifier 'android_fdsan_exchange_owner_tag'
- android_fdsan_exchange_owner_tag(fd, old_tag, new_tag);
- ^
- ./system/libbase/include/android-base/unique_fd.h:68:9: error: use of undeclared identifier 'android_fdsan_close_with_tag'
- if (android_fdsan_close_with_tag) {
- ^
- ./system/libbase/include/android-base/unique_fd.h:69:22: error: use of undeclared identifier 'android_fdsan_create_owner_tag'
- uint64_t tag = android_fdsan_create_owner_tag(ANDROID_FDSAN_OWNER_TYPE_UNIQUE_FD,
- ^
- ./system/libbase/include/android-base/unique_fd.h:71:7: error: use of undeclared identifier 'android_fdsan_close_with_tag'
- android_fdsan_close_with_tag(fd, tag);
- ^
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- In file included from ./frameworks/native/include/binder/Parcel.h:29:
- ./system/core/libutils/include/utils/String16.h:228:1: error: C++ requires a type specifier for all declarations
- StaticString16(const F&)->StaticString16<sizeof(F) / sizeof(char16_t)>;
- ^
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:125:50: error: no template named 'optional' in namespace 'std'
- status_t writeString16(const std::optional<String16>& str);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:137:53: error: no template named 'optional' in namespace 'std'
- status_t writeUtf8AsUtf16(const std::optional<std::string>& str);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:140:52: error: no template named 'optional' in namespace 'std'
- status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:143:52: error: no template named 'optional' in namespace 'std'
- status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:146:53: error: no template named 'optional' in namespace 'std'
- status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:149:53: error: no template named 'optional' in namespace 'std'
- status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:152:54: error: no template named 'optional' in namespace 'std'
- status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:155:53: error: no template named 'optional' in namespace 'std'
- status_t writeFloatVector(const std::optional<std::vector<float>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:158:54: error: no template named 'optional' in namespace 'std'
- status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:161:52: error: no template named 'optional' in namespace 'std'
- status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
- ~~~~~^
- ./frameworks/native/include/binder/Parcel.h:164:52: error: no template named 'optional' in namespace 'std'
- status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
- ~~~~~^
- fatal error: too many errors emitted, stopping now [-ferror-limit=]
- 20 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement