[Xorp-users] Compiling Problem Sun Blade 150+Ubuntu 7.04 Server

Pavlin Radoslavov pavlin at icir.org
Tue Jun 19 10:55:44 PDT 2007


> I am trying to compile XORP on a Sun Blade running Ubuntu 7.04 and am  
> running into the following error

It seems like you are using XORP-1.3 which is a bit out of date.
Version 1.4 contains a number of alignment related fixes which
fixes the particular problem shown below.

However, on Ubuntu 7.04 specifically there was a small compilation
issue related to its header files. The issue was fixed few days ago
in XORP CVS.

Hence I would recommend that you use the latest XORP code from CVS.
The following URL contains instructions how to get the code using
anon. CVS:

http://www.xorp.org/cvs.html

If it doesn't compile for you then please let us know and we will
try to fix the problem.

Regards,
Pavlin

> ---------------------------------------------
> 
> 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
> 
> 
> 
> 
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list