Describe the bug
Errno header is not included leading to bug on build.
[86/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvuvinterface.c.o
[87/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvrealtime.c.o
[88/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvgvstream.c.o
[89/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvgvfakecamera.c.o
[90/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvfakecamera.c.o
[91/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvxmlschema.c.o
[92/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvstr.c.o
[93/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvnetwork.c.o
FAILED: src/libaravis-0.8.so.0.8.33.p/arvnetwork.c.o
cc -Isrc/libaravis-0.8.so.0.8.33.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/libxml2 -I/usr/include/libusb-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wstrict-prototypes -Wunused -Wunused-variable -Wdeclaration-after-statement -Wformat=2 -Wimplicit-function-declaration -Winit-self -Wmissing-include-dirs -Wmissing-prototypes -Wpointer-arith -Wformat-nonliteral -Wmaybe-uninitialized -fvisibility=hidden -fPIC -pthread -DARAVIS_COMPILATION -MD -MQ src/libaravis-0.8.so.0.8.33.p/arvnetwork.c.o -MF src/libaravis-0.8.so.0.8.33.p/arvnetwork.c.o.d -o src/libaravis-0.8.so.0.8.33.p/arvnetwork.c.o -c ../src/arvnetwork.c
In file included from ../src/arvnetwork.c:25:
../src/arvnetwork.c: In function ‘arv_socket_set_recv_buffer_size’:
../src/arvnetwork.c:469:58: error: ‘errno’ undeclared (first use in this function)
469 | _buffer_size, strerror(errno));
| ^~~~~
../src/arvdebugprivate.h:68:79: note: in definition of macro ‘arv_warning_interface’
68 | #define arv_warning_interface(...) arv_warning (ARV_DEBUG_CATEGORY_INTERFACE, __VA_ARGS__)
| ^~~~~~~~~~~
../src/arvnetwork.c:27:1: note: ‘errno’ is defined in header ‘<errno.h>’; did you forget to ‘#include <errno.h>’?
26 | #include <arvmiscprivate.h>
+++ |+#include <errno.h>
27 |
In file included from ../src/arvnetwork.c:25:
../src/arvnetwork.c:469:58: note: each undeclared identifier is reported only once for each function it appears in
469 | _buffer_size, strerror(errno));
| ^~~~~
../src/arvdebugprivate.h:68:79: note: in definition of macro ‘arv_warning_interface’
68 | #define arv_warning_interface(...) arv_warning (ARV_DEBUG_CATEGORY_INTERFACE, __VA_ARGS__)
| ^~~~~~~~~~~
[94/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvzip.c.o
[95/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvgvdevice.c.o
[96/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvuvdevice.c.o
[97/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvmisc.c.o
[98/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvwakeup.c.o
[99/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvgvcp.c.o
[100/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvgvsp.c.o
[101/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvuvstream.c.o
[102/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvuvsp.c.o
[103/183] Compiling C object src/libaravis-0.8.so.0.8.33.p/arvuvcp.c.o
[104/183] Compiling C object tests/arv-genicam-test.p/arvgenicamtest.c.o
[105/183] Compiling C object tests/arv-network-test.p/arvnetworktest.c.o
[106/183] Compiling C object tests/arv-device-test.p/arvdevicetest.c.o
ninja: build stopped: subcommand failed.
The command '/bin/sh -c wget https://github.com/AravisProject/aravis/releases/download/0.8.33/aravis-0.8.33.tar.xz && tar xvf aravis-0.8.33.tar.xz && cd aravis-0.8.33 && meson setup build && cd build && ninja && ninja install && ldconfig' returned a non-zero code: 1
To Reproduce
Try to build the latest release of aravis 0.8.33.
RUN apt install -y libxml2-dev libglib2.0-dev cmake libusb-1.0-0-dev gobject-introspection \
libgtk-3-dev gtk-doc-tools xsltproc libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \
libgirepository1.0-dev gettext
RUN pip install meson ninja
RUN wget https://github.com/AravisProject/aravis/releases/download/0.8.33/aravis-0.8.33.tar.xz && \
tar xvf aravis-0.8.33.tar.xz && cd aravis-0.8.33 && \
meson setup build && cd build && \
ninja && \
ninja install && ldconfig
Expected behavior
Should build
Describe the bug
Errno header is not included leading to bug on build.
To Reproduce
Try to build the latest release of aravis 0.8.33.
Expected behavior
Should build