Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicit declaration of function 'inet_ntop' on BSD/Hurd #23

Closed
kitterma opened this issue Dec 23, 2018 · 2 comments
Closed

implicit declaration of function 'inet_ntop' on BSD/Hurd #23

kitterma opened this issue Dec 23, 2018 · 2 comments

Comments

@kitterma
Copy link
Collaborator

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

@sdgathman
Copy link
Owner

Where does BSD define inet_ntop ?

@kitterma
Copy link
Collaborator Author

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.

sdgathman pushed a commit that referenced this issue Dec 24, 2018
This header is provided by GNU libc on any platform, so include it
unconditionally if __GLIBC__ is defined.

Fixes #23.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants