[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] building libevent from git on *BSD



I cloned the git tree today and tried building libevent on FreeBSD 7 and 8.

It needs netinet/in6.h but on the *BSD's that include file is in netinet6/in6.h so it can't find the definitions of in6_addr.

From config.h:

/* Define to 1 if you have the <netinet/in6.h> header file. */
/* #undef HAVE_NETINET_IN6_H */

It doesn't find netinet/in6.h.

But it does find AF_INET6 so the code is trying to compile.

Here's the output of make but probably isn't necessary.


Making all in .
/bin/sh ./libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I./compat -I./include      -g -O2 -Wall -MT evutil.lo -MD -MP -MF .deps/evutil.Tpo -c -o evutil.lo evutil.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -g -O2 -Wall -MT evutil.lo -MD -MP -MF .deps/evutil.Tpo -c evutil.c  -fPIC -DPIC -o .libs/evutil.o
evutil.c: In function 'evutil_inet_ntop':
evutil.c:385: error: dereferencing pointer to incomplete type
evutil.c:385: error: dereferencing pointer to incomplete type
evutil.c:393: error: dereferencing pointer to incomplete type
evutil.c:393: error: dereferencing pointer to incomplete type
evutil.c:394: error: dereferencing pointer to incomplete type
evutil.c:394: error: dereferencing pointer to incomplete type
evutil.c:397: error: dereferencing pointer to incomplete type
evutil.c:397: error: dereferencing pointer to incomplete type
evutil.c:398: error: dereferencing pointer to incomplete type
evutil.c:398: error: dereferencing pointer to incomplete type
evutil.c: In function 'evutil_inet_pton':
evutil.c:560: error: dereferencing pointer to incomplete type
evutil.c:561: error: dereferencing pointer to incomplete type
evutil.c: In function 'evutil_parse_sockaddr_port':
evutil.c:636: error: storage size of 'sin6' isn't known
evutil.c:636: warning: unused variable 'sin6'
evutil.c:651: error: storage size of 'sin' isn't known
evutil.c:651: warning: unused variable 'sin'
*** Error code 1

Stop in /home/pusateri/src/libevent/libevent.
*** Error code 1

Stop in /home/pusateri/src/libevent/libevent.
*** Error code 1

Stop in /home/pusateri/src/libevent/libevent.
rock% 

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.