Skip to content

error: previous declaration 'int gethostname(char*, int)' here #3

@malaterre

Description

@malaterre

make[3]: Entering directory `/build/socket++-AfGgk6/socket++-1.12.13/socket++'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I.. -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o sockstream.lo sockstream.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c sockstream.cpp -fPIC -DPIC -o .libs/sockstream.o
In file included from sockstream.cpp:51:0:
../socket++/sockstream.h:141:21: error: 'MSG_MAXIOVLEN' was not declared in this scope
msg_maxiovlen = MSG_MAXIOVLEN
^
In file included from /usr/include/features.h:372:0,
from /usr/include/i386-kfreebsd-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-kfreebsd-gnu/c++/4.8/bits/c++config.h:426,
from /usr/include/c++/4.8/cstddef:41,
from ./local.h:7,
from ./config.h:131,
from sockstream.cpp:50:
/usr/include/unistd.h:901:61: error: declaration of C function 'int gethostname(char_, size_t)' conflicts with
extern int gethostname (char *__name, size_t __len) __THROW _nonnull ((1));
^
In file included from ./config.h:131:0,
from sockstream.cpp:50:
./local.h:93:18: error: previous declaration 'int gethostname(char
, int)' here
extern "C" int gethostname (char* hostname, int len);
^

ref:
https://buildd.debian.org/status/fetch.php?pkg=socket%2B%2B&arch=kfreebsd-i386&ver=1.12.13-2&stamp=1386755441

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions