What should I do if I have two libraries that provide functions with equivalent names?
It is possible to rename symbols in an object file using objcopy --redefine-sym old=new file
(see man objcopy).
Then just call the functions using their new names and link with the new object file.