Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Error by compiling dhcp - Software
      (=?utf-8?Q?Zh=C3=A9xu=C3=A9_M._Krawutschke?=)
   2. Error compiling DHCP......
      (=?utf-8?Q?Zh=C3=A9xu=C3=A9_M._Krawutschke?=)
   3. Re: Error compiling DHCP...... (Glenn Satchell)


----------------------------------------------------------------------

Message: 1
Date: Mon, 13 Dec 2021 14:27:25 +0100
From: "=?utf-8?Q?Zh=C3=A9xu=C3=A9_M._Krawutschke?="
        <sys.ad...@robotum.ai>
To: dhcp-users@lists.isc.org
Subject: Error by compiling dhcp - Software
Message-ID: <752e2503-7ff2-4724-9c36-bd8e667ff8cd@Canary>
Content-Type: text/plain; charset="utf-8"

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-0001.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-0001.bin>

------------------------------

Message: 2
Date: Mon, 13 Dec 2021 14:30:47 +0100
From: "=?utf-8?Q?Zh=C3=A9xu=C3=A9_M._Krawutschke?="
        <sys.ad...@robotum.ai>
To: dhcp-users@lists.isc.org
Subject: Error compiling DHCP......
Message-ID: <2a93b602-acab-4ca4-a0c9-b4982c9ff156@Canary>
Content-Type: text/plain; charset="utf-8"

Hello together,

I am new here and have a problem compiling the software, the system compiles 
the software with errors.

I get the following error message:

gcc -DHAVE_CONFIG_H -I. -I../includes -I.. 
-DLOCALSTATEDIR='"/usr/local/NamedService/dhcp/db"' -g -O2 -Wall -Werror 
-fno-strict-aliasing -I../includes 
-I/root/tools/software/dhcp-4.4.2-P1/bind/include -MT dhcpd-mdb6.o -MD -MP -MF 
.deps/dhcpd-mdb6.Tpo -c -o dhcpd-mdb6.o `test -f 'mdb6.c' || echo './'`mdb6.c
mdb6.c: In function ?create_prefix6?:
mdb6.c:1948:3: error: writing 16 bytes into a region of size 1 
[-Werror=stringop-overflow=]
1948 | memcpy(new_ds.buffer->data + ds.len, &tmp, sizeof(tmp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../includes/dhcpd.h:97,
from mdb6.c:175:
../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:781: dhcpd-mdb6.o] Error 1
make[2]: Leaving directory '/root/tools/software/dhcp-4.4.2-P1/server'
make[1]: *** [Makefile:970: all-recursive] Error 1
make[1]: Leaving directory '/root/tools/software/dhcp-4.4.2-P1/server'
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/1a8e6e6b/attachment-0001.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/1a8e6e6b/attachment-0001.bin>

------------------------------

Message: 3
Date: Tue, 14 Dec 2021 16:22:51 +1100
From: Glenn Satchell <glenn.satch...@uniq.com.au>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: Error compiling DHCP......
Message-ID: <53cc59a2e55e9ed1c226b37e3eae0...@uniq.com.au>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Zh?xu?

I think some background information might help here. Can you reply with 
the answers to these questions?

        * confirm the DHCP version is 4.4.1-P1?
        * What operating system, and version? eg centos, ubuntu, bsd, etc
        * gcc version
        * the complete command line used with ./configure

This may help someone identify what's going on.

regards,

Glenn

On 2021-12-14 00:30, Zh?xu? M. Krawutschke wrote:

> Hello together,
> 
> I am new here and have a problem compiling the software, the system 
> compiles the software with errors.
> 
> I get the following error message:
> 
> gcc -DHAVE_CONFIG_H -I. -I../includes  -I.. 
> -DLOCALSTATEDIR='"/usr/local/NamedService/dhcp/db"'   -g -O2  -Wall 
> -Werror -fno-strict-aliasing -I../includes 
> -I/root/tools/software/dhcp-4.4.2-P1/bind/include -MT dhcpd-mdb6.o -MD 
> -MP -MF .deps/dhcpd-mdb6.Tpo -c -o dhcpd-mdb6.o `test -f 'mdb6.c' || 
> echo './'`mdb6.c
> 
> mdb6.c: In function 'create_prefix6':
> 
> mdb6.c:1948:3: error: writing 16 bytes into a region of size 1 
> [-Werror=stringop-overflow=]
> 
> 1948 |   memcpy(new_ds.buffer->data + ds.len, &tmp, sizeof(tmp));
> 
> |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> In file included from ../includes/dhcpd.h:97,
> 
> from mdb6.c:175:
> 
> ../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:781: dhcpd-mdb6.o] Error 1
> 
> make[2]: Leaving directory '/root/tools/software/dhcp-4.4.2-P1/server'
> 
> make[1]: *** [Makefile:970: all-recursive] Error 1
> 
> make[1]: Leaving directory '/root/tools/software/dhcp-4.4.2-P1/server'
> 
> make: *** [Makefile:496: all-recursive] Error 1
> 
> What am I possibly doing wrong here? How can I correct this error?
> Best regards
> 
> Z. Matthias
> 
> _______________________________________________
> ISC funds the development of this software with paid support 
> subscriptions. Contact us at https://www.isc.org/contact/ for more 
> information.
> 
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20211214/f49d594e/attachment.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 158, Issue 4
******************************************

Reply via email to