lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I'm trying to build lua-5.2.2 on Solaris 10 (originally as part of 'nmap' but now stand-alone); 'make solaris' fails with:


gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_POSIX -DLUA_USE_DLOPEN    -c -o lauxlib.o lauxlib.c
In file included from /usr/include/sys/wait.h:24,
                 from lauxlib.c:229:
/usr/include/sys/siginfo.h:259: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: syntax error before '}' token
/usr/include/sys/siginfo.h:294: error: syntax error before '}' token
/usr/include/sys/siginfo.h:390: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of '__fault' was here
/usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of '__file' was here
/usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of '__prof' was here
/usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl' was here
/usr/include/sys/siginfo.h:426: error: syntax error before '}' token
/usr/include/sys/siginfo.h:428: error: syntax error before '}' token
/usr/include/sys/siginfo.h:432: error: syntax error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: syntax error before '}' token
In file included from /usr/include/sys/procset.h:23,
                 from /usr/include/sys/wait.h:25,
                 from lauxlib.c:229:
/opt/gnu/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/signal.h:96: error: syntax error before "siginfo_t"
In file included from lauxlib.c:229:
/usr/include/sys/wait.h:86: error: syntax error before "siginfo_t"
make[2]: *** [lauxlib.o] Error 1
make[2]: Leaving directory `/opt/local/src/security/lua-5.2.2/src'
make[1]: *** [solaris] Error 2
make[1]: Leaving directory `/opt/local/src/security/lua-5.2.2/src'
make: *** [solaris] Error 2

I tried adding '#include <sys/types.h>' before the '#include <sys/wait.h>'
at line 229 (per 'man wait'), but makes no difference.

I also tried lua-5.1.5, which gets past 'lauxlib.c', but fails similarly at:

gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lua.o lua.c
In file included from /opt/gnu/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/signal.h:44,
                 from /usr/include/signal.h:26,
                 from lua.c:8:
/usr/include/sys/siginfo.h:259: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: syntax error before '}' token
/usr/include/sys/siginfo.h:294: error: syntax error before '}' token
/usr/include/sys/siginfo.h:390: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of '__fault' was here
/usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of '__file' was here
/usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of '__prof' was here
/usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl' was here
/usr/include/sys/siginfo.h:426: error: syntax error before '}' token
/usr/include/sys/siginfo.h:428: error: syntax error before '}' token
/usr/include/sys/siginfo.h:432: error: syntax error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: syntax error before '}' token
In file included from /usr/include/signal.h:26,
                 from lua.c:8:
/opt/gnu/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/signal.h:96: error: syntax error before "siginfo_t"
In file included from lua.c:8:
/usr/include/signal.h:111: error: syntax error before "siginfo_t"
/usr/include/signal.h:113: error: syntax error before "siginfo_t"
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/opt/local/src/security/lua-5.1.5/src'
make[1]: *** [solaris] Error 2
make[1]: Leaving directory `/opt/local/src/security/lua-5.1.5/src'
make: *** [solaris] Error 2

If I try to just compile lua-5.2.2 'lua.c', it also fails with the above.

Any ideas what to fix?
Compiling with 'gcc version 3.4.6' in case that matters.

Thanks,
Mike