Re: [ovs-dev] Mac OS X?

2016-08-22 Thread Martin Segeth
I think it is the latter. Can anyone who worked on the Mac OS port confirm?

On Sun, Aug 21, 2016 at 5:08 PM, Ben Pfaff  wrote:

> On Sun, Aug 21, 2016 at 08:12:57AM +0200, Martin Segeth wrote:
> > On Fri, Aug 19, 2016 at 10:27 PM, Lance Richardson 
> > wrote:
> >
> > > > From: "Ben Pfaff" 
> > > > To: "Martin Segeth" 
> > > > Cc: dev@openvswitch.org
> > > > Sent: Friday, August 19, 2016 3:52:05 PM
> > > > Subject: Re: [ovs-dev] Mac OS X?
> > > >
> > > > On Fri, Aug 19, 2016 at 09:44:50PM +0200, Martin Segeth wrote:
> > > > > I was trying to build OVS 2.5.0 on a Mac but get a few a errors.
> While
> > > > > researching on this topic I came across a previous thread on this
> dev
> > > > > mailing list where this was already discussed without having found
> a
> > > > > solution yet.
> > > > >
> > > > > Has anyone meanwhile managed to get it compiled on Mac OS X? If
> not, I
> > > > > guess it just does not work and would require some development
> work to
> > > get
> > > > > it ported, wouldn't it?
> > > >
> > > > I think that someone ported master to Mac OS.  Try building that.
> > >
> > > Travis does OS X builds as part of OVS CI for the master and 2.6
> branches.
> > > See https://travis-ci.org/openvswitch/ovs/builds for examples. The
> > > necessary
> > > development tools can be installed for OS X using "brew".
> > >
> > > The last time I tried, "make check" mostly passed for OS X, failures
> were
> > > generally in test cases using netdev-dummy.
> > >
> >
> > I managed to compile the master branch as suggested by Ben. The missing
> > development tools like autoconf and automake could indeed be installed
> with
> > brew.
> >
> > Though, I am unable to create a bridge interface. The userspace
> > installation readme says the datapath type is to be changed to netdev as
> > opposed to system and FreeBSD/NetBSD requires the tap driver built into
> the
> > kernel or loaded as a module.
>
> I'm not sure whether the Mac OS port is a real working port or just
> enough to compile and run the unit tests.
>
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] Mac OS X?

2016-08-21 Thread Ben Pfaff
On Sun, Aug 21, 2016 at 08:12:57AM +0200, Martin Segeth wrote:
> On Fri, Aug 19, 2016 at 10:27 PM, Lance Richardson 
> wrote:
> 
> > > From: "Ben Pfaff" 
> > > To: "Martin Segeth" 
> > > Cc: dev@openvswitch.org
> > > Sent: Friday, August 19, 2016 3:52:05 PM
> > > Subject: Re: [ovs-dev] Mac OS X?
> > >
> > > On Fri, Aug 19, 2016 at 09:44:50PM +0200, Martin Segeth wrote:
> > > > I was trying to build OVS 2.5.0 on a Mac but get a few a errors. While
> > > > researching on this topic I came across a previous thread on this dev
> > > > mailing list where this was already discussed without having found a
> > > > solution yet.
> > > >
> > > > Has anyone meanwhile managed to get it compiled on Mac OS X? If not, I
> > > > guess it just does not work and would require some development work to
> > get
> > > > it ported, wouldn't it?
> > >
> > > I think that someone ported master to Mac OS.  Try building that.
> >
> > Travis does OS X builds as part of OVS CI for the master and 2.6 branches.
> > See https://travis-ci.org/openvswitch/ovs/builds for examples. The
> > necessary
> > development tools can be installed for OS X using "brew".
> >
> > The last time I tried, "make check" mostly passed for OS X, failures were
> > generally in test cases using netdev-dummy.
> >
> 
> I managed to compile the master branch as suggested by Ben. The missing
> development tools like autoconf and automake could indeed be installed with
> brew.
> 
> Though, I am unable to create a bridge interface. The userspace
> installation readme says the datapath type is to be changed to netdev as
> opposed to system and FreeBSD/NetBSD requires the tap driver built into the
> kernel or loaded as a module.

I'm not sure whether the Mac OS port is a real working port or just
enough to compile and run the unit tests.
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] Mac OS X?

2016-08-20 Thread Martin Segeth
On Fri, Aug 19, 2016 at 10:27 PM, Lance Richardson 
wrote:

> > From: "Ben Pfaff" 
> > To: "Martin Segeth" 
> > Cc: dev@openvswitch.org
> > Sent: Friday, August 19, 2016 3:52:05 PM
> > Subject: Re: [ovs-dev] Mac OS X?
> >
> > On Fri, Aug 19, 2016 at 09:44:50PM +0200, Martin Segeth wrote:
> > > I was trying to build OVS 2.5.0 on a Mac but get a few a errors. While
> > > researching on this topic I came across a previous thread on this dev
> > > mailing list where this was already discussed without having found a
> > > solution yet.
> > >
> > > Has anyone meanwhile managed to get it compiled on Mac OS X? If not, I
> > > guess it just does not work and would require some development work to
> get
> > > it ported, wouldn't it?
> >
> > I think that someone ported master to Mac OS.  Try building that.
>
> Travis does OS X builds as part of OVS CI for the master and 2.6 branches.
> See https://travis-ci.org/openvswitch/ovs/builds for examples. The
> necessary
> development tools can be installed for OS X using "brew".
>
> The last time I tried, "make check" mostly passed for OS X, failures were
> generally in test cases using netdev-dummy.
>

I managed to compile the master branch as suggested by Ben. The missing
development tools like autoconf and automake could indeed be installed with
brew.

Though, I am unable to create a bridge interface. The userspace
installation readme says the datapath type is to be changed to netdev as
opposed to system and FreeBSD/NetBSD requires the tap driver built into the
kernel or loaded as a module.

I found tuntaposx which is a tap driver for OS X and could load this module
successfully.

mbpro:~ root# kextstat | grep tun

  1360 0xff7f80a2b000 0x7000 0x7000 net.sf.tuntaposx.tap
(1.0) 23FDB715-3D0D-3A26-ACBA-E3794C231CB7 <7 5 4 1>

  1370 0xff7f80a21000 0x7000 0x7000 net.sf.tuntaposx.tun
(1.0) 95DD963D-E23D-3B0F-8DE8-A4D2F6BFA5CC <7 5 4 1>

When I follow the instructions in the readme to create a bridge interface I
get the below error messages.

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vsctl[2414]:
ovs|1|vsctl|INFO|Called as ovs-vsctl add-br br0

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00011|ofproto|WARN|unknown datapath type system

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00012|ofproto|WARN|unknown datapath type system

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00013|ofproto|WARN|could not create datapath br0 of unknown type system

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00014|bridge|ERR|failed to create bridge br0: Address family not
supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vsctl[2417]:
ovs|1|vsctl|INFO|Called as ovs-vsctl set bridge br0 datapath_type=netdev

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00015|netdev|WARN|could not create netdev ovs-netdev of unknown type tap

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00016|dpif|WARN|failed to create datapath ovs-netdev: Address family
not supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00017|ofproto_dpif|ERR|failed to open datapath of type netdev: Address
family not supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00018|ofproto|ERR|failed to open datapath br0: Address family not
supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00019|bridge|ERR|failed to create bridge br0: Address family not
supported by protocol family
The ovs-netdev does not seem to know the interface type "tap" according to
the error message.

Was that part not yet ported to OS X?
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] Mac OS X?

2016-08-19 Thread Lance Richardson
> From: "Ben Pfaff" 
> To: "Martin Segeth" 
> Cc: dev@openvswitch.org
> Sent: Friday, August 19, 2016 3:52:05 PM
> Subject: Re: [ovs-dev] Mac OS X?
> 
> On Fri, Aug 19, 2016 at 09:44:50PM +0200, Martin Segeth wrote:
> > I was trying to build OVS 2.5.0 on a Mac but get a few a errors. While
> > researching on this topic I came across a previous thread on this dev
> > mailing list where this was already discussed without having found a
> > solution yet.
> > 
> > Has anyone meanwhile managed to get it compiled on Mac OS X? If not, I
> > guess it just does not work and would require some development work to get
> > it ported, wouldn't it?
> 
> I think that someone ported master to Mac OS.  Try building that.

Travis does OS X builds as part of OVS CI for the master and 2.6 branches.
See https://travis-ci.org/openvswitch/ovs/builds for examples. The necessary
development tools can be installed for OS X using "brew".

The last time I tried, "make check" mostly passed for OS X, failures were
generally in test cases using netdev-dummy.
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] Mac OS X?

2016-08-19 Thread Ben Pfaff
On Fri, Aug 19, 2016 at 09:44:50PM +0200, Martin Segeth wrote:
> I was trying to build OVS 2.5.0 on a Mac but get a few a errors. While
> researching on this topic I came across a previous thread on this dev
> mailing list where this was already discussed without having found a
> solution yet.
> 
> Has anyone meanwhile managed to get it compiled on Mac OS X? If not, I
> guess it just does not work and would require some development work to get
> it ported, wouldn't it?

I think that someone ported master to Mac OS.  Try building that.
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] Mac OS X?

2016-08-19 Thread Martin Segeth
Hello,

I was trying to build OVS 2.5.0 on a Mac but get a few a errors. While
researching on this topic I came across a previous thread on this dev
mailing list where this was already discussed without having found a
solution yet.

Has anyone meanwhile managed to get it compiled on Mac OS X? If not, I
guess it just does not work and would require some development work to get
it ported, wouldn't it?

Cheers,
 Martin
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] Mac OS X?

2016-03-10 Thread Ben Pfaff
Well, if anyone is willing to put in some time now, it will probably
save effort in the future...

On Fri, Mar 11, 2016 at 09:32:52AM +0900, Dan Mihai Dumitriu wrote:
> 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  wrote:
> 
> > On Thu, Mar 10, 2016 at 5:43 PM, Ben Pfaff  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/

Re: [ovs-dev] Mac OS X?

2016-03-10 Thread Lance Richardson
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 
 ^
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" 
> To: "Russell Bryant" 
> Cc: "ovs dev" 
> 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  wrote:
> 
> > On Thu, Mar 10, 2016 at 5:43 PM, Ben Pfaff  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:
&

Re: [ovs-dev] Mac OS X?

2016-03-10 Thread Dan Mihai Dumitriu
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  wrote:

> On Thu, Mar 10, 2016 at 5:43 PM, Ben Pfaff  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:
> 

Re: [ovs-dev] Mac OS X?

2016-03-10 Thread Russell Bryant
On Thu, Mar 10, 2016 at 5:43 PM, Ben Pfaff  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 nt

[ovs-dev] Mac OS X?

2016-03-10 Thread Ben Pfaff
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.

Thanks,

Ben.
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev