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

Pavlin Radoslavov pavlin at icir.org
Tue Jun 19 23:39:52 PDT 2007


Sukrit Dasgupta <sd88 at drexel.edu> wrote:

> Hi Pavlin,
> 
> Thanks for the help, still getting stuck though. Got the latest code  
> off the CVS. Getting the same error:

Interesting.
We have been using Gentoo 2006.1 on x86 with gcc-3.4.5 for cross
compilation for various CPUs including sparc64, but so far we
haven't seen this error.

Would it be possible to get a temporary login account on that
machine, because this would be the fastest way for us to investigate
the problem and fix it.

Otherwise we might have to do a number of email iterations asking
you to try different things which could be too tedious.

Thanks,
Pavlin


> -------------------------------
> 
> make  all-recursive
> make[1]: Entering directory `/root/xorp'
> Making all in libxorp
> make[2]: Entering directory `/root/xorp/libxorp'
> make  all-am
> make[3]: Entering directory `/root/xorp/libxorp'
> /bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H - 
> I. -I.. -I..    -g -Werror -W -Wall -Wwrite-strings -Wcast-qual - 
> Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 - 
> pipe -MT ipv4.lo -MD -MP -MF .deps/ipv4.Tpo -c -o ipv4.lo ipv4.cc
> g++ -DHAVE_CONFIG_H -I. -I.. -I.. -g -Werror -W -Wall -Wwrite-strings  
> -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual - 
> ftemplate-depth-25 -pipe -MT ipv4.lo -MD -MP -MF .deps/ipv4.Tpo -c  
> ipv4.cc -o ipv4.o
> cc1plus: warnings being treated as errors
> ipv4.cc: In constructor 'IPv4::IPv4(const sockaddr&)':
> ipv4.cc:48: 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:96: 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:144: 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 `/root/xorp/libxorp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/root/xorp/libxorp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/xorp'
> make: *** [all] Error 2
> 
> -------------------------------
> 
> 
> Again, thanks a lot for your time.
> 
> Regards,
> Sukrit
> 
> 
> 
> On Jun 19, 2007, at 1:55 PM, Pavlin Radoslavov wrote:
> 
> >> 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
> 
> _______________________________________________
> 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