After fixing a couple of trivial compilation issues, I stopped at
one that's probably less trivial:
libtool: compile: clang -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib
-I ./lib -I/opt/local/include -Wstrict-prototypes -Wall -Wextra
-Wno-sign-compare -Wpointer-arith -Wformat-security -Wswitch-enum
-Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers
-Wthread-safety -fno-strict-aliasing -Qunused-arguments -g -O2 -MT
lib/netdev-bsd.lo -MD -MP -MF lib/.deps/netdev-bsd.Tpo -c lib/netdev-bsd.c -o
lib/netdev-bsd.o
lib/netdev-bsd.c:35:10: fatal error: 'net/if_tap.h' file not found
#include <net/if_tap.h>
^
1 error generated.
make[2]: *** [lib/netdev-bsd.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
----- Original Message -----
> From: "Dan Mihai Dumitriu" <[email protected]>
> To: "Russell Bryant" <[email protected]>
> Cc: "ovs dev" <[email protected]>
> Sent: Thursday, March 10, 2016 7:32:52 PM
> Subject: Re: [ovs-dev] Mac OS X?
>
> Oooh, that would be great to make work. I'm so lazy, to start VMs when
> doing dev and light testing. :)
>
> On Fri, Mar 11, 2016 at 9:20 AM, Russell Bryant <[email protected]> wrote:
>
> > On Thu, Mar 10, 2016 at 5:43 PM, Ben Pfaff <[email protected]> wrote:
> >
> > > Has anyone tried building OVS on Mac OS X? If it built there, then we
> > > could enable OS X builds on travis, which would give us some BSD-style
> > > operating system test coverage.
> > >
> > > I don't have a Mac so I can't test this myself.
> > >
> >
> > I tried it on a mac I have at home. It failed. I have put in zero effort
> > trying to fix it, though.
> >
> >
> > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
> > ./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
> > -Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
> > -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition
> > -Wmissing-prototypes -Wmissing-field-initializers -Wthread-safety
> > -fno-strict-aliasing -Qunused-arguments -g -O2 -MT lib/bfd.lo -MD -MP -MF
> > lib/.deps/bfd.Tpo -c lib/bfd.c -o lib/bfd.o
> > In file included from lib/bfd.c:16:
> > In file included from ./lib/bfd.h:24:
> > In file included from ./lib/packets.h:32:
> > In file included from ./lib/unaligned.h:21:
> > ./lib/byte-order.h:27:1: error: expected ')'
> > htonll(uint64_t n)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25:
> > note: expanded from
> > macro 'htonll'
> > #define htonll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:30:
> > note:
> > expanded from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > ./lib/byte-order.h:27:1: note: to match this '('
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25:
> > note: expanded from
> > macro 'htonll'
> > #define htonll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:5:
> > note: expanded
> > from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > In file included from lib/bfd.c:16:
> > In file included from ./lib/bfd.h:24:
> > In file included from ./lib/packets.h:32:
> > In file included from ./lib/unaligned.h:21:
> > ./lib/byte-order.h:27:1: error: static declaration of
> > '__builtin_constant_p' follows non-static declaration
> > htonll(uint64_t n)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25:
> > note: expanded from
> > macro 'htonll'
> > #define htonll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6:
> > note: expanded
> > from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > ./lib/util.h:366:13: note: previous implicit declaration is here
> > return (__builtin_constant_p(n <= UINT32_MAX) && n <= UINT32_MAX
> > ^
> > In file included from lib/bfd.c:16:
> > In file included from ./lib/bfd.h:24:
> > In file included from ./lib/packets.h:32:
> > In file included from ./lib/unaligned.h:21:
> > ./lib/byte-order.h:27:1: error: definition of builtin function
> > '__builtin_constant_p'
> > htonll(uint64_t n)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25:
> > note: expanded from
> > macro 'htonll'
> > #define htonll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6:
> > note: expanded
> > from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > In file included from lib/bfd.c:16:
> > In file included from ./lib/bfd.h:24:
> > In file included from ./lib/packets.h:32:
> > In file included from ./lib/unaligned.h:21:
> > ./lib/byte-order.h:33:1: error: expected ')'
> > ntohll(ovs_be64 n)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25:
> > note: expanded from
> > macro 'ntohll'
> > #define ntohll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:30:
> > note:
> > expanded from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > ./lib/byte-order.h:33:1: note: to match this '('
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25:
> > note: expanded from
> > macro 'ntohll'
> > #define ntohll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:5:
> > note: expanded
> > from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > In file included from lib/bfd.c:16:
> > In file included from ./lib/bfd.h:24:
> > In file included from ./lib/packets.h:32:
> > In file included from ./lib/unaligned.h:21:
> > ./lib/byte-order.h:33:1: error: static declaration of
> > '__builtin_constant_p' follows non-static declaration
> > ntohll(ovs_be64 n)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25:
> > note: expanded from
> > macro 'ntohll'
> > #define ntohll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6:
> > note: expanded
> > from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > ./lib/util.h:366:13: note: previous implicit declaration is here
> > return (__builtin_constant_p(n <= UINT32_MAX) && n <= UINT32_MAX
> > ^
> > In file included from lib/bfd.c:16:
> > In file included from ./lib/bfd.h:24:
> > In file included from ./lib/packets.h:32:
> > In file included from ./lib/unaligned.h:21:
> > ./lib/byte-order.h:33:1: error: definition of builtin function
> > '__builtin_constant_p'
> > ntohll(ovs_be64 n)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25:
> > note: expanded from
> > macro 'ntohll'
> > #define ntohll(x) __DARWIN_OSSwapInt64(x)
> > ^
> >
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6:
> > note: expanded
> > from macro '__DARWIN_OSSwapInt64'
> > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
> > _OSSwapInt64(x))
> > ^
> > lib/bfd.c:1089:39: warning: format specifies type 'unsigned char' but the
> > argument has type 'int' [-Wformat]
> > bfd->name, message, p->vers_diag >> VERS_SHIFT,
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > 1 warning and 6 errors generated.
> > make[2]: *** [lib/bfd.lo] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
> > _______________________________________________
> > dev mailing list
> > [email protected]
> > http://openvswitch.org/mailman/listinfo/dev
> >
> _______________________________________________
> dev mailing list
> [email protected]
> http://openvswitch.org/mailman/listinfo/dev
>
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev