monome / serialosc

multi-device, bonjour-capable monome OSC server
http://monome.org/docs/serialosc/osc
Other
146 stars 32 forks source link

serialosc zeroconf build failes on OSX #41

Closed kaosbeat closed 6 years ago

kaosbeat commented 6 years ago

I tried building serialosc on OSC 10.13.2. libmonome was succesfully installed and serialosc successfully ./waf configure -ed

./waf build genrates this output:

[37/51] Compiling src/serialosc-device/zeroconf/common.c
../src/common/ipc.c:109:28: error: taking address of packed member 'devnode' of class or structure 'sosc_ipc_msg::(anonymous union)::(anonymous)' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
                if (read_strdata(fd, 1, &buf->connection.devnode))
                                         ^~~~~~~~~~~~~~~~~~~~~~~
../src/common/ipc.c:117:28: error: taking address of packed member 'serial' of class or structure 'sosc_ipc_msg::(anonymous union)::(anonymous)' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
                if (read_strdata(fd, 2, &buf->device_info.serial,
                                         ^~~~~~~~~~~~~~~~~~~~~~~
../src/common/ipc.c:118:21: error: taking address of packed member 'friendly' of class or structure 'sosc_ipc_msg::(anonymous union)::(anonymous)' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
                                 &buf->device_info.friendly))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.

Waf: Leaving directory `~/serialosc/build'

any ideas?

Thanks!

artfwo commented 6 years ago

Thanks! This has already been reported as https://github.com/monome/serialosc/issues/28 though, so I'm closing this as a duplicate.