Package Details: android-aarch64-zlib 1.3.1-2

Git Clone URL: https://aur.archlinux.org/android-aarch64-zlib.git (read-only, click to copy)
Package Base: android-aarch64-zlib
Description: A compression/decompression Library (Android, aarch64)
Upstream URL: http://www.zlib.net/
Licenses: custom:zlib
Submitter: hipersayan_x
Maintainer: hipersayan_x
Last Packager: hipersayan_x
Votes: 3
Popularity: 0.001973
First Submitted: 2019-04-23 23:32 (UTC)
Last Updated: 2024-03-16 14:06 (UTC)

Sources (4)

Latest Comments

1 2 Next › Last »

Nep_Nep commented on 2024-01-16 14:19 (UTC)

no problem ^^

hipersayan_x commented on 2024-01-16 12:28 (UTC)

@Nep_Nep thank you very much, I did not had time to investigate the errors my self.

Nep_Nep commented on 2024-01-16 01:05 (UTC)

--- a/configure 2024-01-15 17:51:11.925157599 -0300
+++ b/configure 2024-01-15 17:51:46.413390599 -0300
@@ -231,7 +231,7 @@
         *sparc*)
             LDFLAGS="${LDFLAGS} -Wl,--no-warn-rwx-segments" ;;
         esac
-        LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so,--version-script,${SRCDIR}zlib.map"} ;;
+        LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so,--version-script,${SRCDIR}zlib.map,--undefined-version"} ;;
   *BSD | *bsd* | DragonFly)
         LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"}
         LDCONFIG="ldconfig -m" ;;

from https://github.com/madler/zlib/issues/856#issuecomment-1749514906 seems to fix it, the .so is created and android-aarch64-qt6-base can be linked against it

Nep_Nep commented on 2024-01-13 19:10 (UTC)

This seems related to what Martchus sent regarding the error, from $SRCDIR/zlib-1.3/configure.log

Checking for shared library support...
=== ztest23555.c ===
extern int getchar();
int hello() {return getchar();}
===
/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -w -c -O3 -fPIC ztest23555.c
/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -shared -Wl,-soname,libz.so,--version-script,zlib.map -O3 -fPIC -o ztest23555.so ztest23555.o
ld.lld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'compressBound' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'deflateBound' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateBack' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateBackEnd' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateBackInit_' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateCopy' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'deflate_copyright' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'inflate_copyright' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'inflate_fast' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'inflate_table' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'zcalloc' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'zcfree' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'z_errmsg' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'gz_error' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0.2' to symbol 'gzclearerr' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0.2' to symbol 'gzungetc' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0.2' to symbol 'zlibCompileFlags' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.0.8' to symbol 'deflatePrime' failed: symbol not defined
ld.lld: error: version script assignment of 'ZLIB_1.2.2' to symbol 'adler32_combine' failed: symbol not defined
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
(exit code 1)
No shared library support; try without defining CC and CFLAGS

Martchus commented on 2023-10-08 19:31 (UTC)

I'd rather update the package in accordance with the regular zlib package which also has a few other changes, see https://gitlab.archlinux.org/archlinux/packaging/packages/zlib/-/commits/main.

asnt commented on 2023-10-07 04:00 (UTC) (edited on 2023-10-07 04:01 (UTC) by asnt)

Had to apply this patch:

diff --git a/PKGBUILD b/PKGBUILD
index 6666cdd..c4f9894 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ license=('custom:zlib')
 depends=('android-ndk')
 options=(!strip !buildflags staticlibs !emptydirs)
 makedepends=('android-environment' 'android-pkg-config')
-source=("http://zlib.net/zlib-${pkgver}.tar.gz"
+source=("http://zlib.net/fossils/zlib-${pkgver}.tar.gz"
         "0001-Disable-versioning.patch"
         "0002-Fix-CC-definition.patch")
 md5sums=('9b8aa094c4e5765dabf4da391f00d15c'

fft commented on 2022-06-18 11:27 (UTC) (edited on 2022-06-18 11:28 (UTC) by fft)

For shared library building need to apply this commit (currently on 'develop' branch): https://github.com/madler/zlib/commit/05796d3d8d5546cf1b4dfe2cd72ab746afae505d

BTW, 'export CXX' and 'case "$_android_arch" in' is excessive in current PKGBUILD.

Martchus commented on 2022-04-21 12:20 (UTC) (edited on 2022-04-21 12:20 (UTC) by Martchus)

Yes, the build system somehow determines that building the shared library is not supported:

==> Installing missing dependencies...                                                                                                                                                                                                                                                                                      
resolving dependencies...                                                                                                                                                                                                                                                                                                   
looking for conflicting packages...                                                                                                                                                                                                                                                                                         

Packages (1) android-ndk-r23.b-1
…
==> Starting prepare()...                                                                                                                                     
ls: cannot access '/opt/android-sdk/build-tools': No such file or directory                                                                                   
patching file configure                                                                                                                                       
Hunk #1 succeeded at 219 (offset 11 lines).                                                                                                                   
Hunk #2 succeeded at 357 (offset 11 lines).                                                                                                                   
patching file Makefile.in                                                                                                                                     
Hunk #1 succeeded at 34 with fuzz 2.
==> Starting build()...                                                                                                                                       
ls: cannot access '/opt/android-sdk/build-tools': No such file or directory                                                                                   
Using ar                                                                                                                                                      
Checking for shared library support...                                                                                                                        
No shared library support; try without defining CC and CFLAGS                                                                                                 
Building static library libz.a version 1.2.12 with /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang.                  
Checking for size_t... Yes.                                                                                                                                   
Checking for off64_t... Yes.                                                                                                                                  
Checking for fseeko... Yes.                                                                                                                                                                                                                                                                                                 
Checking for strerror... Yes.                                                                                                                                 
Checking for unistd.h... Yes.                                                                                                                                 
Checking for stdarg.h... Yes.                                                                                                                                                                                                                                                                                               
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().                                                                                 
Checking for vsnprintf() in stdio.h... Yes.

Maybe I can come up with a fix and maybe it is even an upstream bug.

I'm currently not using the package so I'm also not trying to rush a fix. (I suppose if the Qt 6 ecosystem matures, e.g. if Kirigami is ported, I'll look into Android + Qt 6 more actively again.)

hipersayan_x commented on 2022-04-18 14:26 (UTC)

The shared library is enabled but isn't building it, in previous versions it worked fine, its maybe a bug of this version, just send me the patches to fix it, I'm quite busy right now to work in this.

Martchus commented on 2022-04-16 23:16 (UTC)

Looks like the shared library is missing in the latest update. Is this intended? I have currently several packages in my repository using the shared library which I needed to rebuild. However, linking each of those shared libraries statically against zlib is likely not the best solution so it would make sense to keep the shared library. Of course the same counts for the other archs.