Re: [fltk/fltk] [fltk 1.4.x/Linux] application invoking native chooser crashes under linux if if fltk built with --enable-localpng (#232)

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] [fltk 1.4.x/Linux] application invoking native chooser crashes under linux if if fltk built with --enable-localpng (#232) Albrecht Schlosser 05:39 May 20 top right image
 

Unfortunately this is a known issue and can only be avoided properly by not using the bundled image libs (jpeg, png) and zlib. The reason is that some system libs are linked anyway to these shared libs (unless you build "everything" yourself) and you will end up with an ambiguity (at least) to resolve a particular symbol from one of the libs and maybe the linker will pick the wrong.
Example (Linux Mint 20, based on Ubuntu 20.04LTS):

$ ldd /usr/lib/x86_64-linux-gnu/libXft.so.2 | egrep 'png|libz'
	libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fbc0737c000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbc07360000)

As you can see, if you're using xft you're already running into that specific conflict with libpng and libz. Since we link GTK dynamically this is even more problematic.

Note that Pango pulls in Cairo and Cairo depends on several other shared libs including as well...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

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