SDL: 2.0.14: build fails

/bin/sh ./build-scripts//updaterev.sh
  CC     build/SDL_systhread.lo
/home/tkloczko/rpmbuild/BUILD/SDL2-2.0.14/src/thread/pthread/SDL_systhread.c: In function ‘SDL_SYS_CreateThread’:
/home/tkloczko/rpmbuild/BUILD/SDL2-2.0.14/src/thread/pthread/SDL_systhread.c:97:20: warning: implicit declaration of function ‘dlsym’ [-Wimplicit-function-declaration]
   97 |         void *fn = dlsym(RTLD_DEFAULT, "pthread_setname_np");
      |                    ^~~~~
/home/tkloczko/rpmbuild/BUILD/SDL2-2.0.14/src/thread/pthread/SDL_systhread.c:97:26: error: ‘RTLD_DEFAULT’ undeclared (first use in this function)
   97 |         void *fn = dlsym(RTLD_DEFAULT, "pthread_setname_np");
      |                          ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/SDL2-2.0.14/src/thread/pthread/SDL_systhread.c:97:26: note: each undeclared identifier is reported only once for each function it appears in
/home/tkloczko/rpmbuild/BUILD/SDL2-2.0.14/src/thread/pthread/SDL_systhread.c: In function ‘SDL_SYS_SetThreadPriority’:
/home/tkloczko/rpmbuild/BUILD/SDL2-2.0.14/src/thread/pthread/SDL_systhread.c:261:34: error: ‘SYS_gettid’ undeclared (first use in this function); did you mean ‘gettid’?
  261 |         pid_t linuxTid = syscall(SYS_gettid);
      |                                  ^~~~~~~~~~
      |                                  gettid
make: *** [Makefile:770: build/SDL_systhread.lo] Error 1

BTW: do you have any plans to mak enew release? Looks like is already +700 commits on top of last release.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

I’m pretty much sure that autoreconf is the problem: autoreconf is not supported, you should use the provided autogen.sh (or act according to its contents.)

(OK, @icculus beat me to it)