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

Re: DNS resolve issue

Expand Messages
  • michael.lightfoot@comcare.gov.au
    ... I had the same problem on Solaris 2.6 (haven t yet tried on Solaris 8 but will have to soon.) I have done all Edouard recommends but now get the following
    Message 1 of 5 , Nov 13, 2001
      --- In webalizer@y..., ROMEO Edouard <romeo@c...> wrote:
      > Oops, I forgot something :
      >
      > After running the configure script, don't forget to verify
      > the makefile, you must have the -DHAVE_DB_185_H=1 in the
      > DEFS flags. The configure script doesn't look in the good
      > place for the db lib if you give --with-db[lib] options,
      > and doesn't see the db_185.h if the headers is not in a
      > default directory, like /usr/include or /usr/local/include .
      >
      > Edouard.
      >
      > ROMEO Edouard wrote:
      > >
      > > I Had this error last week.
      > >
      > > You must re-compile your db with the option : --enable-compat185
      > > I use db-3.2.9
      > > Then try to compile webalizer again with the this two options at
      > > configure-time :
      > > --with-dblib and --with-db and it will be OK.

      I had the same problem on Solaris 2.6 (haven't yet tried on Solaris 8
      but will have to soon.)

      I have done all Edouard recommends but now get the following output:
      griffin:/usr/local/src/webalizer-2.01-09 # make
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c webalizer.c
      webalizer.c: In function `main':
      webalizer.c:1004: warning: subscript has type `char'
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c hashtab.c
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c linklist.c
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c preserve.c
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c dns_resolv.c
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c parser.c
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -c output.c
      gcc -I/usr/local/BerkeleyDB.3.2/include/ -Wall -O2 -
      DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SYS_SOCKET_H=1 -
      DHAVE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H=1 -I/usr/local/include -c
      graphs.c
      gcc -L/usr/local/BerkeleyDB.3.2/lib --static -o webalizer webalizer.o
      hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o
      graphs.o -lgd -lpng -lz -lm -ldb
      Undefined first referenced
      symbol in file
      h_errno dns_resolv.o
      gethostbyaddr dns_resolv.o
      inet_addr webalizer.o
      ld: fatal: Symbol referencing errors. No output written to webalizer
      *** Error code 1
      make: Fatal error: Command failed for target `webalizer'

      At this point I have given up as the three hours I have spent on
      trying to get DNS resolving working has delayed several other urgent
      projects.

      I am concerned that something as simple as a DNS resolver interface
      is so buggy. Unfortunately I don't have the time or expertise to
      look at the code and fix it. Perhaps someone might like to leach
      some code from the many other open source projects that do this and
      integrate it into webalizer. At the moment the DNS interface is the
      one serious weakness in an otherwise excellent utility.

      Please don't take this criticism the wrong way, it is meant to be
      constructive and if I had the time and expertise I would have
      considered fixing it as I am installing webalizer on several
      webservers on the basis of its other features.


      michael
    Your message has been successfully submitted and would be delivered to recipients shortly.