Topic: Installation on Solaris sparc
First of all, crongratulations for this great tool.
Here is how I managed to compile it on Solaris 8 :
1- pb with u_int16_t
In file included from SftpServer/Sftp.h:25,
from main.c:31:
SftpServer/SftpWho.h:68: parse error before `u_int16_t'
=>added in SftpServer/SftpWho.h
typedef uint16_t u_int16_t;
pb then here
Compile [SftpWho/Main.c]
In file included from SftpWho/Main.c:25:
SftpWho/../SftpServer/SftpWho.h:68: parse error before `u_int32_t'
=>change includes in SftpWho/Main.c
#include "../config.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include "../conf.h"
#include "../hash.h"
#include "../ip.h"
#include "../prog.h"
#include "../SftpServer/SftpWho.h"
2- pb with -Xlinker --as-needed options with ld :
unrecognized option '--as-needed'
=>options removed on LDFLAGS from Makefile
LDFLAGS=
3- add -lsocket and -liconv in Makefile
add -R /usr/local/lib for suid bit library search in this dir
$(NAME) : $(OBJ)
@echo "Compile binary [$(NAME)]"
@$(CC) -lsocket -liconv -R /usr/local/lib -o $(NAME) $(OBJ) $(LDFLAGS)
@$(CHMOD) 755 $(NAME)
sftpwho : $(OBJ1)
@echo "Compile binary [$(NAME1)]"
@$(CC) -lsocket -o $(NAME1) $(OBJ1) $(LDFLAGS)
@$(CHMOD) 711 $(NAME1)
After that the make is ok
I hope it can help, and I wish a long life to MySecureShell
JoK