Menu

#238 configure doesn't find libgd on Suse Leap 15

open
nobody
None
5
2018-10-07
2018-10-07
No

Hello,

I'm trying to compile gnuplot 5.3 on OpenSuse Leap 15.0. configure does find everything it should, except for libgd, which disables jpg/png output:

checking for gdlib-config... /usr/bin/gdlib-config
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
checking for gdImageCreateTrueColor in -lgd... no
configure: WARNING: libgd not found or too old, version >= 2.0 is required

However, I do have the packages libgd3 and gd-devel installed, therefore the files /usr/lib64/libgd.so, /usr/lib64/libgd.so.3 and /usr/lib64/libgd.so.3.0.5 are present. What should I do about is, and should I care about the "deprecated" warning?

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2018-10-07

    So far as I know the "deprecated" warning is noise. The gdlib-config tool has emitted it for years now.

    Your config.log contains the following error message generated by the test for -lgd

        configure:10811: checking for gdImageCreateTrueColor in -lgd
        configure:10836: gcc -o conftest -g -O2    -I/usr/include  -lcerf  conftest.c -lgd  -ldl -lm  -lgd -lm -lz -lpng16 -lz -lfreetype -lfontconfig -lfreetype -ljpeg -lXpm -lX11 -ltiff -lwebp >&5
    /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lXpm
        collect2: error: ld returned 1 exit status
    

    You can check whether this is in fact the problem using the following command

      ldd `locate gd.so`
    

    If it is true that your system is missing Xpm.so then there should be a line in the ldd output that says " ... not found" after the name of the library that gd.so depends on. That would seem to indicate that the libg3 package should have listed Xpm (on my system lib64xpm4) as a dependency but apparently did not.

     
    • Eldrad Ulthran

      Eldrad Ulthran - 2018-10-07

      locate didn't work for me, because indexing is disabled. However, ldd /usr/lib64/libgd.so* | grep -i "not found" gave no output, and without the pipe everything looked good (Xpm was listed as well).
      But I discovered that the xpm-devel package was missing – after manually installing it ./configure ran smoothly and everything compiled without trouble. Thank you very much for helping!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.