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

DNS resolve issue

Expand Messages
  • Simon Collyer
    Hi, Anyone know the fix to this, I m just running a standard redhat 7.1 distro and I can t get this working with the --enable-dns feature. [root@camberwell
    Message 1 of 5 , Nov 4, 2001
    • 0 Attachment
      Hi,

      Anyone know the fix to this, I'm just running a standard redhat 7.1
      distro and I can't get this working with the --enable-dns feature.

      [root@camberwell webalizer-2.01-09]# make
      gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c webaliz
      er.c
      gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c hashtab.c
      gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c linklist.c
      gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c preserve.c
      gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_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
      make: *** [dns_resolv.o] Error 1
      [root@camberwell webalizer-2.01-09]#


      Anyone have any ideas?


      --
      ___________________________________________________
      Simon Collyer System Administrator
      scollyer@... connect.com.au PTY LTD
      ___________________________________________________
    • ROMEO Edouard
      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
      Message 2 of 5 , Nov 5, 2001
      • 0 Attachment
        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.

        Edouard.

        Simon Collyer wrote:
        >
        > Hi,
        >
        > Anyone know the fix to this, I'm just running a standard redhat 7.1
        > distro and I can't get this working with the --enable-dns feature.
        >
        > [root@camberwell webalizer-2.01-09]# make
        > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c webaliz
        > er.c
        > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c hashtab.c
        > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c linklist.c
        > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c preserve.c
        > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_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
        > make: *** [dns_resolv.o] Error 1
        > [root@camberwell webalizer-2.01-09]#
        >
        > Anyone have any ideas?
      • ROMEO Edouard
        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
        Message 3 of 5 , Nov 5, 2001
        • 0 Attachment
          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.
          >
          > Edouard.
          >
          > Simon Collyer wrote:
          > >
          > > Hi,
          > >
          > > Anyone know the fix to this, I'm just running a standard redhat 7.1
          > > distro and I can't get this working with the --enable-dns feature.
          > >
          > > [root@camberwell webalizer-2.01-09]# make
          > > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c webaliz
          > > er.c
          > > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c hashtab.c
          > > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c linklist.c
          > > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c preserve.c
          > > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_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
          > > make: *** [dns_resolv.o] Error 1
          > > [root@camberwell webalizer-2.01-09]#
          > >
          > > Anyone have any ideas?
          >
          > To unsubscribe from this group, send an email to:
          > webalizer-unsubscribe@egroups.com
          > Webalizer homepage: http://www.webalizer.org
          > Webalizer for NT: http://www.medasys-lille.com/webalizer/
          >
          >
          >
          > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        • 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 4 of 5 , Nov 13, 2001
          • 0 Attachment
            --- 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
          • 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 5 of 5 , Nov 13, 2001
            • 0 Attachment
              --- 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.