I guess the problem is that you have a static variable called "time" which conflicts with the system function called "time".

This problem was reported to the MacPorts project years ago against toppler 1.1.1: https://trac.macports.org/ticket/21961. At the time, we fixed it by updating to toppler 1.1.5 which had renamed the "time" static variable to "currtime". Now, toppler 1.1.6 seems to have gone back to the name "time" for the variable, thus reintroducing the problem.

The attached patch renames the variable back to "currtime" to solve the problem again.