Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th July 2008, 10:59
Kev King Kev King is offline
Member
 
Join Date: May 2008
Location: Glos, UK
Posts: 43
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via ICQ to Kev King
Default Portsentry install problem

Am following the Chkrootkit-Portsentry-Howto and have encountered the following error:

rymach:/tmp# tar xvfz portsentry-1.2.tar.gz
portsentry_beta/
portsentry_beta/portsentry.c
portsentry_beta/portsentry.h
portsentry_beta/portsentry_io.c
portsentry_beta/portsentry_io.h
portsentry_beta/portsentry_util.c
portsentry_beta/portsentry_util.h
portsentry_beta/portsentry_config.h
portsentry_beta/portsentry_tcpip.h
portsentry_beta/portsentry.ignore
portsentry_beta/portsentry.conf
portsentry_beta/Makefile
portsentry_beta/README.COMPAT
portsentry_beta/README.install
portsentry_beta/README.methods
portsentry_beta/README.stealth
portsentry_beta/CHANGES
portsentry_beta/CREDITS
portsentry_beta/LICENSE
portsentry_beta/ignore.csh
rymach:/tmp# cd portsentry_beta/
rymach:/tmp/portsentry_beta# 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

Chkrootkit installed no problem, cant seem to find any error's.
Have re-downloaded Portsentry, but still the same problem.
Any suggestions. Running Debian etch.

Thanks Kev King

I think I have installed it, it still comes up with the above error when installing. But it has been set up in the directory as per the Howto.
Will give it a couple of days and see what the output is to see if its working.

Last edited by Kev King; 15th July 2008 at 12:01. Reason: Possibly fixed?
Reply With Quote
Sponsored Links
  #2  
Old 16th July 2008, 17:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Which distribution are you using?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th July 2008, 20:12
Kev King Kev King is offline
Member
 
Join Date: May 2008
Location: Glos, UK
Posts: 43
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via ICQ to Kev King
Default

Thanks for replying falko, I am on Debian etch (4)

I did get 2 e-mails this morning from portsentry, and going by the info in it, it is working ok. My god it listed a load of stuff.

The one from chkrootkit just gave an error stating the chkrootkit folder didnt exist. I have ammended the script for that, forgot the cd bit at the front. So will see if that is ok in the morning.
Reply With Quote
  #4  
Old 17th July 2008, 12:37
Kev King Kev King is offline
Member
 
Join Date: May 2008
Location: Glos, UK
Posts: 43
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via ICQ to Kev King
Thumbs up All works?

Yes can confirm I had 2 e-mails this morning reporting on the outcome of portsentry activity and the results of chkrootkit.

Strange, because like I stated earlier there was an error reported during installation.

So all seems to be working ok.
Reply With Quote
  #5  
Old 29th October 2008, 15:41
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Default I have the same problem on 2 servers with OpenSuse 11

WHAT CAN I DO?

This is my screen

server1:/tmp/portsentry_beta # 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:1584:11: warning: missing terminating " character
./portsentry.c: In function ‚Usage‚:
./portsentry.c:1584: error: missing terminating " character
./portsentry.c:1585: error: ‚sourceforget‚ undeclared (first use in this functio n)
./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:24: warning: missing terminating " character
./portsentry.c:1585: error: missing terminating " character
./portsentry.c:1595: error: expected ‚;‚ before ‚}‚ token
./portsentry_io.c: In function ‚ConfigTokenRetrieve‚:
./portsentry_io.c:321: warning: cast from pointer to integer of different size
./portsentry_io.c:324: warning: cast from pointer to integer of different size
./portsentry_io.c: In function ‚IsBlocked‚:
./portsentry_io.c:670: warning: cast from pointer to integer of different size
./portsentry_io.c: In function ‚SubstString‚:
./portsentry_io.c:727: warning: cast from pointer to integer of different size
make: *** [linux] Error 1
Reply With Quote
  #6  
Old 30th October 2008, 15:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You could try another gcc version. But is there no Portsentry package in the SUSE repositories?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 3rd November 2008, 16:05
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Default Problem SOLVED

The problem was in lines 1584-185 from portsentry.c
the original look like this:
1583 printf ("PortSentry - Port Scan Detector.\n");
1584 printf ("Copyright 1997-2003 Craig H. Rowland <craigrowland at users dot
1585 sourceforget dot net>\n");
1586 printf ("Licensing restrictions apply. Please see documentation\n");
1587 printf ("Version: %s\n\n", VERSION);

to work this script shopuld be:

1583 printf ("PortSentry - Port Scan Detector.\n");
1584 printf ("Copyright 1997-2003 Craig H. Rowland <craigrowland at users dot sourceforget dot net>\n");
1585 printf ("Licensing restrictions apply. Please see documentation\n");
1586 printf ("Version: %s\n\n", VERSION);

Thank You Falko
Reply With Quote
The Following User Says Thank You to scenic2 For This Useful Post:
falko (4th November 2008)
  #8  
Old 6th August 2010, 15:18
j.smith1981 j.smith1981 is offline
Member
 
Join Date: Nov 2008
Posts: 63
Thanks: 0
Thanked 3 Times in 3 Posts
Question

Hi all,

I am having a problem with installing portsentry on centos 4.8, here's the tutorial I took the guide from:

http://www.falkotimme.com/howtos/chk...ntry/index.php

But its giving me this feedback:
Quote:
cd portsentry_beta/
[root@centos48 portsentry_beta]# 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 `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: syntax error before "dot"
./portsentry.c:1585: error: stray '\' in program
./portsentry.c:1585: error: missing terminating " character
make: *** [linux] Error 1
[root@centos48 portsentry_beta]# ./portsentry.c:1584: error: missing terminating " character
> -bash: unexpected EOF while looking for matching `"'
-bash: syntax error: unexpected end of file
Can someone help with this please?

Thanks ever so much in advance, also if its out of date or anything (that tutorial), does anyone have any alternatives for an up to date one with a rather old distro of centos 4.8?

Any advice as usual is greatly appreciated,
Jeremy
Reply With Quote
  #9  
Old 7th August 2010, 13:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

This is just a guess, but maybe the gcc version in CentOS 4.8 is too old. You could check if other (newer) gcc versions are available for 4.8.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 9th August 2010, 09:59
j.smith1981 j.smith1981 is offline
Member
 
Join Date: Nov 2008
Posts: 63
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

Ahh thanks falko really appreciate your reply,

Jeremy.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Install MySQL 4.1 And PHP4 On Debian Etch Problem djc_2008 HOWTO-Related Questions 1 13th February 2008 18:04
Setup problem ? affecting Joomla 1.5 install luoto Installation/Configuration 9 11th January 2008 09:38
Install error on Opensuse 10.2 64 bit (SSL problem) klaus++ Installation/Configuration 2 24th September 2007 12:47
install problem on FC5 PortMan Installation/Configuration 2 27th June 2006 12:07
MySQL problem on install badben Installation/Configuration 12 20th December 2005 12:59


All times are GMT +2. The time now is 14:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.