[Bug 217268] www/webalizer build fails on dns_resolv.c

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 21 11:35:34 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217268

            Bug ID: 217268
           Summary: www/webalizer build fails on dns_resolv.c
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dinoex at FreeBSD.org
          Reporter: jonaspalm at posteo.de
          Assignee: dinoex at FreeBSD.org
             Flags: maintainer-feedback?(dinoex at FreeBSD.org)

Created attachment 180182
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180182&action=edit
de-webalizer poudriere build log

See the attached poudriere logfile for the complete log.

In the log file I try to build german/webalizer2 but I just tried to build
www/webalizer with portmaster and it failed with the same errors.

It also fails with the same error in a FreeBSD 11.0-Release jail.

Fails with:
-----

cc -O2 -pipe  -Wall -fstack-protector -fno-strict-aliasing 
-I/usr/local/include -DETCDIR=\"/usr/local/etc\"
-DGEODB_LOC=\"/usr/local/share/webalizer\" -DPACKAGE_NAME=\"webalizer\"
-DPACKAGE_TARNAME=\"webalizer\" -DPACKAGE_VERSION=\"V2.23\"
-DPACKAGE_STRING=\"webalizer\ V2.23\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DHAVE_SYS_SOCKET_H=1
-DUSE_GEOIP -DUSE_BZIP -DUSE_DNS -c dns_resolv.c
dns_resolv.c:84:1: error: unknown type name 'DBC'
DBC      *geo_dbc  = NULL;                     /* GeoDB database cursor    */
^
dns_resolv.c:136:57: error: too many arguments to function call, expected 4,
have 5
   if ( (i=dns_db->get(dns_db, NULL, &query, &response, 0)) == 0)
           ~~~~~~~~~~~                                  ^
dns_resolv.c:211:10: warning: implicit declaration of function 'db_create' is
invalid in C99 [-Wimplicit-function-declaration]
   if ( (db_create(&dns_db, NULL, 0) != 0)   ||
         ^
dns_resolv.c:212:18: error: no member named 'open' in 'struct __db'
        (dns_db->open(dns_db, NULL,
         ~~~~~~  ^
dns_resolv.c:214:12: error: use of undeclared identifier 'DB_CREATE'
           DB_CREATE, 0644) != 0) )
           ^
dns_resolv.c:228:23: error: too many arguments to function call, expected 1,
have 2
   dns_db->fd(dns_db, &dns_fd);
   ~~~~~~~~~~         ^~~~~~~
dns_resolv.c:239:29: error: too many arguments to function call, expected 1,
have 2
      dns_db->close(dns_db, 0);
      ~~~~~~~~~~~~~         ^
dns_resolv.c:291:55: error: too many arguments to function call, expected 4,
have 5
            if ( (i=dns_db->get(dns_db, NULL, &q, &r, 0)) == 0 )
                    ~~~~~~~~~~~                       ^
dns_resolv.c:336:29: error: too many arguments to function call, expected 1,
have 2
      dns_db->close(dns_db, 0);
      ~~~~~~~~~~~~~         ^
dns_resolv.c:351:25: warning: format specifies type 'unsigned long long' but
the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
      printf("%llu %s ",listEntries, msg_addresses);
              ~~~~      ^~~~~~~~~~~
              %lu
dns_resolv.c:373:26: error: too many arguments to function call, expected 1,
have 2
   dns_db->close(dns_db, 0);
   ~~~~~~~~~~~~~         ^
dns_resolv.c:762:49: error: too many arguments to function call, expected 4,
have 5
         if ( dns_db->put(dns_db, NULL, &k, &v, 0) != 0 )
              ~~~~~~~~~~~                       ^
dns_resolv.c:815:18: error: no member named 'open' in 'struct __db'
        (dns_db->open(dns_db, NULL,
         ~~~~~~  ^
dns_resolv.c:817:12: error: use of undeclared identifier 'DB_RDONLY'
           DB_RDONLY, 0644) != 0) )
           ^
dns_resolv.c:829:23: error: too many arguments to function call, expected 1,
have 2
   dns_db->fd(dns_db, &dns_fd);
   ~~~~~~~~~~         ^~~~~~~
dns_resolv.c:839:29: error: too many arguments to function call, expected 1,
have 2
      dns_db->close(dns_db, 0);
      ~~~~~~~~~~~~~         ^
dns_resolv.c:865:26: error: too many arguments to function call, expected 1,
have 2
   dns_db->close(dns_db, 0);
   ~~~~~~~~~~~~~         ^
dns_resolv.c:893:16: error: no member named 'open' in 'struct __db'
   if (geo_db->open(geo_db,NULL,buf,NULL,DB_BTREE,DB_RDONLY,0)) return NULL;
       ~~~~~~  ^
dns_resolv.c:893:51: error: use of undeclared identifier 'DB_RDONLY'
   if (geo_db->open(geo_db,NULL,buf,NULL,DB_BTREE,DB_RDONLY,0)) return NULL;
                                                  ^
dns_resolv.c:896:16: error: no member named 'cursor' in 'struct __db'
   if (geo_db->cursor(geo_db,NULL,&geo_dbc,0))
       ~~~~~~  ^
dns_resolv.c:898:28: error: too many arguments to function call, expected 1,
have 2
      geo_db->close(geo_db,0);
      ~~~~~~~~~~~~~        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/german/webalizer2/work/webalizer-2.23-08
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/german/webalizer2
*** Error code 1

Stop.
make: stopped in /usr/ports/german/webalizer2

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list