Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on FreeBSD: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined #22

Open
Martinfx opened this issue Jun 8, 2024 · 1 comment
Assignees
Labels
compile-issue The code doesn't compile properly wontfix This will not be worked on

Comments

@Martinfx
Copy link

Martinfx commented Jun 8, 2024

Hi,
i would like port this engine to FreeBSD but I have problem with zlib:

FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g6009708b4367)
Target: x86_64-unknown-freebsd13.3
Thread model: posix
InstalledDir: /usr/bin


/home/maxfx/Documents/jle/engine/3rdparty/zlib/uncompr.c:86:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
   86 | int ZEXPORT uncompress(dest, destLen, source, sourceLen)
      |             ^
2 warnings generated.
[  3%] Building C object gametemplate/3rdparty/zlib/CMakeFiles/zlib.dir/zutil.o
/home/maxfx/Documents/jle/engine/3rdparty/zlib/zutil.c:135:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  135 | const char * ZEXPORT zError(err)
      |                      ^
/home/maxfx/Documents/jle/engine/3rdparty/zlib/zutil.c:307:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  307 | voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
      |                      ^
/home/maxfx/Documents/jle/engine/3rdparty/zlib/zutil.c:317:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  317 | void ZLIB_INTERNAL zcfree(opaque, ptr)
      |                    ^
3 warnings generated.
[  3%] Linking C shared library libz.so
ld: error: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [gametemplate/3rdparty/zlib/CMakeFiles/zlib.dir/build.make:321: gametemplate/3rdparty/zlib/libz.so.1.2.13] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:713: gametemplate/3rdparty/zlib/CMakeFiles/zlib.dir/all] Error 2
@Martinfx Martinfx changed the title Build failed on FreeBSD Build failed on FreeBSD: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined Jun 8, 2024
@Mormert Mormert assigned Mormert and Martinfx and unassigned Mormert Jun 9, 2024
@Mormert Mormert added the compile-issue The code doesn't compile properly label Jun 9, 2024
@Mormert
Copy link
Owner

Mormert commented Jun 9, 2024

Hi @Martinfx, thanks for your interest in porting the project to FreeBSD.

FreeBSD is platform not supported currently. If this is something you want to look into adding support for, it'd be greatly appreciated. A PR fixing this will be accepted. 👍

@Mormert Mormert added the wontfix This will not be worked on label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile-issue The code doesn't compile properly wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants