Forum

OpenBSD 5.1 stop in make

Heiko
10 May 2012, 12:20
Hiawatha version: 8.2
Operating System: OpenBSD 5.1 GENERIC.MP

Hallo Hugo,

make fails. More Information:

# cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/source/hiawatha-8.2/build
# make
[ 5%] Built target cgi-wrapper
[ 50%] Built target polarssl
[ 51%] Building C object CMakeFiles/hiawatha.dir/src/cache.c.o
In file included from /usr/source/hiawatha-8.2/src/libip.h:16,
from /usr/source/hiawatha-8.2/src/cache.c:25:
/usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside parameter list
/usr/include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside parameter list
In file included from /usr/source/hiawatha-8.2/src/cache.c:25:
/usr/source/hiawatha-8.2/src/libip.h:35: error: invalid application of 'sizeof' to incomplete type 'struct in6_addr'
*** Error code 1

Stop in /usr/source/hiawatha-8.2/build (line 77 of CMakeFiles/hiawatha.dir/build.make).
*** Error code 1

Stop in /usr/source/hiawatha-8.2/build (line 95 of CMakeFiles/Makefile2).
*** Error code 1


/usr/include/arpa/inet.h
...
__BEGIN_DECLS
in_addr_t inet_addr(const char *);
int inet_aton(const char *, struct in_addr *);
in_addr_t inet_lnaof(struct in_addr);
struct in_addr inet_makeaddr(in_addr_t , in_addr_t);
char * inet_neta(in_addr_t, char *, size_t)
__attribute__((__bounded__(__string__,2,3)));
in_addr_t inet_netof(struct in_addr);
in_addr_t inet_network(const char *);
char *inet_net_ntop(int, const void *, int, char *, size_t)
__attribute__((__bounded__(__string__,4,5)));
int inet_net_pton(int, const char *, void *, size_t)
__attribute__((__bounded__(__string__,3,4)));
char *inet_ntoa(struct in_addr);
int inet_pton(int, const char *, void *);
const char *inet_ntop(int, const void *, char *, socklen_t)
__attribute__ ((__bounded__(__string__,3,4)));
unsigned int inet_nsap_addr(const char *, unsigned char *, int);
char *inet_nsap_ntoa(int, const unsigned char *, char *);
__END_DECLS
...
[quote]How can I solve this?
Thank you.
Greetings,
Heiko
Hugo Leisink
10 May 2012, 14:32
In libip.h, add the following code under "#include <arpa/inet.h>":
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
This topic has been closed.