Re: NSD 4.1.19rc1

"W.C.A. Wijngaards" <[email protected]>
Newsgroups gmane.network.dns.nsd.general
Message-ID <[email protected]>
Hi Andreas,

On 10/12/17 15:02, A. Schulze wrote:
> 
> W.C.A. Wijngaards:
> 
>> NSD 4.1.19rc1 is available:
>> Bug Fixes
>> - Fix warnings emitted by clang for --enable-packed.  Alignment is not
>>   a problem for x86_64, don't enable packed when the platform
>>   requires aligned access.
> 
> 
> Hello,
> 
> that version work well on Debian 9 but on my older SLES11 plattform I
> can't compile:
> 
>  gcc -I. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -W
> -Wall -Wextra -Wdeclaration-after-statement
> -Wno-address-of-packed-member -c answer.c
>  cc1: error: unrecognized command line option
> "-Wno-address-of-packed-member"
> 
> it's gcc-4.3.4

Thanks for the test!  The patch is this:  (I intend to include it in the
release of 4.1.19).  The patch tests for support of the compiler option
(which is only for --enable-packed).

Index: configure.ac
===================================================================
--- configure.ac	(revision 4808)
+++ configure.ac	(working copy)
@@ -889,7 +889,7 @@
 case "$enable_packed" in
 	yes)
 	AC_DEFINE_UNQUOTED([PACKED_STRUCTS], [], [Define this to use packed
structure alignment.])
-	CFLAGS="$CFLAGS -Wno-address-of-packed-member"
+	ACX_CHECK_COMPILER_FLAG(Wno-address-of-packed-member, [CFLAGS="$CFLAGS
-Wno-address-of-packed-member"])
 	;;
 	no|*)
 	;;


Best regards, Wouter

> 
> Andreas
> 
> 
> 
> _______________________________________________
> nsd-users mailing list
> [email protected]
> https://open.nlnetlabs.nl/mailman/listinfo/nsd-users

_______________________________________________
nsd-users mailing list
[email protected]
https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE7fqj8spObrBWga+On28cLX4EX40FAlouQ9IACgkQn28cLX4E
X43OmA//cD2QU1WKBKVJVlYQs6gQ95107kIGIG9qiRqjJ7DjqDv+vaKQjQn5t1DS
967yRuUrarBPcDFBcdeUvEfDtf1qU544X0Noe+WFUxaEizSKRCkqS0RgmFuCJIkT
Ur9zogcV4GMaDKXOAss3ykWiAu8JUzTVHL/38tkV17wEcYkXKWpxtohdjyYYB1p3
8DfjW3zERQ2Erpxj1OkpYNiKxp5gowBtsKuVOdcAwVHquVCUCwP20m0tAL/teINM
g5ZgPUGyiBphOX0WyVcBLcUhfNc6yPmKBZdm4x/w1zq/oXH1nRoe8XVYVeBYHRZr
CGzcJt5t1KXcP8IwL+awE8G/z7DEU5YyFnDINXsGW0adW5zFgoMZp/oSSNASK6h8
ONbJ+e7Ufl03pb/V6KLZ2eGc5I5Nx8Kc/4axn0cosMduDqSOpStr7MQv++b8K1Hr
5enrDZWFqh2wZUz8lKJl8zLOIuHHAthehHR3Ryp4tfSmvIDzZkYJ2DQKfUW66LvJ
9QWSP/pa+0YrZOjbHaJePrndCl0OGctXFA8J9/YXsBvm/DVP2cDZk+6VOIfHJlCi
COTiW3NGcyUTe9eRBZ4dCEeRVwVa3NpuL1dmKBelyiOhcf9WORyZpwjqhg/iMiRz
6ve4nPY1kcwRbi+Dck64/+oysKJKlT9y5E93c26DBaWPgyxvnEU=
=yL4g
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.