termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.03k stars 2.99k forks source link

[Bug]: gdal - cannot link executable, library "libcrypto.so.1.1" not found #9895

Closed arkanoid87 closed 2 years ago

arkanoid87 commented 2 years ago

Problem description

gdalinfo --version CANNOT LINK EXECUTABLE "gdalinfo": library "libcrypto.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libgdal.so in namespace (default)

What steps will reproduce the bug?

pkg install gdal gdalinfo --version

What is the expected behavior?

Print gdalinfo version

System information

termux-info:

Application version:
0.118.0                                                                                 Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list                                                                          deb https://packages-cf.termux.org/apt/termux-main/ stable main
Updatable packages:
All packages up to date
Android version:                                                                        11
Kernel build information:
Linux localhost 4.14.113-22340613 #1 SMP PREEMPT Mon Dec 6 15:44:35 +07 2021 aarch64 Android
Device manufacturer:
samsung                                                                                 Device model:
SM-N975F
arkanoid87 commented 2 years ago
$ find /data/data/com.termux/files/usr/lib -name "*crypto*"
/data/data/com.termux/files/usr/lib/pkgconfig/libcrypto.pc
/data/data/com.termux/files/usr/lib/libcrypto.so
/data/data/com.termux/files/usr/lib/libk5crypto.so                                      /data/data/com.termux/files/usr/lib/libk5crypto.so.3
/data/data/com.termux/files/usr/lib/openssl-1.1/pkgconfig/libcrypto.pc
/data/data/com.termux/files/usr/lib/openssl-1.1/libcrypto.so                            /data/data/com.termux/files/usr/lib/openssl-1.1/libcrypto.so.1.1
/data/data/com.termux/files/usr/lib/libcrypto.so.3
/data/data/com.termux/files/usr/lib/postgresql/pgcrypto.so                              /data/data/com.termux/files/usr/lib/libk5crypto.so.3.1
$ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
SEARCH_DIR("/data/data/com.termux/files/usr/aarch64-linux-android/lib64")           
SEARCH_DIR("/data/data/com.termux/files/usr/lib")                                     
SEARCH_DIR("/system/lib64")                                                           
SEARCH_DIR("/data/data/com.termux/files/usr/aarch64-linux-android/lib")
arkanoid87 commented 2 years ago
$ LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib/openssl-1.1 gdalinfo --version                                                       
GDAL 3.4.1, released 2021/12/27
arkanoid87 commented 2 years ago

while you are there, you may consider compiling gdal against libjxl

JXL is for JPEG-XL, and is only available when using internal libtiff and building GDAL against https://github.com/libjxl/libjxl . JXL compression may only be used alongside INTERLEAVE=PIXEL (the default) on datasets with 4 bands or less.

See: https://gdal.org/drivers/raster/gtiff.html