[Xorp-users] Compiling Problem Sun Blade 150+Ubuntu 7.04 Server
Sukrit Dasgupta
sd88 at drexel.edu
Tue Jun 19 09:57:07 PDT 2007
Hi ,
I am trying to compile XORP on a Sun Blade running Ubuntu 7.04 and am
running into the following error
---------------------------------------------
make[3]: Entering directory `/home/sukrit/xorp-1.3/libxorp'
source='ipv4.cc' object='ipv4.lo' libtool=yes \
depfile='.deps/ipv4.Plo' tmpdepfile='.deps/ipv4.TPlo' \
depmode=gcc3 /bin/bash ../config/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -
I. -I.. -I.. -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -
Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -
pipe -c -o ipv4.lo `test -f ipv4.cc || echo './'`ipv4.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings -
Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual -
ftemplate-depth-25 -pipe -c ipv4.cc -MT ipv4.lo -MD -MP -MF .deps/
ipv4.TPlo -o ipv4.o
cc1plus: warnings being treated as errors
ipv4.cc: In constructor 'IPv4::IPv4(const sockaddr&)':
ipv4.cc:50: warning: cast from 'const sockaddr*' to 'const
sockaddr_in*' increases required alignment of target type
ipv4.cc: In member function 'size_t IPv4::copy_out(sockaddr&) const':
ipv4.cc:98: warning: cast from 'sockaddr*' to 'sockaddr_in*'
increases required alignment of target type
ipv4.cc: In member function 'size_t IPv4::copy_in(const sockaddr&)':
ipv4.cc:146: warning: cast from 'const sockaddr*' to 'const
sockaddr_in*' increases required alignment of target type
make[3]: *** [ipv4.lo] Error 1
make[3]: Leaving directory `/home/sukrit/xorp-1.3/libxorp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sukrit/xorp-1.3/libxorp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sukrit/xorp-1.3'
make: *** [all] Error 2
---------------------------------------------
Scanning the mailing list showed that this was a problem a long time
ago because of old GCC. I am running 4.1.2 on Ubuntu.
Also, if it is of any significance. I successfully compiled XORP on
Fedora 6 using GCC 4.1.1.
Seem to be stuck in a corner here and I really need to get XORP up on
the Sun. Or move to Quagga :-( (Which I dont want to)
Regards,
Sukrit
More information about the Xorp-users
mailing list