tcpdump mailing list archives
compiler warnings on AIX and Solaris
From: Denis Ovsienko via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sat, 24 Jul 2021 00:11:27 +0100
--- Begin Message --- From: Denis Ovsienko <denis () ovsienko info>
Date: Sat, 24 Jul 2021 00:11:27 +0100
Hello list. As it turns out, on Solaris 9 it is impossible to compile current tcpdump with CFLAGS=-Werror because missing/getopt_long.c yields a few warnings (attached). As far as the current revisions of this file go in FreeBSD, NetBSD and OpenBSD, FreeBSD seems to be the closest and just a bit newer than the current tcpdump copy (OpenBSD revision 1.22 -> 1.26). However, it seems unlikely that porting the newer revision would make the warnings go away, because, for example, permute_args() has not changed at all. The same problem stands on AIX 7, and in addition there is an issue specific to XL C compiler, in that ./configure detects that the compiler does not support -W, but then proceeds to flex every -Wxxxx option anyway, which the compiler treats as a soft error, so ./configure takes each option as supported, so at the compile time every -Wxxxx option ends up in CFLAGS, so for every .c file xlc yields 15 warnings (see attached). It works, but looks messy. So for now the build matrix scripts do not specify -Werror for these two cases. There are more related corner cases of varying severity, some of which I might have time to describe later. Cheers. -- Denis OvsienkoAttachment: warnings_solaris9.txt
Description:Attachment: warnings_aix7.txt
Description:
--- End Message ---
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- compiler warnings on AIX and Solaris Denis Ovsienko via tcpdump-workers (Jul 23)
- Re: compiler warnings on AIX and Solaris Guy Harris via tcpdump-workers (Jul 24)
- Message not available
- Re: compiler warnings on AIX and Solaris Denis Ovsienko via tcpdump-workers (Jul 24)
- Message not available
- Re: compiler warnings on AIX and Solaris Denis Ovsienko via tcpdump-workers (Jul 25)
- build failures on Solaris Denis Ovsienko via tcpdump-workers (Jul 31)
- Re: build failures on Solaris Guy Harris via tcpdump-workers (Jul 31)
- Message not available
- Re: build failures on Solaris Denis Ovsienko via tcpdump-workers (Jul 31)
- Message not available
- Message not available
- Re: build failures on Solaris Guy Harris via tcpdump-workers (Aug 01)
- Message not available
- Message not available
- Message not available
- Re: build failures on Solaris Denis Ovsienko via tcpdump-workers (Aug 01)
- Message not available
- Message not available
- Message not available
- Re: build failures on Solaris Guy Harris via tcpdump-workers (Aug 01)