[dsc] DSC 2.8.1 Installation issues

Leo Vandewoestijne dsc at dns.company
Mon Jul 15 11:14:29 UTC 2019


Hi,


>   --with-extra-cflags="-I /usr/local/include"
>   --with-extra-ldflags="-L/usr/local/lib"
>
That first line was already in the port (2.8.0).
The second line is not ...yet;
I added that while trying to upgrade the port to 2.8.1;
but I get type errors as included below of this email.
Looks to me that looks like...

#include <sys/types.h>

...is missing here and there?
However, when testing the port with poudriere, I didn't encounter any problem.


I opened a PR here:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239220
Please provide feedback; if it's fine or needs modification.


-- 

Met vriendelijke groet,
With kind regards,


Leo Vandewoestijne
<***@dns.company>
<www.dns.company>








===>  Building for dsc-2.8.1
gmake[2]: Entering directory '/usr/ports/dns/dsc/work/dsc-2.8.1'
Making all in src
gmake[3]: Entering directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src'
gmake  all-recursive
gmake[4]: Entering directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src'
Making all in test
gmake[5]: Entering directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src/test'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src/test'
gmake[5]: Entering directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src'
depbase=`echo asn_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT asn_index.o -MD -MP -MF 
$depbase.Tpo -c -o asn_index.o asn_index.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo certain_qnames_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT certain_qnames_index.o -MD 
-MP -MF $depbase.Tpo -c -o certain_qnames_index.o certain_qnames_index.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo client_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT client_index.o -MD -MP -MF 
$depbase.Tpo -c -o client_index.o client_index.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo client_subnet_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT client_subnet_index.o -MD 
-MP -MF $depbase.Tpo -c -o client_subnet_index.o client_subnet_index.c &&\
mv -f $depbase.Tpo $depbase.Po
asn_index.c:101:9: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
        free(_asn);
        ^
asn_index.c:370:13: warning: implicitlydepbase=`echo compat.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT compat.o -MD -MP -MF 
$depbase.Tpo -c -o compat.o compat.c &&\
mv -f $depbase.Tpo $depbase.Po
 declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
            exit(1);
            ^
asn_index.c:370:13: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
depbase=`echo config_hooks.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT config_hooks.o -MD -MP -MF 
$depbase.Tpo -c -o config_hooks.o config_hooks.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo country_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -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
depbase=`echo daemon.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT daemon.o -MD -MP -MF 
$depbase.Tpo -c -o daemon.o daemon.c &&\
mv -f $depbase.Tpo $depbase.Po
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:112:9: error: unknown type name 'u_char'; did you mean 'char'?
typedef u_char ns_nname[NS_MAXNNAME];
        ^
/usr/include/arpa/nameser.h:113:15: error: unknown type name 'u_char'; did you mean 'char'?
typedef const u_char *ns_nname_ct;
              ^
/usr/include/arpa/nameser.h:114:9: error: unknown type name 'u_char'; did you mean 'char'?
typedef u_char *ns_nname_t;
        ^
2 warnings generated/usr/include/arpa/nameser.h:126:8: error: unknown type name 'u_char'; did you mean 'char'?
        const u_char    *_msg, *_eom;
              ^
.
/usr/include/arpa/nameser.h:128:8: error: unknown type name 'u_char'; did you mean 'char'?
        const u_char    *_sections[ns_s_max];
              ^
/usr/include/arpa/nameser.h:131:8: depbase=`echo dns_ip_version_index.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.    -I.  -I/usr/local/include  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -MT dns_ip_version_index.o -MD 
-MP -MF $depbase.Tpo -c -o dns_ip_version_index.o dns_ip_version_index.c &&\
mv -f $depbase.Tpo $depbase.Po
error: unknown type name 'u_char'; did you mean 'char'?
        const u_char    *_msg_ptr;
              ^
country_index.c:126/usr/include/arpa/nameser.h:140:8: :21:error : unknown type name 'u_char'; did you mean 'char'?
        const u_char    *dnptrs[25];
              ^
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'
/usr/include/arpa/nameser.h:141:8: error: unknown type name 'u_char'; did you mean 'char'?
        const u_char    **lastdnptr;
              ^
country_index.c:251:28/usr/include/arpa/nameser.h:166:8: error: unknown type name 'u_char'; did you mean 'char'?
        const u_char *  rdata;
              ^
: warning/usr/include/arpa/nameser.h:177:2: error: unknown type name 'u_int'
        u_int           ttl;
        ^
: implicitly declaring library/usr/include/arpa/nameser.h:179:8: error: unknown type name 'u_char'; did you mean 'char'?
        const u_char *  rdata;
              ^
 function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
    return hashendian(key, strlen(key), 0);
                           ^
/usr/include/arpa/nameser.h:585:1: error: unknown type name 'u_int'
u_int           ns_get16(const u_char *);
^
country_index.c:251:28: note/usr/include/arpa/nameser.h:585:23: error: unknown type name 'u_char'; did you mean 'char'?
u_int           ns_get16(const u_char *);
                               ^
: include the header <string.h> or explicitly provide a declaration for 'strlen'
/usr/include/arpa/nameser.h:586:1: error: unknown type name 'u_long'; did you mean 'long'?
u_long          ns_get32(const u_char *);
^
country_index.c:257:12: warning/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 *);
                         ^
: implicitly declaring libraryfatal error: too many errors emitted, stopping now [-ferror-limit=]
 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'
20 errors generated.
gmake[5]: *** [Makefile:602: config_hooks.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
4 warnings generated.
gmake[5]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src'
gmake[4]: *** [Makefile:727: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src'
gmake[3]: *** [Makefile:423: all] Error 2
gmake[3]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.1/src'
gmake[2]: *** [Makefile:420: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/dns/dsc/work/dsc-2.8.1'
===> 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





More information about the dsc mailing list