[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    Re: [Linux-ha-dev] New error on FreeBSD with latest CVS version..
From:       Alan Robertson <alanr () unix ! sh>
Date:       2001-08-15 2:14:12
[Download RAW message or body]

Matthew Soffen wrote:
> 
> I got the latest version today, and when I went to build it I got:
> 
> gmake[3]: Entering directory
> `/usr/local/src/linux-ha/lib/plugins/HBcomm'
> /bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../../linux-ha -I../../../include -I../../../include      -
> I../../../linux-ha -I../../../linux-ha
> -I../../../libltdl -I../../../libltdl                   -I../../../l
> ib/upmls -I../../../lib/upmls                   -I../../.. -I../../..
> -I/usr/local/include -I/usr/local/include/glib12  -g -O2 -Wal
> l -Wmissing-prototypes          -Wmissing-declarations
> -Wstrict-prototypes             -Wshadow                -Wpointer-ar
> ith             -Wwrite-strings                 -Wcast-qual
> -Wcast-align                -Wnested-externs -Winline  -c bcast.c
> rm -f .libs/bcast.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../linux-ha -I../../../include
> -I../../../include -I../../../linux-ha -I../../../linux-ha -I../.
> ./../libltdl -I../../../libltdl -I../../../lib/upmls
> -I../../../lib/upmls -I../../.. -I../../.. -I/usr/local/include
> -I/usr/local/in
> clude/glib12 -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes -Wshadow -Wpointer-arith -Wwrite-strings -
> Wcast-qual -Wcast-align -Wnested-externs -Winline -c  -fPIC -DPIC
> bcast.c -o .libs/bcast.lo
> bcast.c: In function `if_get_broadaddr':
> bcast.c:622: storage size of `ifr' isn't known
> bcast.c:638: sizeof applied to an incomplete type
> bcast.c:622: warning: unused variable `ifr'
> gmake[3]: *** [bcast.lo] Error 1
> 
> Basically  I've tracked this error down to net/if.h not being included.
> So, based on the file lib/plugins/HBcomm/bcast.c,   SO_BINDTODEVICE
> isn't set (and it isn't in any of my header files). My gut feeling is
> that something isn't "quite" right with the exclusion. so since this
> file isn't included, then the struct ifreq isn't set.
> 
> So what do we do ?  Arbitrarily include the file ?   net/if.h does
> appear to be standard in FreeBSD and Solaris ....

It was probably included before.  I combined two files and got rid of some
includes I didn't need in Linux.  Notice the 2nd copyright notice near the
bottom of the file ;-)  It's fixed in CVS now.

	Sorry!


	-- Alan Robertson
	   alanr@unix.sh
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.community.tummy.com
http://lists.community.tummy.com/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic