Compiling Erlang on OpenSolaris

Jason Frame <>
Wed Dec 2 13:14:58 CET 2009


Hi,

I am trying to compile Erlang R13B03 on OpenSolaris build 127. Configure
seems to run fine, then when running gmake the build fails with this error
mentioning that IFHWADDRLEN is undeclared. Any ideas on how to get Erlang
compiling on OpenSolaris?

I would be happy to use a binary for R13 if there is one available for
OpenSolaris as well, however the only binaries I have seen have been for
older versions.

gcc -g -O2 -I/export/home/jason/otp_src_R13B03/erts/i386-pc-solaris2.11
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DERTS_SMP -DHAVE_CONFIG_H
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement
-DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
 -DLIBSCTP= -Ii386-pc-solaris2.11/opt/smp -Ibeam -Isys/unix -Isys/common
-Ii386-pc-solaris2.11 -Izlib  -Ipcre -Ihipe -I../include
-I../include/i386-pc-solaris2.11 -I../include/internal
-I../include/internal/i386-pc-solaris2.11 -Idrivers/common -Idrivers/unix -c
drivers/common/inet_drv.c -o obj/i386-pc-solaris2.11/opt/smp/inet_drv.o
drivers/common/inet_drv.c: In function `inet_ctl_ifget':
drivers/common/inet_drv.c:4170: error: `IFHWADDRLEN' undeclared (first use
in this function)
drivers/common/inet_drv.c:4170: error: (Each undeclared identifier is
reported only once
drivers/common/inet_drv.c:4170: error: for each function it appears in.)
drivers/common/inet_drv.c:4173: error: structure has no member named
`ifr_hwaddr'
make[3]: *** [obj/i386-pc-solaris2.11/opt/smp/inet_drv.o] Error 1
make[3]: Leaving directory `/export/home/jason/otp_src_R13B03/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/export/home/jason/otp_src_R13B03/erts/emulator'
make[1]: *** [smp] Error 2
make[1]: Leaving directory `/export/home/jason/otp_src_R13B03/erts'
gmake: *** [emulator] Error 2


More information about the erlang-questions mailing list