Menu

#3 compiling on cygwin

open
None
5
2006-09-11
2006-09-11
Anonymous
No

Hello,

I downloaded Lua-5.1.1 and gema 1.4.1RC sources. Lua
and Gema compiled fine, but gel and gua didn't. I
typed make -i 2>errors.txt to catch the error stream.
Apparently the interface to C++ has changed, so a few
lines of code need changes, but I can't really tell,
since this is my first experience with lua/gua/gel.

Here's the output

gel_bind.c:109: error: `luaopen_loadlibs' undeclared
here (not in a function)
gel_bind.c:109: error: initializer element is not
constant
gel_bind.c:109: error: (near initialization for
`lualibs[6].func')
gel_bind.c:109: error: initializer element is not
constant
gel_bind.c:109: error: (near initialization for
`lualibs[6]')
gel_bind.c:110: error: `luaopen_loadlib' undeclared
here (not in a function)
gel_bind.c:110: error: initializer element is not
constant
gel_bind.c:110: error: (near initialization for
`lualibs[7].func')
gel_bind.c:110: error: initializer element is not
constant
gel_bind.c:110: error: (near initialization for
`lualibs[7]')
gel_bind.c:111: error: initializer element is not
constant
gel_bind.c:111: error: (near initialization for
`lualibs[8]')
gel_bind.c:112: error: initializer element is not
constant
gel_bind.c:112: error: (near initialization for
`lualibs[9]')
gel_bind.c: In function `gel_parse':
gel_bind.c:414: warning: implicit declaration of
function `cos_whole_string'
gel_bind.c: In function `gel_streameof':
gel_bind.c:501: warning: implicit declaration of
function `cis_eof'
gel_bind.c: In function `dolua':
gel_bind.c:658: warning: implicit declaration of
function `lua_dostring'
make[1]: [l_gel_bind.o] Error 1 (ignored)
read.c: In function `skip_comment':
read.c:910: warning: implicit declaration of function
`dolua'
action.c: In function `do_action':
action.c:533: warning: int format, long unsigned int
arg (arg 3)
action.c:536: warning: implicit declaration of
function `dolua'
ar: l_gel_bind.o: No such file or directory
make[1]: [libgel.a] Error 1 (ignored)
ranlib: 'libgel.a': No such file
make[1]: [libgel.a] Error 1 (ignored)
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-
cygwin/bin/ld: cannot find -lgel
collect2: ld returned 1 exit status
make[1]: [gel] Error 1 (ignored)
gua.c:77: error: `luaopen_loadlib' undeclared here
(not in a function)
gua.c:77: error: initializer element is not constant
gua.c:77: error: (near initialization for `lualibs
[6].func')
gua.c:77: error: initializer element is not constant
gua.c:77: error: (near initialization for `lualibs[6]')
gua.c:80: error: initializer element is not constant
gua.c:80: error: (near initialization for `lualibs[7]')
gua.c:261:36: macro "lua_readline" requires 3
arguments, but only 2 given
gua.c: In function `load_string':
gua.c:261: error: `lua_readline' undeclared (first use
in this function)
gua.c:261: error: (Each undeclared identifier is
reported only once
gua.c:261: error: for each function it appears in.)
gua.c:270:38: macro "lua_readline" requires 3
arguments, but only 2 given
gua.c: In function `openstdlibs':
gua.c:388: warning: implicit declaration of function
`gel_init'
gua.c: At top level:
gua.c:236: warning: 'get_prompt' defined but not used
make[1]: [l_gua.o] Error 1 (ignored)
gcc: l_gua.o: No such file or directory
make[1]: [gua] Error 1 (ignored)

I hope it is informative

Discussion

  • Remo Dentato

    Remo Dentato - 2006-09-11

    Logged In: YES
    user_id=419887

    You're right. I did not check GeL for compatibility with Lua
    5.1.1, latest tested version was 5.0.2 and probably the
    interface LUA <-> C changed since then.

    I will have a look and will come back with a resolution time.

    Thanks.
    Remo

     
  • Remo Dentato

    Remo Dentato - 2006-09-11
    • assigned_to: nobody --> rdentato
     
  • Luis

    Luis - 2006-09-16

    Logged In: YES
    user_id=1240597

    I did a little fiddling with the sources this afternoon, and
    gel/gua compiled fine. I just uploaded the few patches
    needed. I'm no pro-programmer, so please check for
    inconsistencies.

    Thanks,

    Luis.

     
  • Luis

    Luis - 2006-09-16

    Logged In: YES
    user_id=1240597

    I forgot to mention that gel/gua compiled fine with the
    patches on both on MinGW 5.0.2 and Cygwin's gcc compiler.

    Luis.

     

Log in to post a comment.

MongoDB Logo MongoDB