[gdal-dev] libgdal depends on two libprojs, what's going on?

Ari Jolma ari.jolma at gmail.com
Tue Mar 16 07:42:21 PDT 2021


I needed later libgdal so I added ubuntugi-unstable and installed 
libgdal-dev. Now I have both libgdal26 and libgdal28. But I assume 
something is wrong because I get from trying to use the libgdal28

(gdb) bt
#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff7c63859 in __GI_abort () at abort.c:79
#2  0x00007ffff7cce3ee in __libc_message (action=action at entry=do_abort, 
fmt=fmt at entry=0x7ffff7df8285 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007ffff7cd647c in malloc_printerr (str=str at entry=0x7ffff7df64ae 
"free(): invalid pointer") at malloc.c:5347
#4  0x00007ffff7cd7cac in _int_free (av=<optimized out>, p=<optimized 
out>, have_lock=0) at malloc.c:4173
#5  0x00007ffff01aec20 in 
osgeo::proj::common::UnitOfMeasure::~UnitOfMeasure() () from 
/usr/lib/x86_64-linux-gnu/libproj.so.15
#6  0x00007ffff7c87a27 in __run_exit_handlers (status=0, 
listp=0x7ffff7e29718 <__exit_funcs>, 
run_list_atexit=run_list_atexit at entry=true,
     run_dtors=run_dtors at entry=true) at exit.c:108
#7  0x00007ffff7c87be0 in __GI_exit (status=<optimized out>) at exit.c:139
#8  0x000055555559d426 in main ()

Maybe it's because libgdal seems to use two libprojs:

ldd /usr/lib/libgdal.so.28.0.1 | grep libproj
     libproj.so.19 => /usr/lib/x86_64-linux-gnu/libproj.so.19 
(0x00007f70d3343000)
     libproj.so.15 => /usr/lib/x86_64-linux-gnu/libproj.so.15 
(0x00007f70cef6f000)

Is there anything I can do except try things on a virtual machine or 
something like that?

Ari




More information about the gdal-dev mailing list