VectorLinux
October 24, 2014, 04:19:36 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Can't install portsentry in VL 5.9  (Read 3271 times)
asphyx
Member
*
Posts: 9


« on: January 13, 2009, 07:43:32 am »

I have problem with instalation process :
Code:
tar xvfz portsentry-1.2.tar.gz
then
Code:
cd portsentry_beta/
Code:
make
Usage: make <systype>
<systype> is one of: linux, debian-linux, bsd, solaris, hpux, hpux-gcc,
freebsd, osx, openbsd, netbsd, bsdi, aix, osf, irix, generic

This code requires snprintf()/vsnprintf() system calls
to work. If you run a modern OS it should work on
your system with 'make generic'. If you get it to
work on an unlisted OS please write us with the
changes.

Install: make install

NOTE: This will install the package in this
      directory: /usr/local/psionic

Edit the makefile if you wish to change these paths.
Any existing files will be overwritten.
then :
Code:
make linux
SYSTYPE=linux
Making
cc -O -Wall -DLINUX -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c \
                ./portsentry_io.c ./portsentry_util.c
./portsentry.c: In function 'PortSentryModeTCP':
./portsentry.c:1187: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
./portsentry.c: In function 'PortSentryModeUDP':
./portsentry.c:1384: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
./portsentry.c: In function 'Usage':
./portsentry.c:1584: error: missing terminating " character
./portsentry.c:1585: error: 'sourceforget' undeclared (first use in this function)
./portsentry.c:1585: error: (Each undeclared identifier is reported only once
./portsentry.c:1585: error: for each function it appears in.)
./portsentry.c:1585: error: expected ')' before 'dot'
./portsentry.c:1585: error: stray '\' in program
./portsentry.c:1585: error: missing terminating " character
./portsentry.c:1595: error: expected ';' before '}' token
make: *** [linux] Error 1

Code:
make generic
SYSTYPE=generic
Making
cc -O -Wall -o ./portsentry ./portsentry.c ./portsentry_io.c \
                ./portsentry_util.c
./portsentry.c: In function 'PortSentryModeTCP':
./portsentry.c:1187: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
./portsentry.c: In function 'PortSentryModeUDP':
./portsentry.c:1384: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
./portsentry.c: In function 'Usage':
./portsentry.c:1584: error: missing terminating " character
./portsentry.c:1585: error: 'sourceforget' undeclared (first use in this function)
./portsentry.c:1585: error: (Each undeclared identifier is reported only once
./portsentry.c:1585: error: for each function it appears in.)
./portsentry.c:1585: error: expected ')' before 'dot'
./portsentry.c:1585: error: stray '\' in program
./portsentry.c:1585: error: missing terminating " character
./portsentry.c:1595: error: expected ';' before '}' token
make: *** [generic] Error 1

Any ideas ?
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #1 on: January 13, 2009, 07:54:23 am »

this patch should help
http://tx-us.lunar-linux.org/lunar/cache/portsentry-1.2-gcc3.3.1-newlinefix.patch.bz2
Logged
asphyx
Member
*
Posts: 9


« Reply #2 on: January 13, 2009, 08:09:49 am »

Code:
bunzip2 portsentry-1.2-gcc3.3.1-newlinefix.patch.bz2
So, how to patch it ?!
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #3 on: January 13, 2009, 08:12:51 am »

vector:/~/portsentry_beta
root:# bzcat /home/uel/portsentry-1.2-gcc3.3.1-newlinefix.patch.bz2 |patch -p1
patching file portsentry.c
Logged
asphyx
Member
*
Posts: 9


« Reply #4 on: January 13, 2009, 08:24:36 am »

Another problem
Code:
bzcat /usr/local/etc/portsentry-1.2-gcc3.3.1-newlinefix.patch.bz2 |patch -p1

patching file portsentry.c

Code:
root:# make linux
SYSTYPE=linux
Making
cc -O -Wall -DLINUX -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c \
                ./portsentry_io.c ./portsentry_util.c
./portsentry.c: In function 'PortSentryModeTCP':
./portsentry.c:1187: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
./portsentry.c: In function 'PortSentryModeUDP':
./portsentry.c:1384: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
and
Code:
make generic
SYSTYPE=generic
Making
cc -O -Wall -o ./portsentry ./portsentry.c ./portsentry_io.c \
                ./portsentry_util.c
./portsentry.c: In function 'PortSentryModeTCP':
./portsentry.c:1187: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
./portsentry.c: In function 'PortSentryModeUDP':
./portsentry.c:1384: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #5 on: January 13, 2009, 09:29:53 am »

those warnings are harmless.
you can do make install and run the program after make linux
Logged
asphyx
Member
*
Posts: 9


« Reply #6 on: January 14, 2009, 01:48:20 am »

those warnings are harmless.
you can do make install and run the program after make linux
Thank you for the advice !
It works  Roll Eyes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!