Monday, February 8, 2010

compile prosilla.


ahiliation:~$make
gcc -O3 -Wall -DVERSION='"1.2"' `gtk-config --cflags` -DWITH_GTK -s -lutil -lncurses `gtk-config --libs` -lpthread -o proserv proserv.c
/bin/sh: gtk-config: not found
/bin/sh: gtk-config: not found
proserv.c: In function ‘main’:
proserv.c:37: warning: pointer targets in passing argument 3 of ‘sendfile’ differ in signedness
/usr/include/sys/sendfile.h:34: note: expected ‘off_t *’ but argument is of type ‘long unsigned int *’
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [proserv] Error 1

http://v-lo.krakow.pl/~anszom/prosilla/prosilla-1.2.tgz
Fix. replace gtk-config with pkg-config.
Fix. apt-get install libncurses5-dev
ahiliation:~$make
g++ -O3 -Wall -DVERSION='"1.2"' `pkg-config --cflags` -c -o thread.o thread.cpp
Must specify package names on the command line
thread.cpp: In member function ‘int fajl::spawn_ssh(int*, int, int, char*, bool)’:
thread.cpp:54: error: array bound forbidden after parenthesized type-id
thread.cpp:54: note: try removing the parentheses around the type-id
thread.cpp:67: warning: deprecated conversion from string constant to ‘char*’

TODO . Fix Build error and send us ahiliation@yahoo.co.in