NetBSD Problem Report #45499

From  Wed Oct 19 18:34:01 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id B883F63D5B5
	for <>; Wed, 19 Oct 2011 18:34:01 +0000 (UTC)
Message-Id: <>
Date: Wed, 19 Oct 2011 18:34:00 +0000 (UTC)
Subject: lang/erlang: compile error under OpenIndiana
X-Send-Pr-Version: www-1.0

>Number:         45499
>Category:       pkg
>Synopsis:       lang/erlang: compile error under OpenIndiana
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 19 18:35:00 +0000 2011
>Closed-Date:    Thu Dec 15 10:48:41 +0000 2011
>Last-Modified:  Thu Dec 15 10:48:41 +0000 2011
>Originator:     Andrey N. Oktyabrski
>Release:        OpenIndiana 151a
$ uname -a
SunOS thinkpot 5.11 oi_151a i86pc i386 i86pc Solaris
$ isainfo 
amd64 i386
$ which gcc
$ /usr/bin/gcc -v
Using built-in specs.
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)
$ 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

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

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



Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-When: Thu, 24 Nov 2011 11:54:06 +0000
Problem on OpenIndiana.

State-Changed-From-To: open->closed
State-Changed-When: Thu, 15 Dec 2011 10:48:41 +0000
Fixed by patches/patch-erts_emulator_drivers_common_inet_drv.c.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.