[Xorp-users] Building Xorp SVN on Linux Debian sparc fail with "cast from 'uint8_t*' to 'ArpHeader*' increases required alignment"

Jose Manuel dos Santos Calhariz jose.spam at netvisao.pt
Fri Mar 5 19:29:52 PST 2010


I am trying to compile Xorp SVN on a sparc machine running Debian.
But it fails with:

g++ -o obj/sparc64-unknown-linux-gnu/libproto/packet.os -c -O1 -g3 -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -fPIC -DXRL_PF=120 -D_FORTIFY_SOURCE=0 -DBOOST_DISABLE_THREADS -I/usr/local/include -Iobj/sparc64-unknown-linux-gnu -I. -I. libproto/packet.cccc1plus: warnings being treated as errors
libproto/packet.cc: In static member function 'static ArpHeader& ArpHeader::assign(uint8_t*)':
libproto/packet.cc:238: error: cast from 'uint8_t*' to 'ArpHeader*' increases required alignment of target type
libproto/packet.cc: In static member function 'static const ArpHeader& ArpHeader::assign(const std::vector<unsigned char, std::allocator<unsigned char> >&)':
libproto/packet.cc:248: error: cast from 'const unsigned char*' to 'const ArpHeader*' increases required alignment of target type
scons: *** [obj/sparc64-unknown-linux-gnu/libproto/packet.os] Error 1
scons: building terminated because of errors.


The gcc and g++ are:
gcc (Debian 4.4.2-9) 4.4.3 20100108 (prerelease)

      Jose Calhariz

-- 
--
Existe um mundo melhor, mas é caríssimo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20100306/d416ec4e/attachment.bin 


More information about the Xorp-users mailing list