Hi, I'm trying to build LSH 1.4.1 on Solaris 8 using gcc 2.95.3, but I
haven't been successful. I'm not using any exotic configure flags and I'm
using GNU make. The build process generates a significant number
of warnings, ultimately resulting in:
gcc -DHAVE_CONFIG_H -I. -I/home/brian/tmp/lsh-1.4.1/src -I..
-I/home/brian/tmp/lsh-1.4.1/src -DLSH -D_GNU_SOURCE -I -O3
-mcpu=ultrasparc -funroll-loops -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith
-Wbad-function-cast -Wnested-externs -c `test -f 'daemon.c' || echo
'/home/brian/tmp/lsh-1.4.1/src/'`daemon.c
In file included from lsh_types.h:31,
from lsh.h:27,
from daemon.h:31,
from daemon.c:28:
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/stddef.h:170:
warning: empty declaration
In file included from lsh.h:29,
from daemon.h:31,
from daemon.c:28:
/usr/include/stdlib.h:79: warning: empty declaration
In file included from /usr/include/string.h:18,
from daemon.c:36:
/usr/include/iso/string_iso.h:60: warning: conflicting types for built-in
function `memcmp'
/usr/include/iso/string_iso.h:61: warning: conflicting types for built-in
function `memcpy'
/usr/include/iso/string_iso.h:65: warning: conflicting types for built-in
function `strcmp'
/usr/include/iso/string_iso.h:66: warning: conflicting types for built-in
function `strcpy'
In file included from /usr/include/unistd.h:20,
from daemon.c:38:
/usr/include/sys/types.h:339: warning: empty declaration
source='debug.c' object='debug.o' libtool=no \
depfile='.deps/debug.Po' tmpdepfile='.deps/debug.TPo' \
depmode=gcc /bin/bash /home/brian/tmp/lsh-1.4.1/depcomp \
gcc -DHAVE_CONFIG_H -I. -I/home/brian/tmp/lsh-1.4.1/src -I..
-I/home/brian/tmp/lsh-1.4.1/src -DLSH -D_GNU_SOURCE -I -O3
-mcpu=ultrasparc -funroll-loops -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith
-Wbad-function-cast -Wnested-externs -c `test -f 'debug.c' || echo
'/home/brian/tmp/lsh-1.4.1/src/'`debug.c
In file included from lsh.h:29,
from exception.h:27,
from abstract_io.h:29,
from debug.h:30,
from debug.c:26:
/usr/include/stdlib.h:79: warning: empty declaration
/usr/include/stdlib.h:165: conflicting types for `getsubopt'
/usr/include/stdio.h:267: previous declaration of `getsubopt'
/usr/include/stdlib.h:189: conflicting types for `getopt'
/usr/include/stdio.h:265: previous declaration of `getopt'
debug.c: In function `do_connection_debug_handler':
debug.c:117: warning: unused parameter `s'
gmake[3]: *** [debug.o] Error 1
gmake[3]: Leaving directory `/home/brian/tmp/lsh-1.4.1/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/brian/tmp/lsh-1.4.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/brian/tmp/lsh-1.4.1'
gmake: *** [all] Error 2
I have gmp and liboop installed. Has anyone successfully built LSH 1.4.1
on Solaris? If so, what am I missing?
Thanks in advance,
-Brian