Loading ...
Sorry, an error occurred while loading the content.

Problem within compiling webalizer (long)

Expand Messages
  • Alessandro Maestri
    Hi All. Finding an utility to generate statistics for our web sites, choose webalizer for graphics and for completation of statistics. I need the italian page
    Message 1 of 1 , Sep 21, 2001
    • 0 Attachment
      Hi All.

      Finding an utility to generate statistics for our web sites,
      choose webalizer for graphics and for completation of statistics. I need
      the italian page for my users and then i re-compile webalizer. During
      compilation I have a problem with webalizer and BerkeleyDB (for DNS
      resolving).

      I have:

      - Sun Enterprise 250 with 2 CPU's and 512MB RAM;
      - Solaris 5.7
      - gcc 2.95.3
      - GD library 1.8.4
      - jpeg-6b
      - libpng-1.0.11
      - zlib-1.1.3
      - db-3.2.9

      I configure the compilation procedure in this way:

      ./configure --with-language=italian --enable-static --enable-dns
      --with-db=/usr/local/BerkeleyDB.3.2/include
      --with-dblib=/usr/local/BerkeleyDB.3.2/lib --with-z-inc=/usr/local/include
      --with-zlib=/usr/local/lib --with-png-inc=/usr/local/include
      --with-png=/usr/local/lib

      The problem I'have encontered is:
      --- start output ---
      loading cache ./config.cache
      checking for gcc... (cached) 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... (cached) yes
      checking whether gcc accepts -g... (cached) yes
      checking whether ln -s works... (cached) yes
      checking for a BSD compatible install... ./install-sh -c
      checking how to run the C preprocessor... (cached) gcc -E
      checking whether char is unsigned... (cached) no
      checking for db_185.h... (cached) no
      checking for errno.h... (cached) yes
      checking for socket... (cached) no
      checking for main in -lsocket... (cached) yes
      checking for sys/socket.h... (cached) yes
      checking for main in -lnsl... (cached) yes
      checking for main in -l44bsd... (cached) no
      checking for main in -lm... (cached) yes
      checking for main in -lz... (cached) yes
      checking for gzrewind in -lz... (cached) yes
      checking for main in -lpng... (cached) yes
      checking for gdImagePng in -lgd... (cached) yes
      checking for gd.h... (cached) /usr/local/include
      checking for getopt.h... (cached) no
      checking for math.h... (cached) yes
      checking default config dir... (cached) /etc
      checking for language file... yes - italian
      creating ./config.status
      creating Makefile
      linking ./lang/webalizer_lang.italian to webalizer_lang.h
      gcc -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include
      -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1
      -DHAVE_SYS_SOCKET_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c webalizer.c
      gcc -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include
      -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1
      -DHAVE_SYS_SOCKET_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c hashtab.c
      gcc -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include
      -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1
      -DHAVE_SYS_SOCKET_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c linklist.c
      gcc -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include
      -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1
      -DHAVE_SYS_SOCKET_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c preserve.c
      gcc -I/usr/local/BerkeleyDB.3.2/include -I/usr/local/include
      -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1
      -DHAVE_SYS_SOCKET_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c dns_resolv.c
      dns_resolv.c: In function `resolve_dns':
      dns_resolv.c:149: warning: passing arg 2 of pointer to function from
      incompatible pointer type
      dns_resolv.c:149: too few arguments to function
      dns_resolv.c: In function `dns_resolver':
      dns_resolv.c:218: warning: implicit declaration of function `dbopen'
      dns_resolv.c:218: warning: assignment makes pointer from integer without a
      cast
      dns_resolv.c:228: too few arguments to function
      dns_resolv.c:235: too few arguments to function
      dns_resolv.c:275: warning: passing arg 2 of pointer to function from
      incompatible pointer type
      dns_resolv.c:275: too few arguments to function
      dns_resolv.c:329: too few arguments to function
      dns_resolv.c:359: too few arguments to function
      dns_resolv.c: In function `db_put':
      dns_resolv.c:742: warning: passing arg 2 of pointer to function from
      incompatible pointer type
      dns_resolv.c:742: too few arguments to function
      dns_resolv.c: In function `open_cache':
      dns_resolv.c:790: warning: assignment makes pointer from integer without a
      cast
      dns_resolv.c:798: too few arguments to function
      dns_resolv.c:804: too few arguments to function
      dns_resolv.c: In function `close_cache':
      dns_resolv.c:826: too few arguments to function
      *** Error code 1
      make: Fatal error: Command failed for target `dns_resolv.o'
      --- end output ---

      Where is the problem???

      Grazie e ciao,
      Alex.

      --
      Alessandro Maestri
      Saritel S.p.A.
      Managed Services and Platforms / TIN.IT
      a.maestri@...
      Tel. +39-0691197.830
      Fax. +39-0691197.603
    Your message has been successfully submitted and would be delivered to recipients shortly.