Failed to build Bitcoin Core from source, Ubuntu 17.10
That error means that protoc was updated since paymentrequest.pb.h was generated (it is not part of the source distribution, protoc generates it). Do make clean and then make. That should fix this error.