Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2011 21:28:37 +0200
From:      =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To:        freebsd-sparc64@freebsd.org
Subject:   Can't compile tools/netrate/[netblast|netsend]
Message-ID:  <CA%2Bq%2BTcpSPfGi42H8B-KkPDYeVyh-r-j7kKqmDYX3gxhfvWxWtg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm trying to compile netblast on my Sun Blade 150, but I can't
because there is alignement error in the code:

[root@sparc64]/usr/src/tools/tools/netrate/netblast#make
Warning: Object directory not changed from original
/usr/src/tools/tools/netrate/netblast
cc -O2 -pipe  -std=gnu99 -fstack-protector -Wsystem-headers -Werror
-Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter
-Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c
netblast.c
cc1: warnings being treated as errors
netblast.c: In function 'blast_loop':
netblast.c:115: warning: cast increases required alignment of target type
*** Error code 1

Stop in /usr/src/tools/tools/netrate/netblast

As I'm not a C coder, and googling about alignment, I've learn that
only x86 platform "hide" this problem, but I didn't find dummy patch
for fix this kind of problem.
Does anyone have a solution ?

Thanks,

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcpSPfGi42H8B-KkPDYeVyh-r-j7kKqmDYX3gxhfvWxWtg>