Zenity - symbol lookup error, downtime report shell script dtl_report.sh
Zenity crashes with symbol lookup error (missing pango_font_map_create_context symbol needed by /usr/lib64/libgdk-x11-2.0.so.0 library) after setup_online on both novadaq-far/near-master machines, but runs OK before that. Some libraries, the zenity depends on, are taken from /nova/ups area after setup_online. The missing symbol is taken from libpango-1.0.so.0. The problem is that default /usr/lib64/libpango-1.0.so.0 contains the missing symbol definition, but the libpango-1.0.so.0 library from /nova/ups does NOT. There is a similar problem with other 4 libraries : libpangoft2-1.0.so.0, libpangocairo-1.0.so.0, libcairo.so.2 and libpixman-1.so.0.
The current solution is to avoid setting up DAQ environment (using setup_online) and set only what is really necessary (path to NOvA DB environment setup script and postgres_client package).
The other way is to set LD_PRELOAD variable to default /usr/lib64 location of faulty libraries, which is :
export LD_PRELOAD="/usr/lib64/libpango-1.0.so.0 /usr/lib64/libpangoft2-1.0.so.0 /usr/lib64/libpangocairo-1.0.so.0 /usr/lib64/libcairo.so.2 /usr/lib64/libpixman-1.so.0"