-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Iam running HAPRoxy with eglibc and commit
4448925930655dec57847ed41a34a24a8169d053, aka
BUILD/MINOR: listener: remove a glibc warning on accept4() introduces an
fatal error on building.
The message I get is
- --
include -DCONFIG_HAPROXY_VERSION=\"1.5-dev21-patch29-6b07bf7\"
-DCONFIG_HAPROXY_DATE=\"2013/12/17\" -c -o src/listener.o src/listener.c
In file included from src/listener.c:18:0:
include/common/accept4.h:61:8: error: static declaration of 'accept4'
follows non-static declaration
In file included from include/common/accept4.h:29:0,
from src/listener.c:18:
/srv/owrt/trunk/staging_dir/toolchain-x86_64_gcc-4.7-linaro_eglibc-2.15/lib/gcc/x86_64-openwrt-linux-gnu/4.7.1/../../../../x86_64-openwrt-linux-gnu/sys-include/sys/socket.h:222:12:
note: previous declaration of 'accept4' was here
make[3]: *** [src/listener.o] Error 1
make[3]: Leaving directory
- --
It seems that its not a good idea to include _GNU_SOURCE within eglibc,
because then the prototype
for accept4 is defined as
- --
220 This function is a cancellation point and therefore not marked with
221 __THROW. */
222 extern int accept4 (int __fd, __SOCKADDR_ARG __addr,
223 socklen_t *__restrict __addr_len, int __flags);
224 #endif
- --
I can just remove the corresponding patch. Any other ideas?
cheers
thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJS1oWpAAoJEOH/xsXYK8GtligP/iIfrk/8TzeRcHZ6p/+xqFza
GJ31ltHKayKzvp+rbcrCl0p9jOuJGD0d2x5rVDWfeapz5vfin+FdyDBdgKG7sm4z
urq1/sz0MvwoJEyqhkur0zYt6FY97B1S6a1NhZ+SLvC/QkOvQNIlnlho4tTcFkWr
xiVCF9NRTvP48YRZysi2DgVHYbQXLDlur1wpv3CKL9/wJ9TRqvafVvflvcEswvGR
yXOFxZLiBpTCo28YNxIgE725sUJm1mrJthAdv36aDBPFTm5pMCJnGwt1CPp8cWBi
Kc/VowVC4OvTOvEGV1+TB7LLgSPhWRbAcHOQUBbP6ECM0IMWBux5lFUEr/EP0gH/
h7oVqYxMiDeq4lswt3JxcYjYwgMJF9CD1DZLXlkRpiOVYUnVoMNIWznvDFV2hHWt
mVCGG5t+EUxBKiiF9/jvt6QtDHdZyibFsvC7sSuEhO6iSrUVvz6JXzLe00Doqznw
CXWlGL0GsNqmuW+O9u5rdWqhWiITkrtqNCoP2CgrASXvA2CzeWYYKfVDzM9o/uDd
67A6S/vNAZKXJmhp5igTdj80AJvIshFKZHAAwiVVbysHkhCDJ26yAyYb0nCQsuQB
ZIksDXewh96IPFu0FeT+xQ9qjW5rMPeFMjr6Ffd6fP80BWsI1sW7dYPLszAG9nJl
b+5ZsLTbi3BQ610ihr9W
=F676
-----END PGP SIGNATURE-----