Please support VectorLinux!

Author Topic: Can't install portsentry in VL 5.9  (Read 3540 times)

asphyx

  • Member
  • *
  • Posts: 9
Can't install portsentry in VL 5.9
« on: January 13, 2009, 07:43:32 am »
I have problem with instalation process :
Code: [Select]
tar xvfz portsentry-1.2.tar.gz
then
Code: [Select]
cd portsentry_beta/
Code: [Select]
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: [Select]
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: [Select]
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 ?

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504

asphyx

  • Member
  • *
  • Posts: 9
Re: Can't install portsentry in VL 5.9
« Reply #2 on: January 13, 2009, 08:09:49 am »
Code: [Select]
bunzip2 portsentry-1.2-gcc3.3.1-newlinefix.patch.bz2So, how to patch it ?!

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: Can't install portsentry in VL 5.9
« 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

asphyx

  • Member
  • *
  • Posts: 9
Re: Can't install portsentry in VL 5.9
« Reply #4 on: January 13, 2009, 08:24:36 am »
Another problem
Code: [Select]
bzcat /usr/local/etc/portsentry-1.2-gcc3.3.1-newlinefix.patch.bz2 |patch -p1

patching file portsentry.c

Code: [Select]
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: [Select]
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

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: Can't install portsentry in VL 5.9
« 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

asphyx

  • Member
  • *
  • Posts: 9
Re: Can't install portsentry in VL 5.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  ::)