[erlang-questions] make from otp src error with `in6addr_any` `in6addr_loopback`

huang alex alexhuang1984@REDACTED
Wed Sep 19 15:08:58 CEST 2012


Hi all:

I used to build erlang from otp src, every thing was fine.

This time I got this error

gcc -g -O2 -I/home/huanghuang/otp/erts/x86_64-unknown-linux-gnu
-fno-tree-copyrename  -D_GNU_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement
-DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS
-D_POSIX_THREAD_SAFE_FUNCTIONS  -DLIBSCTP=libsctp.so.1
-Ix86_64-unknown-linux-gnu/opt/smp -Ibeam -Isys/unix -Isys/common
-Ix86_64-unknown-linux-gnu -Izlib  -Ipcre -Ihipe -I../include
-I../include/x86_64-unknown-linux-gnu -I../include/internal
-I../include/internal/x86_64-unknown-linux-gnu -Idrivers/common
-Idrivers/unix -c drivers/common/inet_drv.c -o
obj/x86_64-unknown-linux-gnu/opt/smp/inet_drv.o
drivers/common/inet_drv.c:1236:30: error: static declaration of
‘in6addr_any’ follows non-static declaration
/usr/include/netinet/in.h:215:30: note: previous declaration of
‘in6addr_any’ was here
drivers/common/inet_drv.c:1246:30: error: static declaration of
‘in6addr_loopback’ follows non-static declaration
/usr/include/netinet/in.h:216:30: note: previous declaration of
‘in6addr_loopback’ was here
make[3]: *** [obj/x86_64-unknown-linux-gnu/opt/smp/inet_drv.o] Error 1
make[3]: Leaving directory `/home/huanghuang/otp/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/home/huanghuang/otp/erts/emulator'
make[1]: *** [smp] Error 2
make[1]: Leaving directory `/home/huanghuang/otp/erts'

Is it related to something about ipv6? Do I have to install any other
depedencies?

Thanks.

黄璜         (Alex Huang)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120919/2614cc84/attachment.htm>


More information about the erlang-questions mailing list