Version française
Home     About     Download     Resources     Contact us    
Browse thread
Neko 1.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Gushee <mgushee@h...>
Subject: Build errors (was Re: [Caml-list] Neko 1.0)
> I have released Neko 1.0 which is an intermediate programming language with

Okay, I think I have taken care of all the prerequisites, and tried 
compiling Neko, but there were a couple of errors:

  1) lib.n depends on test.n, which is not provided. I created
     libs/test.neko using your "hello world" code, and that seems to
     work, but ...

  2) Nasty looking error that I don't know how to interpret (see 'make'
     output below) ... unless ... I noticed a warning about the Apache
     version. Is that the problem? I have Apache 2.0.54, and would
     really rather not downgrade if I can avoid it.

Also, I am running Arch Linux 0.7, with glibc 2.3.4 and gcc 3.4.3.

--
Matt Gushee
Englewood, CO, USA


cd vm; make -f ../Makefile libneko.so
make[1]: Entering directory `/.devel/local.src/neko-1.0/vm'
gcc -O3 -I../vm -D__linux__ -c alloc.c
gcc -O3 -I../vm -D__linux__ -c builtins.c
gcc -O3 -I../vm -D__linux__ -c callback.c
gcc -O3 -I../vm -D__linux__ -c context.c
gcc -O3 -I../vm -D__linux__ -c interp.c
gcc -O3 -I../vm -D__linux__ -c load.c
gcc -O3 -I../vm -D__linux__ -c objtable.c
gcc -O3 -I../vm -D__linux__ -c others.c
gcc -shared -lm -ldl -lgc -o ../bin/libneko.so alloc.o builtins.o 
callback.o context.o interp.o load.o objtable.o others.o
make[1]: Leaving directory `/.devel/local.src/neko-1.0/vm'
cd vm; make -f ../Makefile bin/nekovm
make[1]: Entering directory `/.devel/local.src/neko-1.0/vm'
gcc -O3 -I../vm -D__linux__ -c main.c
gcc -Wl,-Bsymbolic -L../bin -lneko  -o ../bin/nekovm main.o
make[1]: Leaving directory `/.devel/local.src/neko-1.0/vm'
cd neko; make -f ../Makefile neko
make[1]: Entering directory `/.devel/local.src/neko-1.0/neko'
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib ast.ml
ocamllex lexer.mll
58 states, 2020 transitions, table size 8428 bytes
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib lexer.ml
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib parser.ml
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib printer.ml
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib bytecode.ml
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib compile.ml
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib plugin.ml
ocamlopt -pp camlp4o -c -I ../extlib-dev -I +extLib main.ml
ocamlopt -o ../bin/neko -I ../extlib-dev -I +extLib extLib.cmxa ast.cmx 
lexer.cmx parser.cmx printer.cmx bytecode.cmx compile.cmx plugin.cmx 
main.cmx
rm lexer.ml
make[1]: Leaving directory `/.devel/local.src/neko-1.0/neko'
cd libs; make -f ../Makefile libs.n
make[1]: Entering directory `/.devel/local.src/neko-1.0/libs'
../bin/neko test.neko
make[1]: Leaving directory `/.devel/local.src/neko-1.0/libs'
cd libs; make -f ../Makefile libs.ndll
make[1]: Entering directory `/.devel/local.src/neko-1.0/libs'
gcc -O3 -I../vm -D__linux__ -Wl,-Bsymbolic -L../bin -lneko  -shared  -o 
../bin/std.ndll std/*.c
gcc -O3 -I../vm -D__linux__ -Wl,-Bsymbolic -L../bin -lneko  -shared  -I 
/usr/include/apache -o ../bin/mod_neko.ndll -I mod_neko mod_neko/*.c
mod_neko/cgi.c: In function `get_cookies':
mod_neko/cgi.c:115: warning: initialization makes pointer from integer 
without a cast
mod_neko/cgi.c: In function `redirect':
mod_neko/cgi.c:190: error: `REDIRECT' undeclared (first use in this 
function)
mod_neko/cgi.c:190: error: (Each undeclared identifier is reported only once
mod_neko/cgi.c:190: error: for each function it appears in.)
mod_neko/cgi.c: In function `get_client_header':
mod_neko/cgi.c:206: warning: passing arg 1 of `neko_alloc_string' makes 
pointer from integer without a cast
mod_neko/cgi.c: In function `get_params':
mod_neko/cgi.c:332: warning: initialization makes pointer from integer 
without a cast
mod_neko/mod_neko.c: In function `cache_find':
mod_neko/mod_neko.c:56: error: structure has no member named `st_mtime'
mod_neko/mod_neko.c: In function `cache_module':
mod_neko/mod_neko.c:77: error: structure has no member named `st_mtime'
mod_neko/mod_neko.c:85: error: structure has no member named `st_mtime'
mod_neko/mod_neko.c: At top level:
mod_neko/mod_neko.c:156: error: parse error before "pool"
mod_neko/mod_neko.c:161: error: parse error before "neko_handlers"
mod_neko/mod_neko.c:162: warning: braces around scalar initializer
mod_neko/mod_neko.c:162: warning: (near initialization for 
`neko_handlers[0]')
mod_neko/mod_neko.c:162: warning: initialization makes integer from 
pointer without a cast
mod_neko/mod_neko.c:162: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:162: warning: (near initialization for 
`neko_handlers[0]')
mod_neko/mod_neko.c:163: warning: braces around scalar initializer
mod_neko/mod_neko.c:163: warning: (near initialization for 
`neko_handlers[1]')
mod_neko/mod_neko.c:163: warning: initialization makes integer from 
pointer without a cast
mod_neko/mod_neko.c:164: warning: data definition has no type or storage 
class
mod_neko/mod_neko.c:166: error: parse error before "neko_module"
mod_neko/mod_neko.c:167: error: 
`this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a 
function)
mod_neko/mod_neko.c:167: error: initializer element is not constant
mod_neko/mod_neko.c:167: error: (near initialization for `neko_module')
mod_neko/mod_neko.c:168: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:168: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:169: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:169: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:170: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:170: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:171: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:171: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:172: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:172: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:173: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:173: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:174: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:174: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:175: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:175: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:176: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:176: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:177: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:177: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:178: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:178: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:179: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:179: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:180: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:180: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:181: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:181: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:182: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:182: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:183: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:183: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:184: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:184: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:186: warning: excess elements in scalar initializer
mod_neko/mod_neko.c:186: warning: (near initialization for `neko_module')
mod_neko/mod_neko.c:186: warning: data definition has no type or storage 
class
make[1]: *** [mod_neko.ndll] Error 1
make[1]: Leaving directory `/.devel/local.src/neko-1.0/libs'
make: *** [libs] Error 2