Date: Tue, 21 Feb 2017 11:35:33 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 217268] www/webalizer build fails on dns_resolv.c Message-ID: <bug-217268-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217268 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@FreeBSD.org Reporter: jonaspalm@posteo.de Assignee: dinoex@FreeBSD.org Flags: maintainer-feedback?(dinoex@FreeBSD.org) Created attachment 180182 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180182&action= =3Dedit 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=20 -I/usr/local/include -DETCDIR=3D\"/usr/local/etc\" -DGEODB_LOC=3D\"/usr/local/share/webalizer\" -DPACKAGE_NAME=3D\"webalizer\" -DPACKAGE_TARNAME=3D\"webalizer\" -DPACKAGE_VERSION=3D\"V2.23\" -DPACKAGE_STRING=3D\"webalizer\ V2.23\" -DPACKAGE_BUGREPORT=3D\"\" -DSTDC_H= EADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STR= ING_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDIN= T_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_GETOPT_H=3D1 -DHAVE_MATH_H=3D1 -DHAVE_SYS_SOCKET= _H=3D1 -DUSE_GEOIP -DUSE_BZIP -DUSE_DNS -c dns_resolv.c dns_resolv.c:84:1: error: unknown type name 'DBC' DBC *geo_dbc =3D NULL; /* GeoDB database cursor = */ ^ dns_resolv.c:136:57: error: too many arguments to function call, expected 4, have 5 if ( (i=3Ddns_db->get(dns_db, NULL, &query, &response, 0)) =3D=3D 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) !=3D 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) !=3D 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=3Ddns_db->get(dns_db, NULL, &q, &r, 0)) =3D=3D 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) !=3D 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) !=3D 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=3D] 2 warnings and 20 errors generated. *** Error code 1 Stop. make[2]: stopped in /wrkdirs/usr/ports/german/webalizer2/work/webalizer-2.2= 3-08 *** Error code 1 Stop. make[1]: stopped in /usr/ports/german/webalizer2 *** Error code 1 Stop. make: stopped in /usr/ports/german/webalizer2 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217268-13>