According to README file of upa8.0.1.L1 and API Compatibility Matrix, the supported OS are:
You may be able to run UPA application on Ubuntu OS, but all issues must be reproduced on one of the supported platforms.
The makefile of example normally identify the OS via lsb_release script, and then select libraries to compile. It is created for only support version, so it causes the error you found.
If you want to try the example on Ubuntu, you can add the following lines to force makefile to use OL7_64_GCC482 libraries.
DIST=$(shell cat /etc/oracle-release)
DIST="Oracle" # add this line
ifeq ($(findstring Oracle,$(DIST)),Oracle) # check for Oracle Linux