rrthomas/luaposix — Issue #29: luaposix 5.1.15-1 fails to install with LuaRocks on OS X
Author: agladysh
Created: 2012-02-14 01:24:58+00:00
State: open

OS X 10.7.2
LuaRocks 2.0.7.1

The error:

/usr/bin/ranlib: file: .libs/libgnu.a(dummy.o) has no symbols
ranlib: file: .libs/libgnu.a(dummy.o) has no symbols
ranlib: warning for library: .libs/libgnu.a the table of contents is empty (no object file members in the library define global symbols)
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
CC posix_c_la-lposix.lo
lposix.c: In function ‘luaopen_posix_c’:
lposix.c:2078: error: ‘SIGPOLL’ undeclared (first use in this function)
lposix.c:2078: error: (Each undeclared identifier is reported only once
lposix.c:2078: error: for each function it appears in.)
make[1]: *** [posix_c_la-lposix.lo] Error 1
make: *** [install-recursive] Error 1

Error: Build error: Failed installing.

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Full output:

$ sudo luarocks install luaposix
Installing http://luarocks.org/repositories/rocks/luaposix-5.1.15-1.src.rock...
Using http://luarocks.org/repositories/rocks/luaposix-5.1.15-1.src.rock... switching to 'build' mode
Archive: /private/tmp/luarocks_luarocks-rock-luaposix-5.1.15-1-6163/luaposix-5.1.15-1.src.rock
inflating: luaposix-5.1.15-1.rockspec
inflating: luaposix-5.1.15.tar.gz
LUA=lua CPPFLAGS=-I/opt/local/include ./configure --prefix=/usr/local/lib/luarocks/rocks/luaposix/5.1.15-1 --libdir=/usr/local/lib/luarocks/rocks/luaposix/5.1.15-1/lib --datadir=/usr/local/lib/luarocks/rocks/luaposix/5.1.15-1/lua
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... (cached) ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.lt
config.lt: creating libtool
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for sigset_t... yes
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for pid_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for bit size of ptrdiff_t... 64
checking for bit size of size_t... 64
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... yes
checking for ptrdiff_t integer literal suffix... l
checking for size_t integer literal suffix... ul
checking for sig_atomic_t integer literal suffix...
checking for wchar_t integer literal suffix...
checking for wint_t integer literal suffix...
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking whether pthread_sigmask is declared without a macro... yes
checking whether sigaction is declared without a macro... yes
checking whether sigaddset is declared without a macro... yes
checking whether sigdelset is declared without a macro... yes
checking whether sigemptyset is declared without a macro... yes
checking whether sigfillset is declared without a macro... yes
checking whether sigismember is declared without a macro... yes
checking whether sigpending is declared without a macro... yes
checking whether sigprocmask is declared without a macro... yes
checking for sigprocmask... yes
checking for ANSI C header files... (cached) yes
checking for strlcpy... yes
checking for crypt... yes
checking for working ncursesw... no
checking for working ncurses... yes
checking Lua version is in range 501 <= v < 502... yes
checking lua.h usability... yes
checking lua.h presence... yes
checking for lua.h... yes
checking lualib.h usability... yes
checking lualib.h presence... yes
checking for lualib.h... yes
checking lua.h version is in range 501 <= v < 502... (found Lua 5.1, 501)... yes
checking whether perl executable path has been provided... no
checking for perl... /opt/local/bin/perl
checking whether md5sum executable path has been provided... no
checking for md5sum... false
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating luaposix.rockspec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make install
Making install in lib
GEN c++defs.h
GEN arg-nonnull.h
GEN warn-on-use.h
GEN signal.h
GEN stdint.h
make install-recursive
CC dummy.lo
CCLD libgnu.la
/usr/bin/ranlib: file: .libs/libgnu.a(dummy.o) has no symbols
ranlib: file: .libs/libgnu.a(dummy.o) has no symbols
ranlib: warning for library: .libs/libgnu.a the table of contents is empty (no object file members in the library define global symbols)
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
CC posix_c_la-lposix.lo
lposix.c: In function ‘luaopen_posix_c’:
lposix.c:2078: error: ‘SIGPOLL’ undeclared (first use in this function)
lposix.c:2078: error: (Each undeclared identifier is reported only once
lposix.c:2078: error: for each function it appears in.)
make[1]: *** [posix_c_la-lposix.lo] Error 1
make: *** [install-recursive] Error 1

Error: Build error: Failed installing.