[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: socket functions on HP-NonStop
From: |
Bruno Haible |
Subject: |
Re: socket functions on HP-NonStop |
Date: |
Thu, 23 Dec 2010 15:05:23 +0100 |
User-agent: |
KMail/1.9.9 |
Joachim Schmitz wrote:
> Incompatible prototype for inet_ntop
> source='test-getaddrinfo.c' object='test-getaddrinfo.o' libtool=no
> DEPDIR=.deps depmode=none /bin/sh ./../build-aux/depcomp cc -DHAVE_CONFIG_H
> -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. -I../gllib
> -I./../gllib -I/usr/local/include -g -Wnowarn -c -o test-getaddrinfo.o
> test-getaddrinfo.c
> extern const char *inet_ntop (int af, const void *restrict src,
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/./../gllib/arpa/inet.h", line
> 129: error(235):
> declaration is incompatible with
> "const char *inet_ntop(int, const void *, char *, size_t)" (declared
> at line 421 of "/usr/include/netdb.h")
>
> and connect, bind, sendto, setsockopt (socklen_t vs. size_t), 'fixed' it in
> gllib/sys_socket.in.h (brute force, "#define socklen_t size_t")
> source='test-sys_select-c++.cc' object='test-sys_select-c++.o' libtool=no
> DEPDIR=.deps depmode=none /bin/sh ./../build-aux/depcomp c++ -DHAVE_CONFIG_H
> -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. -I../gllib
> -I./../gllib -I/usr/local/include -Wnowarn -c -o test-sys_select-c++.o
> test-sys_select-c++.cc
> _GL_CXXALIAS_SYS (connect, int,
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/../gllib/sys/socket.h", line
> 560: error(232):
> a value of type "extern "C" int (*)(int, const sockaddr *, size_t)"
> cannot be used to initialize an entity of type
> "int (*)(int, const sockaddr *, socklen_t)"
>
> _GL_CXXALIAS_SYS (bind, int,
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/../gllib/sys/socket.h", line
> 615: error(232):
> a value of type "extern "C" int (*)(int, const sockaddr *, size_t)"
> cannot be used to initialize an entity of type
> "int (*)(int, const sockaddr *, socklen_t)"
>
> _GL_CXXALIAS_SYS (sendto, ssize_t,
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/../gllib/sys/socket.h", line
> 837: error(232):
> a value of type "extern "C" ssize_t (*)(int, const void *, size_t,
> int, const sockaddr *, size_t)" cannot be used to initialize an
> entity of type "ssize_t (*)(int, const void *, size_t, int, const
> sockaddr *, socklen_t)"
>
> _GL_CXXALIAS_SYS (setsockopt, int, (int fd, int level, int optname,
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/../gllib/sys/socket.h", line
> 865: error(232):
> a value of type
> "extern "C" int (*)(int, int, int, const void *, size_t)" cannot be
> used to initialize an entity of type
> "int (*)(int, int, int, const void *, socklen_t)"
Is socklen_t already defined in the system or libfloss includes on this system?
Or does its definition come from gnulib (either from config.h or gnulib's
sys/socket.h replacement)?
Bruno
- RE: HOST_NAME_MAX on HP-NonStop, (continued)
- Re: porting stdioext to HP-NonStop, Bruno Haible, 2010/12/23
- RE: porting stdioext to HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: <sys/select.h> HP-NonStop, Bruno Haible, 2010/12/24
- RE: <sys/select.h> HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/23
- RE: printf.o HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/24
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/25
- Re: socket functions on HP-NonStop,
Bruno Haible <=
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/24
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/26
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/27
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/26
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/26
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/27
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/27