Hi Mitchell,
I ran make deps, but a lot failed. I had to do a couple of the steps by hand because they failed.
It's possible that not everything was done correctly then.
Let me show you how I got in this situation:
$ unzip ~/Downloads/textadept-dcefcbb61eeb.zip
...
$ cd textadept-dcefcbb61eeb/src/
$ make deps
<stuff happens until..>
2013-12-10 08:03:13 (2.08 MB/s) - “scintilla334.tgz” saved [1120330/1120330]
mkdir scintilla && tar xzf scintilla334.tgz?download -C scintilla && mv scintilla/*/* scintilla
tar (child): scintilla334.tgz?download: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
make: *** [scintilla] Error 2
So now I have to do this manually:
$ tar xzf scintilla334.tgz -C scintilla && mv scintilla/*/* scintilla
Then I run make deps again
$ make deps
<stuff happens until..>
2013-12-10 08:04:49 (378 KB/s) - “d71c63cdb776f7d25313f8fcd14f07512ba1f83e” saved [42565]
mkdir -p lua/src/lib/lfs && unzip -d lua/src/lib/lfs d71c63cdb776f7d25313f8fcd14f07512ba1f83e.zip && mv lua/src/lib/lfs/*/src/*.c lua/src/lib/lfs/*/src/*.h lua/src/lib/
unzip: cannot find or open d71c63cdb776f7d25313f8fcd14f07512ba1f83e.zip, d71c63cdb776f7d25313f8fcd14f07512ba1f83e.zip.zip or d71c63cdb776f7d25313f8fcd14f07512ba1f83e.zip.ZIP.
make: *** [lua/src/lib/lfs] Error 9
So again, I fix it manually:
$ unzip -d lua/src/lib/lfs d71c63cdb776f7d25313f8fcd14f07512ba1f83e && mv lua/src/lib/lfs/*/src/*.c lua/src/lib/lfs/*/src/*.h lua/src/lib
now I run make deps again and it finished properly.
$ make
<stuff happens until...>
gcc -c -DLUA_USE_LINUX -Ilua/src lua/src/lib/lfs.c -o lfs.o
lua/src/lib/lfs.c:881: error: expected identifier or ‘(’ before ‘{’ token
lua/src/lib/lfs.c:882: error: expected identifier or ‘(’ before ‘{’ token
make: *** [lfs.o] Error 1
The code around line 881 is this:
#if LUA_VERSION_NUM > 501
static void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l)
{
luaL_newlib (L, l);
lua_pushvalue (L, -1);
lua_setglobal (L, libname);
}
#endif
Regards,
Gert Meulyzer
---- On Mon, 09 Dec 2013 20:03:47 +0100 Mitchell <m.att.foicica.com> wrote ----
Hi Gert,
On Mon, 9 Dec 2013, Gert Meulyzer wrote:
> Hi,
>
> I'm trying to compile 7.1 on CentOS and am running into this error:
>
> &lt;snip&gt;
> gcc -c -DLUA_USE_LINUX -Ilua/src lua/src/lib/lpeg.c -o lpeg.o
> gcc -c -DLUA_USE_LINUX -Ilua/src lua/src/lib/lfs.c -o lfs.o
> lua/src/lib/lfs.c:881: error: expected identifier or ‘(’ before ‘{’ token
> lua/src/lib/lfs.c:882: error: expected identifier or ‘(’ before ‘{’ token
> make: *** [lfs.o] Error 1
>
> Is this a known issue or am I doing something dumb?
I have not run into this issue. I presume that when you ran 'make deps'
first, the lfs patch succeeded? If so, please attach your lfs.c or at
least inline the code around those lines so I can examine it.
Cheers,
Mitchell
-- You are subscribed to code.att.foicica.com. To change subscription settings, send an e-mail to code+help.att.foicica.com. To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.Received on Tue 10 Dec 2013 - 02:10:18 EST
This archive was generated by hypermail 2.2.0 : Tue 10 Dec 2013 - 06:31:39 EST