[PATCH firmware-utils] zycast: disable build on non-Linux OS

Sander Vanheule sander at svanheule.net
Wed Feb 14 04:12:13 PST 2024


Hi Tomasz,

On Mon, 2024-02-12 at 17:18 +0100, Tomasz Maciej Nowak wrote:
> From: Tomasz Maciej Nowak <tmn505 at gmail.com>
> 
> Fails with following errors on MacOS builder:
> 
> [ 96%] Building C object CMakeFiles/zycast.dir/src/zycast.c.o
> /usr/bin/gcc   -I/Users/runner/work/firmware-utils/firmware-utils/openwrt/tools/include
> -I/usr/local/opt/libressl/include -O3 -DNDEBUG -isysroot
> /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
> /MacOSX13.1.sdk -mmacosx-version-min=12.7   -Wall -Wno-unused-parameter -MD -MT
> CMakeFiles/zycast.dir/src/zycast.c.o -MF CMakeFiles/zycast.dir/src/zycast.c.o.d -o
> CMakeFiles/zycast.dir/src/zycast.c.o -c /Users/runner/work/firmware-utils/firmware-
> utils/src/zycast.c
> /Users/runner/work/firmware-utils/firmware-utils/src/zycast.c:205:35: error: use of
> undeclared identifier 'MSG_MORE'
>                 if (send(sockfd, phdr, HDRSIZE, MSG_MORE | MSG_DONTROUTE) < 0)
>                                                 ^
> /Users/runner/work/firmware-utils/firmware-utils/src/zycast.c:285:39: error: use of
> undeclared identifier 'SO_BINDTODEVICE'
>                         if (setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE,  optarg,
> strlen(optarg)) < 0)
>                                                            ^
> 2 errors generated.
> 
> These seem to be Linux only definitions and there are no equivalents,
> so leave rewrite of zycast to someone interested in running it on
> other OS.
> 
> Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
> ---


Thanks for the patch, pushed to firmware-utils/master. I've trimmed the error output in
the commit message, so it doesn't contain the full paths and all compiler options. 


Best,
Sander



More information about the openwrt-devel mailing list