FLTK logo

[fltk.general] OT: shared libs conflict

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

OT: shared libs conflict Gonzalo Garramuño May 22, 2022  
 

This is off-topic, but since there are several helpful and knowledgeable Linux people here, I thought I might ask, as I am in DSO hell.

My application ships and is linked with libgnutls.so.26 and this can be seen with:

$ cd myapp/bin
$ export LD_LIBRARY_PATH=../lib
$ ldd mrViewer | grep libgnutls
    libgnutls.so.26 => ../lib/libgnutls.so.26

Now, my application works in all Ubuntu systems and in CentOS 7.  However, on RHEL / Rocky Linux 8.6, a user gets the following:

$ cd myapp/bin
$ export LD_LIBRARY_PATH=../lib
$ ldd mrViewer | grep libgnutls
    libgnutls.so.26 => ../lib/libgnutls.so.26
    libgnutls.so.30 => /lib64/libgnutls.so.30 (0x00007f170833c000)

and when he runs the executable he gets:

mrViewer: symbol lookup error: /opt/mrviewer/mrviewer/lib/libgnutls.so.30: undefined symbol: asn1_der_decoding2, version LIBTASN1_0_3

which is logical as I have an older libtasn1.so.6 in the lib directory of my program that does not contain the symbol asn1_der_decoding2.

However, the puzzle remains... why does ldd list two libgnutls.so on his system when I never linked against libgnutls.so.30?  It seems some other lib is pulling in libgnutls.so.30 in but not sure how can I go about finding which one it is.

-- 
Gonzalo Garramuño
ggarra13@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/d9acdb56-2b15-729e-0eb6-9142dc0b9bab%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.