[one-users] Problems with scons command: "host_parser.h:228: error"

Alvaro Canales accleo at gmail.com
Tue Jun 17 07:50:41 PDT 2008


Dear users,

I'm trying to install ONE, but I get this error:

scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> g++ -o src/host/Host.o -c -g -Wall -Iinclude src/host/Host.cc
> src/host/Host.cc:449: error: declaration of C function 'void
> host_lex_destroy()' conflicts with
> host_parser.h:228: error: previous declaration 'int host_lex_destroy()'
> here
> scons: *** [src/host/Host.o] Error 1
> scons: building terminated because of errors.
>

This output occurs after adapting the Sconstruct file (following
http://www.scons.org/doc/0.98.5/HTML/scons-user/c1410.html instructions),
because I have installed all ONE requisits in /OVS/software, not a "typical"
path.

My Sconstruct file is as follows:

...
>
# This is the absolute path where the project is located
> cwd=os.getcwd()
>
> # Environment that will be applied to each scons child
> ## Old

#main_env=Environment()
> #main_env['ENV']['PATH']=os.environ['PATH']
>
## New

main_env['ENV']['PATH'] = ['/OVS/software/bin', '/bin', '/usr/bin']
>

>
## Note: doing
>
# main_env = Environment(ENV = {'PATH' : os.environ['PATH']})
>
## or

# path = ['/OVS/software/bin', '/bin', '/usr/bin']

# main_env = Environment(ENV = {'PATH' : path})

##doesn't help neither.
>

> # Add builders for flex and bison
> add_lex(main_env)
> add_bison(main_env)
>
...
>

Prior to making any change to Scosntruct file, I got this output:

scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> o src/common/ActionManager.o -c -g -Wall -Iinclude
> src/common/ActionManager.cc
> sh: o: command not found
> o src/common/Attribute.o -c -g -Wall -Iinclude src/common/Attribute.cc
> sh: o: command not found
> ar rc src/common/libnebula_common.a src/common/ActionManager.o
> src/common/Attribute.o
> ar: src/common/ActionManager.o: No such file or directory
> scons: *** [src/common/libnebula_common.a] Error 1
> scons: building terminated because of errors.
>

...which led me to inspec the file.

What do you think? Can you help me adapting the Sconstruct file or I'm wrong
and this is not the source of the problem?
All software prerequisites have been tested and are in their correct
version.
Thanks in advance!

-- 
Álvaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20080617/a3578d0e/attachment-0002.htm>


More information about the Users mailing list