Toon posts:

Webalizer compilatie error

Pagina: 1
Acties:

Verwijderd

Topicstarter
Oke... ben geen newby, maar hier begrijp ik niks van

[root@server webalizer-2.01-10]# make
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c webalizer.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c hashtab.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c linklist.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c preserve.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c dns_resolv.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c parser.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -c output.c
gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -I/usr/include -c graphs.c
cc1: let op: changing search order for system directory "/usr/include"
cc1: let op: as it has already been specified as a non-system directory
gcc -L/usr/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm
graphs.o: In function `year_graph6x':
graphs.o(.text+0x5aa): undefined reference to `gdImagePng'
graphs.o: In function `month_graph6':
graphs.o(.text+0x126d): undefined reference to `gdImagePng'
graphs.o: In function `day_graph3':
graphs.o(.text+0x1bd5): undefined reference to `gdImagePng'
graphs.o: In function `pie_chart':
graphs.o(.text+0x2338): undefined reference to `gdImagePng'
collect2: ld gaf exit-status 1 terug
make: *** [webalizer] Fout 1

Verwijderd

Ziet er naaruit dat je gd niet of niet goed is geinstalleerd/geconfigureerd.

Verwijderd

Topicstarter
Ja maar die heb ik net ook geinstalleerd... dus moet volgens mij goed zitten

Dit is trouwens wat ie doet bij ./configure

[root@server webalizer-2.01-10]# ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether ln -s works... yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether char is unsigned... no
checking for main in -l44bsd... no
checking for main in -lm... yes
checking for main in -lz... yes
checking for gzrewind in -lz... yes
checking for main in -lpng... yes
checking for gdImagePng in -lgd... no
checking for libgd.a... /usr/lib
checking for gd.h... /usr/include
checking for getopt.h... yes
checking for math.h... yes
checking default config dir... /etc
checking for language file... yes - english
updating cache ./config.cache
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.english to webalizer_lang.h

[ Voor 88% gewijzigd door Verwijderd op 13-06-2003 15:01 ]


  • imdos
  • Registratie: Maart 2000
  • Laatst online: 04-05 14:00

imdos

I use FreeNAS and Ubuntu

checking for gdImagePng in -lgd... no
Hij geeft het zelfs al aan! Heb je na de install van gd wel ldconfig gedaan en staat in /etc/ld.so.conf wel de dir waar de gd libs staan :?

pvoutput. Waarom makkelijk doen, als het ook moeilijk kan! Every solution has a new problem


Verwijderd

Topicstarter
Oke... nu gaat het me iets te snel... heb net wel ldconfig uitgevoerd.. maar wat moet er precies waar staan

Dit staat er in die /etc/ld.so.conf


/usr/kerberos/lib
/usr/X11R6/lib

[ Voor 27% gewijzigd door Verwijderd op 13-06-2003 15:09 ]


  • moto-moi
  • Registratie: Juli 2001
  • Laatst online: 09-06-2011

moto-moi

Ja, ik haat jou ook :w

Verwijderd schreef op 13 June 2003 @ 15:07:
Oke... nu gaat het me iets te snel... heb net wel ldconfig uitgevoerd.. maar wat moet er precies waar staan
Je hebt gdimage nodig waarbij png support erin gecompileerd moet worden. Dat is toch vrij duidelijk uit de foutmelding te halen hoor ?

God, root, what is difference? | Talga Vassternich | IBM zuigt


Verwijderd

in ld.so.conf zet je alle paden waar je library's in hebt staan. Hiervan word vervolgens een lookup cache gemaakt met ldconfig. Als je gd vers installed, dan moet je die cache wel updaten, anders ziet geen enkele applicatie dat je die libs geinstalled hebt (die kijken naar de cache namelijk)

Verwijderd

Topicstarter
Ik heb nu net alle padden toegevoegd, maar die

checking for gdImagePng in -lgd... no

krijg ik maar niet anders... iemand die me een klap kan verkopen zodat ik het licht zie :D

[ Voor 21% gewijzigd door Verwijderd op 13-06-2003 15:34 ]


  • chiel2002
  • Registratie: November 2000
  • Laatst online: 23-05-2021
misschien helpt dit??

./configure --with-gd=/usr/local/.....

[ Voor 25% gewijzigd door chiel2002 op 13-06-2003 16:43 ]


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-04 08:10

RvdH

Uitvinder van RickRAID

Recompile GD met libpng support, in de GD Readme staat precies beschreven hoe dat moet.

Verwijderd

Topicstarter
Thx.....

./configure --with-gd=/usr/local/lib/

was de oplossing...
Pagina: 1