libframetime icon indicating copy to clipboard operation
libframetime copied to clipboard

Compiler Warnings and Undefined Symbols on OpenSUSE Tumbleweed

Open ryan-ronnander opened this issue 8 years ago • 1 comments

On OpenSUSE Tumbleweed (gcc 7.2) I've installed the 'Mesa-devel' and 'Mesa-libEGL-devel' packages.

When running make I experience the following compiler warnings:

frametime.c:101:5: warning: nonnull argument ‘symbol’ compared to NULL [-Wnonnull-compare]
  if (symbol && !strcmp(symbol, "eglSwapBuffers"))
     ^
frametime.c:98:5: warning: nonnull argument ‘symbol’ compared to NULL [-Wnonnull-compare]
  if (symbol && !strcmp(symbol, "glXSwapBuffers"))
     ^
frametime.c:96:5: warning: nonnull argument ‘symbol’ compared to NULL [-Wnonnull-compare]
  if (symbol && !strcmp(symbol, "glXGetProcAddressARB"))
     ^

Obviously these are just warnings and libframetime still compiles.

When attempting to run libframetime with Super Hexagon for simple testing, I receive the following error:

$ LD_PRELOAD=~/Workspace/libframetime/libframetime.so ./SuperHexagon
libframetime: dlsym failed: ~/Workspace/libframetime/libframetime.so: undefined symbol: glXSwapBuffers

In contrast, everything compiles and runs on my Ubuntu 16.04 laptop. Copying the compiled libframetime.so from my Ubuntu laptop to my OpenSUSE machine also results in failure during attempted runs:

libframetime: dlsym failed: ~/Workspace/libframetime_laptop00/libframetime.so: undefined symbol: glXGetProcAddressARB

ryan-ronnander avatar Oct 23 '17 20:10 ryan-ronnander

I've got the same issue, anyone can update frametime.c to make it work?

VanackSabbadium avatar Apr 01 '18 15:04 VanackSabbadium