[Xorp-hackers] Unable to compile on Gentoo stage3 x86 virtual machine

Igor Maravić igorm at etf.rs
Fri Mar 23 00:26:16 PDT 2012


I think that the good solution would be to automatically generate lex
and yacc files here as well.
BR
Igor

Током 22. март 2012. 17.59, Ben Greear <greearb at candelatech.com> је написао/ла:
> On 03/21/2012 03:44 PM, David Davidson wrote:
>> Hi,
>>
>> Thank you so much for your work and dedication to the XORP project! I am so pleased with this work and I wanted to say that I think it's the best routing
>> software one can get in the free world, and it rivals commercial routing in a big way, hands-down. My hat is off to those developers and maintainers that are
>> supporting this project and again, many kind thanks for working on this exciting project.
>>
>> I am hoping that somebody will be able to give me some help or point me in the right direction to get a problem fixed that I am seeing. I am trying to get XORP
>> v.1.8.5 compiled on a recent Gentoo GNU/Linux virtual machine instance but I am unable to get it compiled. I am running the following command from the root of
>> the source release:
>>
>>
>> scons prefix=/usr sysconfdir=/etc/xorp localstatedir=/var/lib/xorp
>>
>>
>> I am getting the following error message and then compilation terminates:
>>
>> ################################################
>> g++ -o obj/i686-pc-linux-gnu/policy/backend/lex.yy_policy_backend_parser.os -c -O2 -g3 -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align
>> -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.5 -Iobj/i686-pc-linux-gnu -I. -I.
>> policy/backend/lex.yy_policy_backend_parser.cc
>> cc1plus: warnings being treated as errors
>> backend.l: In function 'int yy_policy_backend_parserlex()':
>> backend.l:96:5: error: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
>> scons: *** [obj/i686-pc-linux-gnu/policy/backend/lex.yy_policy_backend_parser.os] Error 1
>> scons: building terminated because of errors.
>> ################################################
>
> We probably just need to find everywhere that calls fwrite and check it's
> return value.
>
> In the git tree, there is an option:  scons disable_werror=true
>
> that should let it compile, but we should fix the root cause as well.
>
> Thanks,
> Ben
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers



More information about the Xorp-hackers mailing list