Mike,

I tried with IBM's XLC 13.1.2 and these options were ignored:
-Wall -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-depreciated-declarations

I compiled it as follows:
cd ~/SRC; rm -rf stunnel-5.27; gzip -dc stunnel-5.27b3.tar.gz | tar xvf -; cd stunnel-5.27
export CFLAGS="-qstackprotect=size=0"
./configure --enable-fips --disable-ipv6 --with-threads=pthread --with-ssl=/usr
make

I didn't have to use "gxlc" (IBM's "gcc clone"), and other than the warnings for the unrecognized parameters above, it seems to work. I added the extra CFLAGS parameter to ensure stack smashing protection is enabled (disabled by default on XLC).

I can see how it would be nearly impossible to maintain compatibility with compilers from different architectures and different versions with different arguments. Thanks for the patch!

Regards,
 -Rob

On Fri, Nov 13, 2015 at 6:41 AM, Michal Trojnara <Michal.Trojnara@mirt.net> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 13.11.2015 11:46, Dagobert Michelsen wrote:
> I think this is a good idea. Other projects deal with the issue in
> a similar way. On Oracle Studio the compiler flags are basically
> ignored and issue a warning but produce a working binary, but the
> build process is cluttered with warnings. Even when you fix the
> macros this issue would stay, so restricting the checks to gcc is
> probably the best way.

Please try:
https://www.stunnel.org/downloads/beta/stunnel-5.27b3.tar.gz

Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWRcxwAAoJEC78f/DUFuAUTrEP/0uNXtDXjU3/UFbPIvw4VGWx
spvu4zceCaEGNiUndXzftN6MW6UUK6MnAxlj0l0+hQt8EMrJhRI/B+lcbTVRov8f
3Da0gGjF3ibW1/KeqIeBdjCECmov30q0nedwV3wep5EoqJ9UIRy1725JAknuFfqh
p1JadZMEtMOZWGQJFbPj244Q5vjgJIMY1kkOyl+tCvw2csKwCuO95f/Uf0HSZrkl
DTliDyCOMcWeNbuBhI11PewbLMwBKFgZl1jamdJg++zhnPKFRBW0PRY7YFQeKp08
XAxLSfr/Mo0SiK3tejdOhvYyagVTJB8lCA2vL4Fd1t1zdmmBihg/sLTqFCj6Infu
swnSBMeiM0gkv4q1bTOxFuZ4orG+ddeeCtHWC2vG9V0R5IuJZ81YVmeSuF9H+/DN
+D/vkBJPMQ0wDskQ7w0eFbGolhRv7dIeEVygDdJhxTO2N+yjYI1ArzaY8iXlYazE
BnnexNr51eu62CgFzjmkRTq0A2B143/efMpFpsycJTnxu3CH1YbHBPdTwVMT4zGT
Z4fUCN8zFPx8nDDT9zgCeMu4lUOmha+rqW8UZczrcTswPja/k/WNUXQhdwwdmGr7
+GQKjkT464XtaKjO3mq2Hxv83nn1JY5XRang0GP6Sr+HMFS/13A75mJKCpbx4oN5
gBKWKwwH/N37TV/iVEDM
=404y
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users