Home | News | Documentation | Download

Fedora 20 and libpng

Hi all,

I’m using ROOT v5.34/18 and Fedora 20, and everything compiles and runs properly, but when I start up a new TBrowser, I get a warning involving libpng. It looks like:

root [0] new TBrowser
libpng warning: Application built with libpng-1.2.50 but running with 1.6.3
Warning in TASImage::GetMask: No image

I’ve seen a bit of a discussion on this, but to be honest I didn’t find a solution in any of the responses.

Can anyone help? Thanks.

It means you are running a ROOT version built with an older version of the png library than the one you have installed on your system.

You said “everything compiles”… does that mean you have installed ROOT from the sources ?
I guess no because you wouldn’t get this message …

Is it possible for you to install ROOT from the sources ?

to force the internal image library you can use:

./configure --enable-builtin-afterimage

Thanks for your response.

I definitely did compile from source, and therefore am unsure why I got this error.

And apparently the option ./configure --enable-builtin-afterimage is the default.

Any other assistance is welcome!

Does configure tells you where libpng is ?

Apparently it is not found, but it is indeed in /usr/lib64.

How do I fix this?

Checking for libpng ... 
libraries to check for:  libpng.so libpng.sl libpng.dylib libpng.dll.a  libpng.a libpng.lib libpng
 Checking in directories /usr/local/lib64 /usr/local/lib for  libpng.so libpng.sl libpng.dylib libpng.dll.a  libpng.a libpng.lib libpng
  Checking for library libpng.so in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng.so
  libpng.so not found in /usr/local/lib64
  Checking for library libpng.sl in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng.sl
  libpng.sl not found in /usr/local/lib64
  Checking for library libpng.dylib in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng.dylib
  libpng.dylib not found in /usr/local/lib64
  Checking for library libpng.dll.a in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng.dll.a
  libpng.dll.a not found in /usr/local/lib64
  Checking for library libpng.a in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng.a
  libpng.a not found in /usr/local/lib64
  Checking for library libpng.lib in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng.lib
  libpng.lib not found in /usr/local/lib64
  Checking for library libpng in directory /usr/local/lib64
   Checking /usr/local/lib64/libpng
  libpng not found in /usr/local/lib64
  Checking for library libpng.so in directory /usr/local/lib
   Checking /usr/local/lib/libpng.so
  libpng.so not found in /usr/local/lib
  Checking for library libpng.sl in directory /usr/local/lib
   Checking /usr/local/lib/libpng.sl
  libpng.sl not found in /usr/local/lib
  Checking for library libpng.dylib in directory /usr/local/lib
   Checking /usr/local/lib/libpng.dylib
  libpng.dylib not found in /usr/local/lib
  Checking for library libpng.dll.a in directory /usr/local/lib
   Checking /usr/local/lib/libpng.dll.a
  libpng.dll.a not found in /usr/local/lib
  Checking for library libpng.a in directory /usr/local/lib
   Checking /usr/local/lib/libpng.a
  libpng.a not found in /usr/local/lib
  Checking for library libpng.lib in directory /usr/local/lib
   Checking /usr/local/lib/libpng.lib
  libpng.lib not found in /usr/local/lib
  Checking for library libpng in directory /usr/local/lib
   Checking /usr/local/lib/libpng
  libpng not found in /usr/local/lib
 Checking in directories /usr/X11/lib64 /usr/X11/lib for  libpng.so libpng.sl libpng.dylib libpng.dll.a  libpng.a libpng.lib libpng
 Checking in directories /usr/lib64 /usr/lib for  libpng.so libpng.sl libpng.dylib libpng.dll.a  libpng.a libpng.lib libpng
  Checking for library libpng.so in directory /usr/lib64
   Checking /usr/lib64/libpng.so
  libpng.so not found in /usr/lib64
  Checking for library libpng.sl in directory /usr/lib64
   Checking /usr/lib64/libpng.sl
  libpng.sl not found in /usr/lib64
  Checking for library libpng.dylib in directory /usr/lib64
   Checking /usr/lib64/libpng.dylib
  libpng.dylib not found in /usr/lib64
  Checking for library libpng.dll.a in directory /usr/lib64
   Checking /usr/lib64/libpng.dll.a
  libpng.dll.a not found in /usr/lib64
  Checking for library libpng.a in directory /usr/lib64
   Checking /usr/lib64/libpng.a
  libpng.a not found in /usr/lib64
  Checking for library libpng.lib in directory /usr/lib64
   Checking /usr/lib64/libpng.lib
  libpng.lib not found in /usr/lib64
  Checking for library libpng in directory /usr/lib64
   Checking /usr/lib64/libpng
  libpng not found in /usr/lib64
  Checking for library libpng.so in directory /usr/lib
   Checking /usr/lib/libpng.so
  libpng.so not found in /usr/lib
  Checking for library libpng.sl in directory /usr/lib
   Checking /usr/lib/libpng.sl
  libpng.sl not found in /usr/lib
  Checking for library libpng.dylib in directory /usr/lib
   Checking /usr/lib/libpng.dylib
  libpng.dylib not found in /usr/lib
  Checking for library libpng.dll.a in directory /usr/lib
   Checking /usr/lib/libpng.dll.a
  libpng.dll.a not found in /usr/lib
  Checking for library libpng.a in directory /usr/lib
   Checking /usr/lib/libpng.a
  libpng.a not found in /usr/lib
  Checking for library libpng.lib in directory /usr/lib
   Checking /usr/lib/libpng.lib
  libpng.lib not found in /usr/lib
  Checking for library libpng in directory /usr/lib
   Checking /usr/lib/libpng
  libpng not found in /usr/lib
 Checking in directories /opt/lib64 /opt/lib for  libpng.so libpng.sl libpng.dylib libpng.dll.a  libpng.a libpng.lib libpng
 library not found

In principle it should be compiled if you enable “builtin-freetype”

imaccouet:root534 couet$ cd $ROOTSYS
imaccouet:root534-bin couet$ ls graf2d/asimage/src/libAfterImage/libpng/
LICENSE		pngconf.h	pngmem.c	pngrio.c	pngset.c	pngwrite.c
png.c		pngerror.c	pngpread.c	pngrtran.c	pngtrans.c	pngwtran.c
png.h		pngget.c	pngread.c	pngrutil.c	pngwio.c	pngwutil.c

I tried to use

./configure linuxx8664gcc --enable-builtin-freetype

but that did not help. It could still not find the libpng library according to the config.log file.

when you do le ls in ROOTSYS (cf my previous post) … do you se the .o files ?

Yes, the object files are there.

According to the other answers on the forum it looks like reinstalling a root version > 5.30 (but you are already 5.34) or de-installing the local version (but you do not have any local version) fix that issue… I must admit I do not have any more idea … are you sure you are running the root module you installed ? what do you get if you type:

$ which root

This is definitely the only installation of root that exists on my machine.

It is really very strange.

Just for fun I am going to try with an older version and see what happens.

Thanks anyway for your help.

FYI, I get the exact same error with 5.34/09 and on older versions Fedora I never had that problem.

So it appears there is something weird about Root and my installation of Fedora 20.

Try:
yum list installed libpng*
and see if you have the correct “-devel.x86_64” package installed.
Try:
ls -al /usr/lib64/libpng*.so*
rpm -qf /usr/lib64/libpng.so
rpm -qf /usr/include/png.h
(assuming that “/usr/include/png.h” was found in ROOT’s “config.log” file) and make sure that they are “consistent” (i.e. that they belong to “corresponding” packages).

Installing libpng-devel did the trick. Thanks very much!

Although, this must be a new feature in Fedora 20 because I’ve never had to install the package before. I guess I should pay more attention to the config.log.

Anyway, thanks again for your help. And sorry if I wasted your time.

Just want to say, installing the devel version of libpng really made my fedora 20 + ROOT work together in the end. Thank you :smiley:

I’m sorry to write here in a post already solved, but I have a quite similar problem, and all the suggestions written here did not help me. I still have the same conflict between libpng (even linking libpng.so to the older 1.2.50). Another issue I get is that at the end root crashes. Thanks a lot in advance to anyone will reply.
Here is the output I usually get when I try to open TBrowser.

libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.6
Warning in TASImage::GetMask: No image
Warning in TASImage::GetMask: No image

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00007f8d02c563ac in waitpid () from /lib64/libc.so.6
#1 0x00007f8d02bdc5b2 in do_system () from /lib64/libc.so.6
#2 0x00007f8d03907ec9 in TUnixSystem::StackTrace() () from /usr/local/lib/root/libCore.so
#3 0x00007f8d03909aec in TUnixSystem::DispatchSignals(ESignals) () from /usr/local/lib/root/libCore.so
#4
#5 0x00007f8cfc597c61 in asimage_init () from /usr/local/lib/root/libASImage.so
#6 0x00007f8cfc598532 in destroy_asimage () from /usr/local/lib/root/libASImage.so
#7 0x00007f8cfc5d4684 in merge_layers () from /usr/local/lib/root/libASImage.so
#8 0x00007f8cfc57b096 in TASImage::Merge(TImage const*, char const*, int, int) () from /usr/local/lib/root/libASImage.so
#9 0x00007f8cfde5135c in TGPictureButton::CreateDisabledPicture() () from /usr/local/lib/root/libGui.so
#10 0x00007f8cfde4e08c in TGPictureButton::DoRedraw() () from /usr/local/lib/root/libGui.so
#11 0x00007f8cfde4b8fc in TGButton::SetState(EButtonState, bool) () from /usr/local/lib/root/libGui.so
#12 0x00007f8cfdf00064 in TGTextEditor::Build() () from /usr/local/lib/root/libGui.so
#13 0x00007f8cfdf01345 in TGTextEditor::TGTextEditor(char const*, TGWindow const*, unsigned int, unsigned int) () from /usr/local/lib/root/libGui.so
#14 0x00007f8cfe1bdc73 in G__G__Gui3_385_0_2(G__value*, char const*, G__param*, int) () from /usr/local/lib/root/libGui.so
#15 0x00007f8d020b637d in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) () from /usr/local/lib/root/libCint.so
#16 0x00007f8d02101307 in G__execute_call () from /usr/local/lib/root/libCint.so
#17 0x00007f8d021016c5 in G__call_cppfunc () from /usr/local/lib/root/libCint.so
#18 0x00007f8d0207f16d in G__interpret_func () from /usr/local/lib/root/libCint.so
#19 0x00007f8d02192867 in G__getfunction () from /usr/local/lib/root/libCint.so
#20 0x00007f8d020b912c in G__new_operator () from /usr/local/lib/root/libCint.so
#21 0x00007f8d0209272d in G__exec_statement () from /usr/local/lib/root/libCint.so
#22 0x00007f8d0205bdd6 in G__exec_tempfile_core () from /usr/local/lib/root/libCint.so
#23 0x00007f8d0205d2be in G__exec_tempfile_fp () from /usr/local/lib/root/libCint.so
#24 0x00007f8d021acc69 in G__process_cmd () from /usr/local/lib/root/libCint.so
#25 0x00007f8d038d7120 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/local/lib/root/libCore.so
#26 0x00007f8d038780ab in TApplication::ProcessLine(char const*, bool, int*) () from /usr/local/lib/root/libCore.so
#27 0x00007f8d0389dbdc in TROOT::ProcessLine(char const*, int*) () from /usr/local/lib/root/libCore.so
#28 0x00007f8cfdec2741 in TRootBrowser::ExecPlugin(char const*, char const*, char const*, int, int) () from /usr/local/lib/root/libGui.so
#29 0x00007f8cfdec34f8 in TRootBrowser::InitPlugins(char const*) () from /usr/local/lib/root/libGui.so
#30 0x00007f8cfdec3938 in TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) () from /usr/local/lib/root/libGui.so
#31 0x00007f8cfdec3e38 in TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) () from /usr/local/lib/root/libGui.so
#32 0x00007f8cfe1dff8a in G__G__Gui3_418_0_47(G__value*, char const*, G__param*, int) () from /usr/local/lib/root/libGui.so
#33 0x00007f8d020b563b in Cint::G__CallFunc::Execute(void*) () from /usr/local/lib/root/libCint.so
#34 0x00007f8d038d23e1 in TCint::CallFunc_ExecInt(void*, void*) const () from /usr/local/lib/root/libCore.so
#35 0x00007f8d038ce861 in TMethodCall::Execute(void*, long&) () from /usr/local/lib/root/libCore.so
#36 0x00007f8d038a1ce2 in TPluginHandler::ExecPlugin(int, …) () from /usr/local/lib/root/libCore.so
#37 0x00007f8cfdee17b9 in TRootGuiFactory::CreateBrowserImp(TBrowser*, char const*, unsigned int, unsigned int, char const*) () from /usr/local/lib/root/libGui.so
#38 0x00007f8d0387ff0a in TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) () from /usr/local/lib/root/libCore.so
#39 0x00007f8d039650e0 in G__G__Base1_85_0_3(G__value*, char const*, G__param*, int) () from /usr/local/lib/root/libCore.so
#40 0x00007f8d020b637d in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) () from /usr/local/lib/root/libCint.so
#41 0x00007f8d02101307 in G__execute_call () from /usr/local/lib/root/libCint.so
#42 0x00007f8d021016c5 in G__call_cppfunc () from /usr/local/lib/root/libCint.so
#43 0x00007f8d0207f16d in G__interpret_func () from /usr/local/lib/root/libCint.so
#44 0x00007f8d02192867 in G__getfunction () from /usr/local/lib/root/libCint.so
#45 0x00007f8d02149ee9 in G__define_var () from /usr/local/lib/root/libCint.so
#46 0x00007f8d0208d91c in G__exec_statement () from /usr/local/lib/root/libCint.so
#47 0x00007f8d0205bdd6 in G__exec_tempfile_core () from /usr/local/lib/root/libCint.so
#48 0x00007f8d0205d2be in G__exec_tempfile_fp () from /usr/local/lib/root/libCint.so
#49 0x00007f8d021acc69 in G__process_cmd () from /usr/local/lib/root/libCint.so
#50 0x00007f8d038d7120 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/local/lib/root/libCore.so
#51 0x00007f8d038780ab in TApplication::ProcessLine(char const*, bool, int*) () from /usr/local/lib/root/libCore.so
#52 0x00007f8d03494aa9 in TRint::HandleTermInput() () from /usr/local/lib/root/libRint.so
#53 0x00007f8d039092b5 in TUnixSystem::CheckDescriptors() () from /usr/local/lib/root/libCore.so
#54 0x00007f8d03909dda in TUnixSystem::DispatchOneEvent(bool) () from /usr/local/lib/root/libCore.so
#55 0x00007f8d03867956 in TSystem::InnerLoop() () from /usr/local/lib/root/libCore.so
#56 0x00007f8d03868500 in TSystem::Run() () from /usr/local/lib/root/libCore.so
#57 0x00007f8d0387673f in TApplication::Run(bool) () from /usr/local/lib/root/libCore.so
#58 0x00007f8d03495bc7 in TRint::Run(bool) () from /usr/local/lib/root/libRint.so
#59 0x0000000000400fec in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007f8cfc597c61 in asimage_init () from /usr/local/lib/root/libASImage.so
#6 0x00007f8cfc598532 in destroy_asimage () from /usr/local/lib/root/libASImage.so
#7 0x00007f8cfc5d4684 in merge_layers () from /usr/local/lib/root/libASImage.so
#8 0x00007f8cfc57b096 in TASImage::Merge(TImage const*, char const*, int, int) () from /usr/local/lib/root/libASImage.so
#9 0x00007f8cfde5135c in TGPictureButton::CreateDisabledPicture() () from /usr/local/lib/root/libGui.so
#10 0x00007f8cfde4e08c in TGPictureButton::DoRedraw() () from /usr/local/lib/root/libGui.so
#11 0x00007f8cfde4b8fc in TGButton::SetState(EButtonState, bool) () from /usr/local/lib/root/libGui.so
#12 0x00007f8cfdf00064 in TGTextEditor::Build() () from /usr/local/lib/root/libGui.so
#13 0x00007f8cfdf01345 in TGTextEditor::TGTextEditor(char const*, TGWindow const*, unsigned int, unsigned int) () from /usr/local/lib/root/libGui.so

I’m having the same problem as pferra and tried the mentioned solutions.

Now I have no idea how to proceed, any help would be highly appreciated.

I have the same problem as you. Although ROOT and fedor have new versions, I still would like to use the root 5.34 on the platform fedora20. Have you fixed the problem? Could you tell me how to fix it.

How do you fix the problem?

ROOT Build Prerequisites