Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with libgd (analog, mrtg, ...)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
johan
n00b
n00b


Joined: 10 Sep 2002
Posts: 5
Location: Maasmechelen

PostPosted: Tue Sep 10, 2002 10:37 pm    Post subject: Problem with libgd (analog, mrtg, ...) Reply with quote

Hello,

I'm having a problem with libgd I think.

I have lidgd installed with all dependencies right:

media-libs/libgd
Latest version available: 2.0.1
Latest version installed: 2.0.1
Homepage: http://www.boutell.com/gd/
Description: A graphics library for fast image creation

When emerging net-analyzer/mrtg, or app-admin/analog I get the following errors:

analog:
...
gcc -O2 -mcpu=i686 -pipe -DHAVE_GD -DHAVE_PCRE -DUNIX -c trees.c
gcc -O2 -mcpu=i686 -pipe -DHAVE_GD -DHAVE_PCRE -DUNIX -c zutil.c
make[1]: Leaving directory `/var/tmp/portage/analog-5.24/work/analog-5.24/src/zlib'
gcc -O2 -mcpu=i686 -pipe -o ../analog alias.o analog.o cache.o dates.o globals.o hash.o init.o init2.o input.o macinput.o macstuff.o output.o output2.o process.o settings.o sort.o tree.o utils.o win32.o libgd/gd.o libgd/gd_io.o libgd/gd_io_file.o libgd/gd_png.o libgd/gdfontf.o libgd/gdfonts.o libgd/gdtables.o libpng/png.o libpng/pngerror.o libpng/pngmem.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o pcre/pcre.o zlib/adler32.o zlib/crc32.o zlib/deflate.o zlib/trees.o zlib/zutil.o -lgd -lpng -ljpeg -lz -lpcre -lm
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
make: *** [analog] Error 1
make: Leaving directory `/var/tmp/portage/analog-5.24/work/analog-5.24/src'

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 2
!!! (no error message)

mrtg:
...
checking for acos 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 for gd.h... yes

** The GD library is required for rateup to compile.
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. If your system
has libgd installed, you probably mis the gd.h header file.

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

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 1
!!! (no error message)


I checked, but I have a "gd.h" file in /usr/include.

My USE flags:
I've read the Gentoo Guide to USE flags, but I don't think anything is wrong with them.

USE="x86 -oss -3dnow apm -arts avi berkdb crypt -cups encode gdbm gif gpm -gtk imlib java jpeg -kde libg++ libwww mikmod mmx -motif mpeg ncurses nls oggvorbis -opengl pam pdflib png python -qt -qtmt quicktime readline -sdl slang spell ssl svga tcpd truetype -X xml2 -xmms xv"

I use this system as a server, so no X, etc...
If someone could tell me what I'm doing wrong...


Thanks in advance,

Johan Braeken.
_________________
This signature is under construction...
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 413
Location: American Fork, UT

PostPosted: Wed Sep 11, 2002 12:41 am    Post subject: Reply with quote

Try adding 'gd' to your USE flags.
_________________
Gentoo:
1. A small fast penguin from Antarctica.
2. A small fast penguin on your computer.

Cool.
Back to top
View user's profile Send private message
johan
n00b
n00b


Joined: 10 Sep 2002
Posts: 5
Location: Maasmechelen

PostPosted: Wed Sep 11, 2002 1:58 pm    Post subject: Reply with quote

I added "gd" to my use flags, but nothing really happened.

I still can't emerge analog and mrtg.

I even did "emerge -e world" with that "gd" flag and after that, I was still not able to install them.

The error messages are the same.

Do I have something wrong in my USE flags, or is there another problem?
I really don't know what te problem is.


Kind regards,

Johan.
_________________
This signature is under construction...
Back to top
View user's profile Send private message
arifmamdani
n00b
n00b


Joined: 11 Jun 2002
Posts: 21
Location: St. Paul, MN

PostPosted: Sat Sep 14, 2002 4:39 am    Post subject: I've having the same problem Reply with quote

I'm having the exact same issue, I've checked through my USE settings and all looks good, libgd appears to install without problems, but when I emerge mrtg, it bombs with the same error message as above.

It looks like a bug report has already been filed.

-arif
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum