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

compile problems when enabling dns

Expand Messages
  • brlanative
    I accidentially sent this initial message to the list owner directly - my apologies. I am having a problem that I have seen reported a few times in this group,
    Message 1 of 5 , Dec 17, 2001
    • 0 Attachment
      I accidentially sent this initial message to the list owner directly -
      my apologies.

      I am having a problem that I have seen reported a few times in this
      group, yet was never directly addressed. I am simply attempting to
      install the current release of webalizer with dns resolving enabled.

      If anyone has any suggestions, they are greatly appreciated.

      Thanks.

      Here is the error:

      ./configure --enable-dns
      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
      webalizer.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
    • Marc Bigler
      Hey that s exactly the problem I have... Isn t there someone out there who managed to compile Webalizer properly with --enable-dns on a Solaris 8 installation
      Message 2 of 5 , Dec 17, 2001
      • 0 Attachment
        Hey that's exactly the problem I have...

        Isn't there someone out there who managed to compile Webalizer properly
        with --enable-dns on a Solaris 8 installation ???

        --- brlanative <brlanative@...> wrote:
        > I accidentially sent this initial message to the list owner directly
        > -
        > my apologies.
        >
        > I am having a problem that I have seen reported a few times in this
        > group, yet was never directly addressed. I am simply attempting to
        > install the current release of webalizer with dns resolving enabled.
        >
        > If anyone has any suggestions, they are greatly appreciated.
        >
        > Thanks.
        >
        > Here is the error:
        >
        > ./configure --enable-dns
        > 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
        >
        > webalizer.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
        >
        >


        __________________________________________________
        Do You Yahoo!?
        Check out Yahoo! Shopping and Yahoo! Auctions for all of
        your unique holiday gifts! Buy at http://shopping.yahoo.com
        or bid at http://auctions.yahoo.com
      • og_gimp
        I tried and got the same error. I checked sleepycat.com and the DB releases are supposedly backward compatible to 1.85. tried making a symlink in the
        Message 3 of 5 , Jan 4, 2002
        • 0 Attachment
          I tried and got the same error. I checked sleepycat.com and the DB
          releases are supposedly backward compatible to 1.85.

          tried making a symlink in the berkley/include/db.h to db_185.h which
          failed

          tried copying it as well in case it was checking for symlinks..failed

          forced config options like so , which failed

          ./configure --with-db=/usr/local/BerkeleyDB.4.0 --with-
          dblib=/usr/local/BerkeleyDB.4.0/lib --enable-dns

          heck for kicks i removed the 185 version check from the config file
          and it still will not pickup db.h

          anyone else get this working?
        • Jeanne Gold
          Whether this is an acceptable solution or not .. I have no idea. But this is what I finally did to get it to compile. First off, I found I did have Berkeley s
          Message 4 of 5 , Jan 28, 2002
          • 0 Attachment
            Whether this is an acceptable solution or not .. I have no idea. But this
            is what I finally did to get it to compile.

            First off, I found I did have Berkeley's DB installed. Infact, I had 3
            version: db1, db2 and db3.

            On my RH 7.1 system, I found them in:

            /usr/include/db1/db.h
            /usr/include/db2/db_185.h
            /usr/include/db3/db_185.h

            What I did was to hardwire the dns_resolv.c file by modifying the lines
            from this:

            #ifdef HAVE_DB_185_H
            #include <db_185.h>
            #else
            #include <db.h>
            #endif /* HAVE_DB_185_H */

            to this:

            #ifdef HAVE_DB_185_H
            #include </usr/include/db2/db_185.h>
            #else
            #include </usr/include/db1/db.h>
            #endif /* HAVE_DB_185_H */

            Whether that's the correct solution or no -- I don't know. I only know it
            compiled. I have yet to install and test.

            In the meantime, I've written to the author. Hopefully, I'll get a better
            answer and share with the rest of the group.

            JGold
          • digging4roots
            Here s the author s reply: Doesn t matter what packages you have installed.. RedHat puts their files in non-standard locations (and moves them around with each
            Message 5 of 5 , Jan 28, 2002
            • 0 Attachment
              Here's the author's reply:

              Doesn't matter what packages you have installed.. RedHat puts their
              files in non-standard locations (and moves them around with each
              release), which is a constant source of aggravation.

              Simple fix is to turn on hostname lookups on your web server, then DNS
              support is not needed. Otherwise, create a symlink in /usr/include to
              db_185.h, and after running the configure script, change the -ldb1 to
              -ldb-3.2 (or maybe -ldb-3.1 based on the above packages.. doesn't seem
              like you have libdb-3.2).

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