The problem is due to different behavior of extern and inline in the c89 and c11 standards.Compiling with gcc -std=gnu89 will lead to an successful build.
Do you want me to try to change the function definitions to conform to the c11 standard or should the project stay at c89? In the latter case simply adding -std=gnu89 to the compiler flags in the configure script is sufficient.