pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45499: lang/erlang: compile error under OpenIndiana



>Number:         45499
>Category:       pkg
>Synopsis:       lang/erlang: compile error under OpenIndiana
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 19 18:35:00 +0000 2011
>Originator:     Andrey N. Oktyabrski
>Release:        OpenIndiana 151a
>Organization:
>Environment:
$ uname -a
SunOS thinkpot 5.11 oi_151a i86pc i386 i86pc Solaris
$ isainfo 
amd64 i386
$ which gcc
/usr/bin/gcc
$ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.1/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.1/configure --prefix=/usr/gcc/4.6 
--libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib 
--mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info 
--with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/opt/dtbld/bin/ld-wrapper --without-gnu-ld 
--enable-languages=c,c++,fortran,objc --enable-shared --disable-static 
--enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu 
--with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls
Thread model: posix
gcc version 4.6.1 (GCC)
>Description:
$ cd /usr/pkgsrc/lang/erlang
$ bmake
...
gcc -O -I/usr/include -I/usr/pkg/include/ncurses 
-I/tmp/pkgwrk/lang/erlang/work/otp_src_R14B03/erts/i386-pc-solaris2.11  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename -I/usr/include 
-I/usr/pkg/include/ncurses -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE 
-D_REENTRANT -DPOSIX_THREADS -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:4174:6: error: 'struct ifreq' has no member named 
'ifr_hwaddr'
drivers/common/inet_drv.c: In function 'packet_inet_ctl':
drivers/common/inet_drv.c:9569:11: warning: variable 'timeout' set but not used 
[-Wunused-but-set-variable]
make[3]: *** [obj/i386-pc-solaris2.11/opt/smp/inet_drv.o] Error 1
make[3]: Leaving directory 
`/tmp/pkgwrk/lang/erlang/work/otp_src_R14B03/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory 
`/tmp/pkgwrk/lang/erlang/work/otp_src_R14B03/erts/emulator'
make[1]: *** [smp] Error 2
make[1]: Leaving directory `/tmp/pkgwrk/lang/erlang/work/otp_src_R14B03/erts'
gmake: *** [emulator] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/erlang
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/erlang
>How-To-Repeat:
$ cd /usr/pkgsrc/lang/erlang
$ bmake
>Fix:
It happens because SIOCGIFHWADDR defined. When I #undef it before first use, 
compilation success. I do not know how to fix it.



Home | Main Index | Thread Index | Old Index