compiling mrtg 2.10.14 - gd - "Ooops, one of many bad things happened"

From: Alex Hunsley (lard_at_tardis.ed.ac.molar.uk)
Date: 07/30/04


Date: Fri, 30 Jul 2004 13:40:52 +0100

I'm compiling mrtg 2.10.14 on a redhat 9 system.
(zlib, libpng and gd already exist on the system, so they are not a problem AFAIK)

I am running the configure script for mrtg as follows:

./configure --with-gd-inc=/usr/local/src/gd-1.8.4 --prefix=/usr/local/mrtg-2

(the --with-gd-inc=/usr/local/src/gd-1.8.4 is so it can find gd.h)

The output is as follows:

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes

** Ooops, one of many bad things happened:

    a) You don't have the GD library installed.
        Get it from http://www.boutell.com, compile it and
        use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
        its location. You might also have to use --with-z-inc,
              --with-z-lib and --with-png-inc, --with-png-lib for gd
              versions 1.6 and higher. Check config.log for more
        information on the problem.

    b) You have the GD library installed, but not the gd.h
        header file. Download the source (see above) and use
        --with-gd-inc=DIR to specify where the file can be found.

    c) You have the library and the header file installed, but
        you also have a shared GD library in the same directory.
        Remove the shared library files and/or links (e.g.
        libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
              likely if you're using a recent (post 1.8.4) version of GD
        and didn't configure it with --disable-shared.

    Consider following the instructions in doc/mrtg-unix-guide.txt

I can't work out what the "one of many bad things" is!
1) gd library is installed
2) gd.h is there and has been found.
3) I can't find any symbolic links to libgd as mentioned in this item

I have uploaded the config.log produced to this URL:

http://ohmslaw.org.uk/config.log.txt

from this log, I can see that the failure point appears to be:

configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

.. but I'm not sure where to go from here!

thanks
alex



Relevant Pages

  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)
  • Lib X11 compile problem /Xlib.h:3573: error: syntax error before "_X_SENTINEL"
    ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (comp.os.linux.x)
  • make error compiling sysbench for MySQL
    ... checking for gcc... ... checking for C compiler default output file name... ... checking libaio.h usability... ... checking libaio.h presence... ...
    (linux.redhat)