Issue |
75056
|
Summary |
ld.lld linker error on gz_intmax like symbol not defined
|
Labels |
lld
|
Assignees |
|
Reporter |
lonewolf73
|
Hello everyone!
I have ubuntu 22.04 LTS with :
1) **Android SDK** --> **release 8.1.0 (AndroidVersion.ApiLevel=27);**
2) **Android NDK** --> **release 26.1.1090912**5
3) **sources of vlc library**
trying to compile vlc library returns error on :
```
[1/15] Linking C shared library libzlib.so.1.2.13
FAILED: libzlib.so.1.2.13
: && /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android27-clang -fPIC -g -O2 -fPIC -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -DNDEBUG -I/home/dev/projects/libvlcjni/buildsystem/vlc/contrib/aarch64-linux-android/include -g -O2 -O2 -g -DNDEBUG -L/home/dev/projects/libvlcjni/buildsystem/vlc/contrib/aarch64-linux-android/lib -Wl,--version-script,"/home/dev/projects/libvlcjni/buildsystem/vlc/contrib/contrib-android-aarch64-linux-android/zlib/zlib.map" -shared -Wl,-soname,libzlib.so.1 -o libzlib.so.1.2.13 CMakeFiles/zlib.dir/adler32.o CMakeFiles/zlib.dir/compress.o CMakeFiles/zlib.dir/crc32.o CMakeFiles/zlib.dir/deflate.o CMakeFiles/zlib.dir/gzclose.o CMakeFiles/zlib.dir/gzlib.o CMakeFiles/zlib.dir/gzread.o CMakeFiles/zlib.dir/gzwrite.o CMakeFiles/zlib.dir/inflate.o CMakeFiles/zlib.dir/infback.o CMakeFiles/zlib.dir/inftrees.o CMakeFiles/zlib.dir/inffast.o CMakeFiles/zlib.dir/trees.o CMakeFiles/zlib.dir/uncompr.o CMakeFiles/zlib.dir/zutil.o && :
ld.lld: error: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
where if I do a grep on gz_intmax I can see it's present in :
```
vlc/contrib/contrib-android-aarch64-linux-android/zlib/zlib.map: gz_intmax;
vlc/contrib/contrib-android-aarch64-linux-android/zlib/gzguts.h:unsigned ZLIB_INTERNAL gz_intmax OF((void));
vlc/contrib/contrib-android-aarch64-linux-android/zlib/gzguts.h:# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
vlc/contrib/contrib-android-aarch64-linux-android/zlib/zconf.h.in:# define gz_intmax z_gz_intmax
vlc/contrib/contrib-android-aarch64-linux-android/zlib/vlc_build/zconf.h:# define gz_intmax z_gz_intmax
vlc/contrib/contrib-android-aarch64-linux-android/zlib/gzlib.c:unsigned ZLIB_INTERNAL gz_intmax()
vlc/contrib/contrib-android-aarch64-linux-android/zlib/zconf.h.included:# define gz_intmax z_gz_intmax
vlc/contrib/contrib-android-aarch64-linux-android/zlib/zconf.h.cmakein:# define gz_intmax z_gz_intmax
vlc/contrib/contrib-android-aarch64-linux-android/freetype/src/gzip/ftzconf.h:# define gz_intmax z_gz_intmax
vlc/contrib/contrib-android-aarch64-linux-android/freetype/src/gzip/gzguts.h:unsigned ZLIB_INTERNAL gz_intmax OF((void));
vlc/contrib/contrib-android-aarch64-linux-android/freetype/src/gzip/gzguts.h:# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
```
so as like as I followed the discussion inside comment on _LLD --no-undefined-version_ , is that error I am getting related to _--no-undefined-version_ ? If yes, where I could add _--undefined-version_ to revert to old behavior?
Thanks!
Cheers!
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs