dns/dsc on FreeBSD 11.2-p9 and 12.0
Philippe Maechler
pmaechler-ml at glattnet.ch
Wed Apr 17 12:01:25 UTC 2019
Hello again FreeBSD Ports People
In the meantime I updated the system to BSD 12.0-p3 and also updated perl5
from 5.26 to 5.28. unfortunately with almost the same error.
In file included from config_hooks.c:43:
In file included from ./pcap.h:40:
In file included from ./md_array.h:49:
In file included from ./dns_message.h:107:
/usr/include/arpa/nameser.h:114:9: error: unknown type name 'u_char'; did
you mean 'char'?
typedef u_char ns_nname[NS_MAXNNAME];
^
/usr/include/arpa/nameser.h:115:15: error: unknown type name 'u_char'; did
you mean 'char'?
typedef const u_char *ns_nname_ct;
^
/usr/include/arpa/nameser.h:116:9: error: unknown type name 'u_char'; did
you mean 'char'?
typedef u_char *ns_nname_t;
^
/usr/include/arpa/nameser.h:128:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char *_msg, *_eom;
^
/usr/include/arpa/nameser.h:130:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char *_sections[ns_s_max];
^
/usr/include/arpa/nameser.h:133:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char *_msg_ptr;
^
/usr/include/arpa/nameser.h:142:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char *dnptrs[25];
^
/usr/include/arpa/nameser.h:143:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char **lastdnptr;
^
/usr/include/arpa/nameser.h:168:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char * rdata;
^
/usr/include/arpa/nameser.h:179:2: error: unknown type name 'u_int'
u_int ttl;
^
/usr/include/arpa/nameser.h:181:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char * rdata;
^
/usr/include/arpa/nameser.h:587:1: error: unknown type name 'u_int'
u_int ns_get16(const u_char *);
^
/usr/include/arpa/nameser.h:587:23: error: unknown type name 'u_char'; did
you mean 'char'?
u_int ns_get16(const u_char *);
^
/usr/include/arpa/nameser.h:588:1: error: unknown type name 'u_long'; did
you mean 'long'?
u_long ns_get32(const u_char *);
^
/usr/include/arpa/nameser.h:588:24: error: unknown type name 'u_char'; did
you mean 'char'?
u_long ns_get32(const u_char *);
^
/usr/include/arpa/nameser.h:589:30: error: expected ')'
void ns_put16(u_int, u_char *);
^
/usr/include/arpa/nameser.h:589:15: note: to match this '('
void ns_put16(u_int, u_char *);
^
/usr/include/arpa/nameser.h:589:16: error: a parameter list without types is
only allowed in a function definition
void ns_put16(u_int, u_char *);
^
/usr/include/arpa/nameser.h:590:31: error: expected ')'
void ns_put32(u_long, u_char *);
^
/usr/include/arpa/nameser.h:590:15: note: to match this '('
void ns_put32(u_long, u_char *);
^
/usr/include/arpa/nameser.h:590:16: error: a parameter list without types is
only allowed in a function definition
void ns_put32(u_long, u_char *);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[5]: *** [Makefile:602: config_hooks.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
country_index.c:126:21: warning: implicitly declaring library function
'memcpy' with type 'void *(void *, const void *, unsigned long)'
[-Wimplicit-function-declaration]
memcpy(_mmcountry, entry_data.utf8_string, len);
^
country_index.c:126:21: note: include the header <string.h> or explicitly
provide a declaration for 'memcpy'
country_index.c:251:28: warning: implicitly declaring library function
'strlen' with type 'unsigned long (const char *)'
[-Wimplicit-function-declaration]
return hashendian(key, strlen(key), 0);
^
country_index.c:251:28: note: include the header <string.h> or explicitly
provide a declaration for 'strlen'
country_index.c:257:12: warning: implicitly declaring library function
'strcasecmp' with type 'int (const char *, const char *)'
[-Wimplicit-function-declaration]
return strcasecmp(a, b);
^
country_index.c:257:12: note: include the header <strings.h> or explicitly
provide a declaration for 'strcasecmp'
country_index.c:294:13: warning: implicitly declaring library function
'exit' with type 'void (int) __attribute__((noreturn))'
[-Wimplicit-function-declaration]
exit(1);
^
country_index.c:294:13: note: include the header <stdlib.h> or explicitly
provide a declaration for 'exit'
4 warnings generated.
gmake[5]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0/src'
gmake[4]: *** [Makefile:727: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0/src'
gmake[3]: *** [Makefile:423: all] Error 2
gmake[3]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0/src'
gmake[2]: *** [Makefile:420: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/dns/dsc
*** Error code 1
Stop.
make: stopped in /usr/ports/dns/dsc
===>>> make build failed for dns/dsc
===>>> Aborting update
===>>> You can restart from the point of failure with this command line:
portmaster <flags> dns/dsc
I do get the same error on 5 different FreeBSD machines. Two of them are
11.2 and two are 12.0 and the 5th machine is a freshly installed 12.0
FreeBSD without any ports.
The only thing I haven't, tested is in poudriere. there it may work, but I
doubt it
Has anyone an idea on how to solve this?
Best Regards
Philippe
From: Philippe Maechler <pmaechler-ml at glattnet.ch>
Sent: Wednesday, March 27, 2019 4:47 PM
To: 'ports at freebsd.org' <ports at freebsd.org>
Subject: dsc on FreeBSD 11.2-p9
Hello FreeBSD Ports
I'm trying to install dns-oarc's dsc (dns/dsc) on our nameservers, but fail
and have little to no clue how I can fix that.
The last few lines that gets on the console are:
depbase=`echo country_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I. -I. -I/usr/local/include -O2 -pipe
-fstack-protector -fno-strict-aliasing -I/usr/local/include -MT
country_index.o -MD -MP -MF $depbase.Tpo -c -o country_index.o
country_index.c &&\
mv -f $depbase.Tpo $depbase.Po
/usr/include/arpa/nameser.h:140:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char *dnptrs[25];
^
/usr/include/arpa/nameser.h:141:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char **lastdnptr;
^
/usr/include/arpa/nameser.h:166:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char * rdata;
^
/usr/include/arpa/nameser.h:177:2: error: unknown type name 'u_int'
u_int ttl;
^
/usr/include/arpa/nameser.h:179:8: error: unknown type name 'u_char'; did
you mean 'char'?
const u_char * rdata;
^
/usr/include/arpa/nameser.h:585:1: error: unknown type name 'u_int'
u_int ns_get16(const u_char *);
^
/usr/include/arpa/nameser.h:585:23: error: unknown type name 'u_char'; did
you mean 'char'?
u_int ns_get16(const u_char *);
^
/usr/include/arpa/nameser.h:586:1: error: unknown type name 'u_long'; did
you mean 'long'?
u_long ns_get32(const u_char *);
^
/usr/include/arpa/nameser.h:586:24: error: unknown type name 'u_char'; did
you mean 'char'?
u_long ns_get32(const u_char *);
^
/usr/include/arpa/nameser.h:587:30: error: expected ')'
void ns_put16(u_int, u_char *);
^
/usr/include/arpa/nameser.h:587:15: note: to match this '('
void ns_put16(u_int, u_char *);
^
/usr/include/arpa/nameser.h:587:16: error: a parameter list without types is
only allowed in a function definition
void ns_put16(u_int, u_char *);
^
/usr/include/arpa/nameser.h:588:31: error: expected ')'
void ns_put32(u_long, u_char *);
^
/usr/include/arpa/nameser.h:588:15: note: to match this '('
void ns_put32(u_long, u_char *);
^
/usr/include/arpa/nameser.h:588:16: error: a parameter list without types is
only allowed in a function definition
void ns_put32(u_long, u_char *);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[5]: *** [Makefile:602: config_hooks.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
country_index.c:126:21: warning: implicitly declaring library function
'memcpy' with type 'void *(void *, const void *, unsigned long)'
[-Wimplicit-function-declaration]
memcpy(_mmcountry, entry_data.utf8_string, len);
^
country_index.c:126:21: note: include the header <string.h> or explicitly
provide a declaration for 'memcpy'
country_index.c:251:28: warning: implicitly declaring library function
'strlen' with type 'unsigned long (const char *)'
[-Wimplicit-function-declaration]
return hashendian(key, strlen(key), 0);
^
country_index.c:251:28: note: include the header <string.h> or explicitly
provide a declaration for 'strlen'
country_index.c:257:12: warning: implicitly declaring library function
'strcasecmp' with type 'int (const char *, const char *)'
[-Wimplicit-function-declaration]
return strcasecmp(a, b);
^
country_index.c:257:12: note: include the header <strings.h> or explicitly
provide a declaration for 'strcasecmp'
country_index.c:294:13: warning: implicitly declaring library function
'exit' with type 'void (int) __attribute__((noreturn))'
[-Wimplicit-function-declaration]
exit(1);
^
country_index.c:294:13: note: include the header <stdlib.h> or explicitly
provide a declaration for 'exit'
4 warnings generated.
gmake[5]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0/src'
gmake[4]: *** [Makefile:727: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0/src'
gmake[3]: *** [Makefile:423: all] Error 2
gmake[3]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0/src'
gmake[2]: *** [Makefile:420: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/dns/dsc
*** Error code 1
Stop.
make: stopped in /usr/ports/dns/dsc
===>>> make build failed for dns/dsc
===>>> Aborting update
===>>> Update for dns/dsc failed
===>>> Aborting update
I already tried with MAKE_JOBS_UNSAFE=yes (same error), updatet the ports
tree, updated all other ports and tried the rebuild. I get the same error on
4 different 11.2-BSD Boxes. Is there anything else I can try to solve this
issue?
If you need more information e.g. a complete build log, don't hesitate to
ask me
Tia
philippe
More information about the freebsd-ports
mailing list