MRTG help (gd)

MRTG help (gd)

Post by tucan.. » Fri, 01 Nov 2002 09:16:59



Hi folks.

I am having a problem with <RTG.  Specifically, I am having a problem with
one of its dependencies, gd.  I can't get it to compile.

# make install
gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
-I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g  
-DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c  
gdxpm.c
gdxpm.c:23: xpm.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `gdxpm.o'

I am not a coder and I usually run into problems when I have to compile
something.  I have set my LD_LIBRARY_PATH environment variable to point to
every lib dir that I am aware of on my system.  The very first path in
that variable is the path where xpm.h lives.

Can anyone tell me what I am doing wrong?

Thanks.

--

 
 
 

MRTG help (gd)

Post by Rich Tee » Fri, 01 Nov 2002 09:56:27



Quote:> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c
> gdxpm.c
> gdxpm.c:23: xpm.h: No such file or directory

In which directory is this ellusive header file?

Quote:> I am not a coder and I usually run into problems when I have to compile
> something.  I have set my LD_LIBRARY_PATH environment variable to point to
> every lib dir that I am aware of on my system.  The very first path in
> that variable is the path where xpm.h lives.

LD_LIBRARY_PATH has nothing to do with where header files are
looked for.  It's used by broken applications to find dynamic
libraries at run time.

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

MRTG help (gd)

Post by tucan.. » Fri, 01 Nov 2002 10:01:00


:> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
:> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
:> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c
:> gdxpm.c
:> gdxpm.c:23: xpm.h: No such file or directory

: In which directory is this ellusive header file?

/opt/sfw/include/X11

 
 
 

MRTG help (gd)

Post by Rich Tee » Fri, 01 Nov 2002 10:38:42



Quote:

> :> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
> :> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
> :> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c
> :> gdxpm.c
> :> gdxpm.c:23: xpm.h: No such file or directory

> : In which directory is this ellusive header file?

> /opt/sfw/include/X11

In that case, that gcc statement needs an "-I/opt/sfw/include/X11"
in it somewhere.  You might need to edit the Makefile.

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

MRTG help (gd)

Post by Akop Pogosia » Fri, 01 Nov 2002 10:39:55



> :> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
> :> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
> :> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c
> :> gdxpm.c
> :> gdxpm.c:23: xpm.h: No such file or directory
> : In which directory is this ellusive header file?
> /opt/sfw/include/X11

Find a way to add this option to invocations of gcc in your makefiles:

-I/opt/sfw/include/X11

If this software uses the GNU-style configure scripts, you check if
there is an option (something like --with-xpm=..) to which you can
pass the location of your xpm installation. In the worst case, you can
set CFLAGS environment variable when running configure (e.g.

CFLAGS=-I/opt/sfw/include/X11 ./configure --something-something

if you're using sh, ksh, or bash)

--
Akop Pogosian

This space has been accidentally left blank.

 
 
 

MRTG help (gd)

Post by Dimitri Maziu » Sat, 02 Nov 2002 02:08:57


thus spake Akop Pogosian:


>> :> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
>> :> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
>> :> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c
>> :> gdxpm.c
>> :> gdxpm.c:23: xpm.h: No such file or directory

>> : In which directory is this ellusive header file?

>> /opt/sfw/include/X11
...
> CFLAGS=-I/opt/sfw/include/X11 ./configure --something-something

Or get rid of -DHAVE_LIBXPM and _DHAVE_LIBX11 -- it's been a while
but IIRC libgd compiles just fine without xpm and X libraries.

Dima
--
Q276304 - Error Message: Your Password Must Be at Least 18770 Characters
and Cannot Repeat Any of Your Previous 30689 Passwords           -- RISKS 21.37

 
 
 

MRTG help (gd)

Post by tucan.. » Sat, 02 Nov 2002 03:21:34


:>> :> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
:>> :> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
:>> :> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBXPM -DHAVE_LIBX11  -c
:>> :> gdxpm.c

Wow, huge thanks to all you guys who replied.  I'll be trying your
suggestions in a bit.

 
 
 

MRTG help (gd)

Post by tucan.. » Sat, 02 Nov 2002 03:26:15


: In that case, that gcc statement needs an "-I/opt/sfw/include/X11"
: in it somewhere.  You might need to edit the Makefile.

Rich,

Worked like a champ.  In fact I had edited that line and put in a lot of
different paths, just not that one :)

You rock.

 
 
 

MRTG help (gd)

Post by Rich Tee » Sat, 02 Nov 2002 05:46:31



Quote:> Rich,

> Worked like a champ.  In fact I had edited that line and put in a lot of
> different paths, just not that one :)

> You rock.

You're welcome!

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

MRTG help (gd)

Post by Philip Bro » Sun, 03 Nov 2002 12:42:12



>Hi folks.

>I am having a problem with <RTG.  Specifically, I am having a problem with
>one of its dependencies, gd.  I can't get it to compile.
>....

btw: a prepackaged gd, along with xpm, jpeg, png, and tiff libraries,
[for sparc AND x86]
can be obtained through mirror sites of

http://www.blastwave.com

If you had pkg-get installed, you would be able to do

  pkg-get install gd

and the gd library, and all its dependancies, would be automagically
installed for you.

Other packages of interest are in process of being created
Unfortunately, we have only one mirror site currently:
  sunsite.dk

If anyone would like to either volunteer to mirror packages, or would like
to help in the effort to make binaries packages for solaris,
please go to the site for details.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]

http://www.spamlaws.com/state/ca1.html

 
 
 

1. GD and MRTG? what's the problem?

Hello There!

I'm getting sick of compiling MRTG due to the errors generated by GD.
I searched the groups.google.com, my news server, FAQ lists and still
..... lots of people have the same queries regarding the GD
difficulty.

I wish someone can make a detail FAQ for rest of us :-)

Any help will be appreciated!

Thanks in advance.

Raqueeb Hassan
Bangladesh

____________________________________
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 for gd.h... yes

** The GD library is required for rateup to compile.

2. Problems reading files off digital cam after mounting via USB

3. MRTG and GD, what happened?

4. Help need installing X on Solaris 8 Sparc

5. MRTG: Where is the problem? GD or snmpd?

6. Network issue

7. OpenBSD 3.3: gd/GD.pm can't find libz.so.2.0

8. How do I install X?

9. X11 and Cirrus CL-GD/610-620. Help

10. HELP: Cirrus Logic GD-7543

11. Cirrus GD-5424 svgalib125 HELP!

12. Help installing PHP3 and GD 1.6 with Apache 1.3.6??

13. Help installing X368 Ver 3.1.2G with Cirrus Logic gd 7543 video chipset