Skip to content

0.6.3 does not love OS X #7

@DomT4

Description

@DomT4

Build failures. Build failures galore. Tried with both clang and gcc to no avail.

This is the failure:

/bin/sh ../../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I../.. -I../../libinfinity  -I../.. -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/gsasl/1.8.0/include -I/usr/include/libxml2     -g -O2 -c -o libinfinity_common_la-inf-protocol.lo `test -f 'inf-protocol.c' || echo './'`inf-protocol.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../libinfinity -I../.. -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/gsasl/1.8.0/include -I/usr/include/libxml2 -g -O2 -c inf-native-socket.c  -fno-common -DPIC -o .libs/libinfinity_common_la-inf-native-socket.o
inf-name-resolver.c:304:14: error: use of undeclared identifier 'T_SRV'
  if(type != T_SRV)
             ^
inf-name-resolver.c:465:3: error: use of undeclared identifier 'HEADER'
  HEADER* header;
  ^
inf-name-resolver.c:465:11: error: use of undeclared identifier 'header'
  HEADER* header;
          ^
inf-name-resolver.c:486:26: error: use of undeclared identifier 'C_IN'
  len = res_query(query, C_IN, T_SRV, ansbuf, sizeof(ansbuf));
                         ^
inf-name-resolver.c:501:19: error: use of undeclared identifier 'HEADER'
  if(len < sizeof(HEADER))
                  ^
inf-name-resolver.c:509:25: error: use of undeclared identifier 'HEADER'
  cur = ansbuf + sizeof(HEADER);
                        ^
inf-name-resolver.c:511:3: error: use of undeclared identifier 'header'
  header = (HEADER*)msg;
  ^
inf-name-resolver.c:511:13: error: use of undeclared identifier 'HEADER'
  header = (HEADER*)msg;
            ^
inf-name-resolver.c:511:20: error: expected expression
  header = (HEADER*)msg;
                   ^
inf-name-resolver.c:512:23: error: use of undeclared identifier 'header'
  query_count = ntohs(header->qdcount);
                      ^
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                       ^
inf-name-resolver.c:512:23: error: use of undeclared identifier 'header'
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                                                      ^
/usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro '__DARWIN_OSSwapConstInt16'
    ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
                                 ^
inf-name-resolver.c:512:23: error: use of undeclared identifier 'header'
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                                                      ^
/usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro '__DARWIN_OSSwapConstInt16'
                (((__uint16_t)(x) & 0x00ff) << 8)))
                               ^
inf-name-resolver.c:512:23: error: use of undeclared identifier 'header'
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                                                                        ^
inf-name-resolver.c:513:24: error: use of undeclared identifier 'header'
  answer_count = ntohs(header->ancount);
                       ^
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                       ^
inf-name-resolver.c:513:24: error: use of undeclared identifier 'header'
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                                                      ^
/usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro '__DARWIN_OSSwapConstInt16'
    ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
                                 ^
inf-name-resolver.c:513:24: error: use of undeclared identifier 'header'
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                                                      ^
/usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro '__DARWIN_OSSwapConstInt16'
                (((__uint16_t)(x) & 0x00ff) << 8)))
                               ^
inf-name-resolver.c:513:24: error: use of undeclared identifier 'header'
/usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
#define ntohs(x)        __DARWIN_OSSwapInt16(x)
                                             ^
/usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                                                                        ^
inf-name-resolver.c:525:20: error: use of undeclared identifier 'QFIXEDSZ'
    if(cur + len + QFIXEDSZ > end)
                   ^
inf-name-resolver.c:531:18: error: use of undeclared identifier 'QFIXEDSZ'
    cur += len + QFIXEDSZ;
                 ^
19 errors generated.
make[3]: *** [libinfinity_common_la-inf-name-resolver.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../libinfinity -I../.. -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/gsasl/1.8.0/include -I/usr/include/libxml2 -g -O2 -c inf-protocol.c  -fno-common -DPIC -o .libs/libinfinity_common_la-inf-protocol.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../libinfinity -I../.. -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/gsasl/1.8.0/include -I/usr/include/libxml2 -g -O2 -c inf-native-socket.c -o libinfinity_common_la-inf-native-socket.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../libinfinity -I../.. -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/gsasl/1.8.0/include -I/usr/include/libxml2 -g -O2 -c inf-protocol.c -o libinfinity_common_la-inf-protocol.o >/dev/null 2>&1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions