sdgathman / pymilter

Python bindings for libmilter api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

implicit declaration of function 'inet_ntop' on BSD/Hurd

kitterma opened this issue · comments

x86_64-kfreebsd-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMAX_ML_REPLY=32 -I/usr/include/python2.7 -c miltermodule.c -o build/temp.gnukfreebsd-10.3-0-amd64-x86_64-2.7/miltermodule.o
miltermodule.c: In function 'makeip6addr':
miltermodule.c:742:18: warning: implicit declaration of function 'inet_ntop' [-Wimplicit-function-declaration]
const char *s = inet_ntop(AF_INET6, &addr->sin6_addr, buf, sizeof buf);
^~~~~~~~~
miltermodule.c:742:18: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
x86_64-kfreebsd-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-prcMRy/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.gnukfreebsd-10.3-0-amd64-x86_64-2.7/miltermodule.o -L/usr/lib/libmilter -lmilter -o build/lib.gnukfreebsd-10.3-0-amd64-x86_64-2.7/milter.so

Where does BSD define inet_ntop ?

As far as I can tell, it's /usr/include/arpa/inet.h, just like on Linux, so no idea why this is happening. Maybe the Debian porters have an idea. I'll let you know if I find anything out.