Failed to Compare va_list with nullptr When Compiling RocksDBjni
Symptom
An error is reported when compiling RocksDBjni, indicating that va_list cannot be compared with nullptr.
1 | error: invalid operands of tyoes 'va_list {aka_va_list}' and 'std:nullptr_t' to binary 'operator!=assert(ap!=nullptr)'; |
Key Process and Cause Analysis
None
Conclusion and Solution
Comment out line 134 in java/rocksjni/loggerjnicallback.cc and recompile the source code.
1 | //assert(ap!=nullptr); |
Parent topic: Troubleshooting