Menu

compiling for RH9/FC1 with libgd

Help
2004-04-21
2004-04-21
  • Thoralf Polet

    Thoralf Polet - 2004-04-21

    gnuplot 3.8.x and 4.0 fail to compile on RedHat 9 and Fedora Core 1 because of troubles with libgd. Any soulution available?

     
    • Hans-Bernhard Broeker

      Sorry, but you'll *really* have to be more specific.  As is, that report is quite useless, because it lacks all the important details.

      Please file a proper bug report in the bug tracker, and include the exact versions of GD, gnuplot and the actual compiler error messages.

       
    • Thoralf Polet

      Thoralf Polet - 2004-04-21

      [root@hugo116 gnuplot-4.0.0]# make
      make  all-recursive
      make[1]: Wechsel in das Verzeichnis Verzeichnis /home/polet/gnuplot-4.0.0
      Making all in config
      make[2]: Wechsel in das Verzeichnis Verzeichnis /home/polet/gnuplot-4.0.0/config
      make[2]: Fr das Target all gibt es nichts zu tun.
      make[2]: Verlassen des Verzeichnisses Verzeichnis /home/polet/gnuplot-4.0.0/config
      Making all in m4
      make[2]: Wechsel in das Verzeichnis Verzeichnis /home/polet/gnuplot-4.0.0/m4
      make[2]: Fr das Target all gibt es nichts zu tun.
      make[2]: Verlassen des Verzeichnisses Verzeichnis /home/polet/gnuplot-4.0.0/m4
      Making all in term
      make[2]: Wechsel in das Verzeichnis Verzeichnis /home/polet/gnuplot-4.0.0/term
      make[2]: Fr das Target all gibt es nichts zu tun.
      make[2]: Verlassen des Verzeichnisses Verzeichnis /home/polet/gnuplot-4.0.0/term
      Making all in src
      make[2]: Wechsel in das Verzeichnis Verzeichnis /home/polet/gnuplot-4.0.0/src
      make[3]: Wechsel in das Verzeichnis Verzeichnis /home/polet/gnuplot-4.0.0/src
      gcc  -g -O2  -L/usr/X11R6/lib -L/usr/local/lib -o gnuplot  alloc.o axis.o binary.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o variable.o version.o -lz -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm -lpdf  -lm
      term.o(.text+0x207dc): In function `PNG_options':
      ../term/gd.trm:566: undefined reference to `gdImageStringFT'
      term.o(.text+0x20cca):../term/gd.trm:676: undefined reference to `gdImageStringFT'
      term.o(.text+0x20db4):../term/gd.trm:655: undefined reference to `gdImageStringFT'
      term.o(.text+0x2190f): In function `PNG_put_text':
      ../term/gd.trm:1140: undefined reference to `gdImageStringFT'
      term.o(.text+0x21a56):../term/gd.trm:1162: undefined reference to `gdImageStringFT'
      term.o(.text+0x21d9c):../term/gd.trm:1335: more undefined references to `gdImageStringFT' follow
      term.o(.text+0x22477): In function `JPEG_text':
      ../term/gd.trm:1702: undefined reference to `gdImageJpeg'
      collect2: ld returned 1 exit status
      make[3]: *** [gnuplot] Fehler 1
      make[3]: Verlassen des Verzeichnisses Verzeichnis /home/polet/gnuplot-4.0.0/src
      make[2]: *** [all-recursive] Fehler 1
      make[2]: Verlassen des Verzeichnisses Verzeichnis /home/polet/gnuplot-4.0.0/src
      make[1]: *** [all-recursive] Fehler 1
      make[1]: Verlassen des Verzeichnisses Verzeichnis /home/polet/gnuplot-4.0.0
      make: *** [all] Fehler 2

       
    • Hans-Bernhard Broeker

      Ah.  That means the actual problem is not with GD itself in general (which is found and linked), but with its freetype support.  In particular, 'configure' seems to have failed to determine what your GD library supports, and what it doesn't.

      Please check your config.log file. And make sure you have all the -devel packages for the libraries used installed, too.

       
      • Thoralf Polet

        Thoralf Polet - 2004-04-21

        I found the following error message:

        onfigure:9252: checking for gdlib-config
        configure:9270: found /usr/bin/gdlib-config
        configure:9282: result: /usr/bin/gdlib-config
        configure:9302: checking for gdImageCreate in -lgd
        configure:9333: gcc -o conftest -g -O2   -I/usr/X11R6/include -I/usr/include  -L/usr/X11R6/lib conftest.c -lgd  -lm  >&5
        configure:9336: $? = 0
        configure:9339: test -s conftest
        configure:9342: $? = 0
        configure:9354: result: yes
        configure:9376: checking gd.h usability
        configure:9389: gcc -c -g -O2   -I/usr/X11R6/include -I/usr/include conftest.c >&5
        configure:9392: $? = 0
        configure:9395: test -s conftest.o
        configure:9398: $? = 0
        configure:9408: result: yes
        configure:9412: checking gd.h presence
        configure:9423: gcc -E   -I/usr/X11R6/include -I/usr/include conftest.c
        configure:9429: $? = 0
        configure:9448: result: yes
        configure:9484: checking for gd.h
        configure:9491: result: yes
        configure:9505: checking for gdImageGif in -lgd
        configure:9536: gcc -o conftest -g -O2   -I/usr/X11R6/include -I/usr/include  -L/usr/X11R6/lib conftest.c -lgd  -lm  >&5
        /tmp/ccMY2TAm.o(.text+0xa): In function `main':
        /home/polet/gnuplot-4.0.0/configure:9626: undefined reference to `gdImageGif'
        collect2: ld returned 1 exit status

        My system (Fedora Core 1) has gd and gd-devel 2.0.15-1 as provided by Fedora/RedHat (with RH9 I get the same error).

         
        • Hans-Bernhard Broeker

          You stopped looking further a little too early.  The interesting part of config.log comes right after where you ended your snippet.  It may be easier if you just mail me you entire config.log.

           

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.