We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On alpine:latest (atm 3.21) it fails to build with the Dockerfile:
alpine:latest
... #8 [builder 2/4] RUN apk add --update --no-cache make gcc musl-dev linux-headers #8 0.491 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz #8 0.595 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz #8 0.851 (1/15) Installing libgcc (14.2.0-r4) #8 0.867 (2/15) Installing jansson (2.14-r4) #8 0.877 (3/15) Installing libstdc++ (14.2.0-r4) #8 0.906 (4/15) Installing zstd-libs (1.5.6-r2) #8 0.923 (5/15) Installing binutils (2.43.1-r1) #8 1.054 (6/15) Installing libgomp (14.2.0-r4) #8 1.078 (7/15) Installing libatomic (14.2.0-r4) #8 1.086 (8/15) Installing gmp (6.3.0-r2) #8 1.102 (9/15) Installing isl26 (0.26-r1) #8 1.147 (10/15) Installing mpfr4 (4.2.1-r0) #8 1.164 (11/15) Installing mpc1 (1.3.1-r1) #8 1.173 (12/15) Installing gcc (14.2.0-r4) #8 2.641 (13/15) Installing linux-headers (6.6-r1) #8 2.863 (14/15) Installing make (4.4.1-r2) #8 2.880 (15/15) Installing musl-dev (1.2.5-r8) #8 3.005 Executing busybox-1.37.0-r8.trigger #8 3.029 OK: 176 MiB in 30 packages #8 DONE 3.9s #9 [builder 3/4] COPY * /root/ #9 DONE 0.1s #10 [builder 4/4] RUN cd /root/ && make && find /root #10 0.285 cc -Wall -Wextra -g -O0 -c -o wsdd2.o wsdd2.c #10 0.313 wsdd2.c: In function 'open_ep': #10 0.313 wsdd2.c:305:64: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] #10 0.313 305 | struct endpoint *ep = (struct endpoint *) calloc(sizeof(*ep), 1); #10 0.313 | ^ #10 0.313 wsdd2.c:305:64: note: earlier argument should specify number of elements, later size of each element #10 0.315 wsdd2.c: In function 'netlink_recv': #10 0.315 wsdd2.c:546:56: error: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] #10 0.315 546 | struct msghdr msg = { &sa, sizeof sa, &iov, 1, NULL, 0, 0 }; #10 0.315 | ^~~~ #10 0.315 wsdd2.c:546:56: note: (near initialization for 'msg.__pad1') #10 0.315 wsdd2.c:546:16: warning: missing initializer for field '__pad2' of 'struct msghdr' [-Wmissing-field-initializers] #10 0.315 546 | struct msghdr msg = { &sa, sizeof sa, &iov, 1, NULL, 0, 0 }; #10 0.315 | ^~~~~~ #10 0.315 In file included from /usr/include/net/if.h:27, #10 0.315 from wsdd.h:27, #10 0.315 from wsdd2.c:25: #10 0.315 /usr/include/sys/socket.h:39:13: note: '__pad2' declared here #10 0.315 39 | int __pad2; #10 0.315 | ^~~~~~ #10 0.326 make: *** [<builtin>: wsdd2.o] Error 1 #10 ERROR: process "/bin/sh -c cd /root/ && make && find /root" did not complete successfully: exit code: 2 ------ > [builder 4/4] RUN cd /root/ && make && find /root: 0.315 wsdd2.c:546:16: warning: missing initializer for field '__pad2' of 'struct msghdr' [-Wmissing-field-initializers] 0.315 546 | struct msghdr msg = { &sa, sizeof sa, &iov, 1, NULL, 0, 0 }; 0.315 | ^~~~~~ 0.315 In file included from /usr/include/net/if.h:27, 0.315 from wsdd.h:27, 0.315 from wsdd2.c:25: 0.315 /usr/include/sys/socket.h:39:13: note: '__pad2' declared here 0.315 39 | int __pad2; 0.315 | ^~~~~~ 0.326 make: *** [<builtin>: wsdd2.o] Error 1 ------
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
On
alpine:latest
(atm 3.21) it fails to build with the Dockerfile:The text was updated successfully, but these errors were encountered: