[please CC all replies to me, I'm not on this list]

Hi,

lsh 0.9 compiled fine on my box, but 0.9.[1,2] seem to be doing something
different. Here's the error:

----- gcc output snip -----
gcc -DHAVE_CONFIG_H -I. -I/home/timshel/src/lsh/lsh-0.9.2/src -I..   
-I/home/timshel/src/lsh/lsh-0.9.2 -I/home/timshel/src/lsh/lsh-0.9.2/src 
-I/home/timshel/src/lsh/lsh-0.9.2/src/symmetric/include -DLSH -D_GNU_SOURCE  
-funsigned-char -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations 
-Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast 
-Wnested-externs -c server_session.c
In file included from /usr/include/sys/ucontext.h:31,
                 from /usr/include/ucontext.h:27,
                 from /usr/include/signal.h:317,
                 from server_session.c:41:
/usr/include/sys/user.h:60: redefinition of `struct user'
server_session.c: In function `do_login':
server_session.c:350: structure has no member named `name'
server_session.c: In function `spawn_process':
server_session.c:641: structure has no member named `fork_process'
server_session.c:716: structure has no member named `uid'
server_session.c:718: structure has no member named `chdir_home'
server_session.c: In function `do_spawn_shell':
server_session.c:834: structure has no member named `uid'
server_session.c:846: structure has no member named `exec_shell'
server_session.c: In function `do_spawn_exec':
server_session.c:943: structure has no member named `uid'
server_session.c:954: structure has no member named `exec_shell'
server_session.c: In function `do_alloc_pty':
server_session.c:1023: structure has no member named `uid'
make[3]: *** [server_session.o] Error 1
make[3]: Leaving directory `/home/timshel/src/lsh/lsh-0.9.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/timshel/src/lsh/lsh-0.9.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/timshel/src/lsh/lsh-0.9.2'
make: *** [all-recursive-am] Error 2
----- end output snip -----

This is on a i386 Debian Linux (potato) box ...
Seems that there's another 'struct user' lying around ..., defined through
signal.h. Putting the '#include "server_session.h"' below the
'#include <signal.h>' at least got it to compile server_session.c, but now
gcc is whinging on userauth.h.x because of the redefinition ...

Thanks for the great s/w, keep up the good work,

Timshel
-- 
Timshel Knoll <[EMAIL PROTECTED]>  Second year Computer Science, RMIT
              http://yallara.cs.rmit.edu.au/~tiknoll
       Key ID:         Fingerprint: 
GnuPG  1024D/DE3E8AA7  6ABC 91A9 E274 ED67 0E32 8F0F 5DFA 9391 DE3E 8AA7



Reply via email to