Re: Application does not compile when using GNUNET_log_strerror
Christian Grothoff <[email protected]> Sun, 1 Sep 2019 15:20:36 +0200
| Newsgroups | gmane.network.gnunet.bugs,gmane.network.gnunet.devel |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============3330937397962480433== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RBsGBKWKEfqQRC6AsUe0cFSBj9Lus72Hk" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RBsGBKWKEfqQRC6AsUe0cFSBj9Lus72Hk Content-Type: multipart/mixed; boundary="vfLUoc2p589fimVzGLk8ofEShb1rQnMIY"; protected-headers="v1" From: Christian Grothoff <[email protected]> To: Alessio Vanni <[email protected]>, [email protected], gnunet-developers <[email protected]> Message-ID: <[email protected]> Subject: Re: [bug-GNUnet] Application does not compile when using GNUNET_log_strerror References: <[email protected]> In-Reply-To: <[email protected]> --vfLUoc2p589fimVzGLk8ofEShb1rQnMIY Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable First of all, thanks for reporting. We had discussions about eliminating plibc entirely, now that W10 has "Linux" support and can presumably run GNU/UNIX code natively --- and given that nobody has been really maintaining the W32 port for a while. So maybe the best answer is for us to get rid of plibc entirely, replacing STRERROR by strerror (etc.), and that way avoid this kind of pitfall in the future? Any objections? (cc'ing gnunet-developers to gather opinions) Happy hacking! Christian > the compiler fails saying that STRERROR (all caps) is undefined. >=20 > The problem is caused by the fact that GNUnet's headers assume to have > plibc.h always available, but that header is not included within those > headers. >=20 > The GNUnet documentation doesn't say if it should be included when > building an application or not (neither gnunet-ext nor the handbook), s= o > it's unclear how to proceed. plibc.h should probably be always include= d > by placing the #include directive within one of the installed GNUnet > headers. >=20 > Sincerely, > A.V. >=20 > _______________________________________________ > Bug-GNUnet mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-gnunet >=20 --vfLUoc2p589fimVzGLk8ofEShb1rQnMIY-- --RBsGBKWKEfqQRC6AsUe0cFSBj9Lus72Hk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE2EI7yzJseQcDOSnHk55r4eKfw8wFAl1rxaQACgkQk55r4eKf w8zyQg/+LBeN5XJ4RhtPz/t968qlZBLnWZrjOZWi5xPtFJjok4sIWXxSCTq45dUQ 0J4LrtQXohfrmgeAEYqZr5+RG7wi5evDjLkcsRxekOEf+PpLOC+Sh0j9KLasifdZ 3o7jBd9OMfWXlNRV5ylVMazAucxsPZE8TMEnA9Astqs1JC3p/HESIqBonpOgy63R ZGPp+eMVOj3ZkzcYG7AZfATkTUys0CEHQaSyqNSrsv4rBqJoFfcBjWrGzMjNDxpx eBYQkMKyxzROuPhCRwti5kfb/mDuWKEggGN2H1TMhwd9oIMW7eUsUCt6iqMN40gF 2k+Rrns1pqKYKcXnZfr2Kv4EPvAcr+bcCkzeXHpl+SoV+dUjT3/94Owc2Nj2MGKh hdP4oc3OjEu9WK4S5Wo61a2D1GkFPt1v5XAd2Rgu6FRHTrk6lcpogb1CPI71ikdh Gmj/VOqzaneu5vpYxbSc0hO6FlJuzMUAtAiU4hJvGMOc4jzO0M1HvVodfJEgp/Fb b/Ph2tXJUaPqI0PYB6UX8gwW5SoB7UHk5QXpFDkG/G8sKPjuPGUnyDme0IsQsmrf MJCP7J92Lw71MJVS3lQlWj6doZTj3tR9UPAMIgASMdvabdNyNYBAv4vLQCiBo/a4 mZcisKmcvHrYTLkqUiEJxo09Xf3mlMcfWz46JzdVpm1jcylySQ4= =17TW -----END PGP SIGNATURE----- --RBsGBKWKEfqQRC6AsUe0cFSBj9Lus72Hk-- --===============3330937397962480433== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQnVnLUdOVW5l dCBtYWlsaW5nIGxpc3QKQnVnLUdOVW5ldEBnbnUub3JnCmh0dHBzOi8vbGlzdHMuZ251Lm9yZy9t YWlsbWFuL2xpc3RpbmZvL2J1Zy1nbnVuZXQK --===============3330937397962480433==--