Error by compiling dhcp - Software

Zhéxué M. Krawutschke sys.admin at robotum.ai
Mon Dec 13 13:27:25 UTC 2021


Hello together,

I am new here and have a problem compiling the software when I have specified the "--enable-dhcpv4o6 --enable-dhcp6" flags. If I remove the first flag, the system compiles the software without errors.

I get the following error message:

In function ‘forw_dhcpv4_response’,
inlined from ‘dhcpv6’ at dhclient.c:1802:5:
dhclient.c:1907:2: error: writing 16 bytes into a region of size 1 [-Werror=stringop-overflow=]
1907 | memcpy(ds.buffer->data + enc_opt_data.len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1908 | packet->client_addr.iabuf, 16);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../includes/dhcpd.h:97,
from dhclient.c:33:
dhclient.c: In function ‘dhcpv6’:
../includes/tree.h:62:16: note: at offset 0 to object ‘data’ with size 1 declared here
62 | unsigned char data [1];
| ^~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:526: dhclient.o] Error 1
make[2]: Leaving directory '/root/tools/software/dhcp-4.4.2-P1/client'
make[1]: *** [Makefile:666: all-recursive] Error 1
make[1]: Leaving directory '/root/tools/software/dhcp-4.4.2-P1/client'
make: *** [Makefile:496: all-recursive] Error 1

What am I possibly doing wrong here? How can I correct this error?
Best regards

Z. Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20211213/de930491/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 946 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20211213/de930491/attachment.bin>


More information about the dhcp-users mailing list