8bitbubsy / ft2-clone

Fasttracker 2 clone for Windows/macOS/Linux
https://16-bits.org
BSD 3-Clause "New" or "Revised" License
712 stars 48 forks source link

1.41 build faild #11

Closed ycollet closed 3 years ago

ycollet commented 3 years ago

I try to build 1.41 on Fedora 32 64 bits and the build fails with the following error:

[ 15%] Building C object CMakeFiles/ft2-clone.dir/src/ft2_events.c.o
/usr/lib64/ccache/cc -D__LINUX_ALSA__ -isystem /usr/include/SDL2  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG   -o CMakeFiles/ft2-clone.dir/src/ft2_events.c.o   -c /home/collette/rpmbuild/BUILD/ft2-clone-1.41/src/ft2_events.c
/home/collette/rpmbuild/BUILD/ft2-clone-1.41/src/ft2_config.c: In function 'setConfigFileLocation':
/home/collette/rpmbuild/BUILD/ft2-clone-1.41/src/ft2_config.c:636:4: error: 'result' undeclared (first use in this function)
  636 |    result = chdir(".config");
      |    ^~~~~~
8bitbubsy commented 3 years ago

Woops, I'll get this (and more potential compiling errors on Linux) fixed. The joy of refactoring code that has #IFDEF platform dependant code...

8bitbubsy commented 3 years ago

Fixed.

8bitbubsy commented 3 years ago

I'll reopen this issue just in case you have more issues, but it compiles on Debian now, at least.

ycollet commented 3 years ago

It compiled fine too on fedora now. I close the bug. Thanks for the quick fix