[Xorp-hackers] problem compiling xorp - ubuntu

Aleksandar Cvjetic aleksandar.cvjetic at gmail.com
Thu Jan 7 09:42:27 PST 2010


Hi Ben,

I've got the latest version from your repo and install packages as you
suggest (not patch) and got the same:

root at aleks:~/xorp.ct# scons
scons: Reading SConscript files ...
..........................................................
In file included from libxorp/ether_compat.c:102:
./libxorp/ether_compat.h:72: error: redefinition of ‘struct ether_addr’
./libxorp/ether_compat.h:78: error: conflicting types for ‘ether_aton’
/usr/include/netinet/ether.h:36: note: previous declaration of ‘ether_aton’
was here
./libxorp/ether_compat.h:82: error: conflicting types for ‘ether_ntoa’
/usr/include/netinet/ether.h:31: note: previous declaration of ‘ether_ntoa’
was here
libxorp/ether_compat.c:114: error: conflicting types for ‘ether_ntoa’
/usr/include/netinet/ether.h:31: note: previous declaration of ‘ether_ntoa’
was here
libxorp/ether_compat.c:146: error: conflicting types for ‘ether_aton’
/usr/include/netinet/ether.h:36: note: previous declaration of ‘ether_aton’
was here
scons: *** [obj/i686-pc-linux-gnu/libxorp/ether_compat.os] Error 1
scons: building terminated because of errors.
root at aleks:~/xorp.ct#

What is the way to apply the patch? Maybe it solves my problem.

Thank you,
Alex

On Thu, Jan 7, 2010 at 5:36 PM, Ben Greear <greearb at candelatech.com> wrote:

> On 01/07/2010 08:28 AM, Aleksandar Cvjetic wrote:
>
>> So, i did all the steps but applying patch, and I've got the same error.
>> What is the way of applying the patch on xorp router? Also, I tried to
>> compile xorp version downloaded from xorp website with newer gcc version
>> (4.2.2) and I also got the same error as before:
>> ..............................................................
>> W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align
>> -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo -MD -MP
>> -MF .deps/asyncio.Tpo -c -o asyncio.lo asyncio.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 asyncio.lo -MD -MP -MF .deps/asyncio.Tpo
>> -c asyncio.cc -o asyncio.o
>> asyncio.cc:22:2: error: #ident is a deprecated GCC extension
>> make[3]: *** [asyncio.lo] Error 1
>> make[3]: Leaving directory `/home/aleksandar/Desktop/xorp-1.6/libxorp'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/aleksandar/Desktop/xorp-1.6/libxorp'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/aleksandar/Desktop/xorp-1.6'
>> make: *** [all] Error 2
>> root at aleks:~/Desktop/xorp-1.6#
>>
>
> You are not using the latest code from SVN.  Maybe try my git repository
> instead
> if you can't figure out how to get the latest from the SVN repo:
>
>
> http://www.candelatech.com/oss/xorp-ct.html
>
> Thanks,
> Ben
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20100107/2486d3fd/attachment.html 


More information about the Xorp-hackers mailing list