LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-10-2003, 02:03 AM   #1
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
Red face installing tripwire from source


i always feel like a dickhead when i have problems installing from source, so here i go: i downloaded the source tarball for tripwire 2.3.1-2 and tried following the instructions (post untarring) that said to look at the contents of the makefile in the src/ directory and edit it to fit your system architecture.

i read through the makefile and read that i must set the SYSPRE variable to specify what architecture i was compiling for. once i had checked that the appropriate SYSPRE variable was uncommented i issued the "make release" command that should compile the binaries, but i got an error message. here's how the section of my makefile with the SYSPRE variable looks:

#-----------------------------------------------------------------------------
# SYSPRE makefile variable
#
# System prefix convention is to use a single character to designate the
# operating system and a single character to designate the architecture.
#
# Uncomment the appropriate SYSPRE definition below for your architecture.
# Note that if you uncomment more than one, gmake will use the last one.
#
# Prefix for various OS/Architectures:
#
# i686-pc-linux == Linux Intel x86
# sparc-linux == Linux Sparc (not fully implemented)
#

SYSPRE = i686-pc-linux <-------notable part
#SYSPRE = sparc-linux
#SYSPRE = i386-unknown-freebsd
#SYSPRE = i386-unknown-openbsd

i think this is right, as i have a dual-athlon architecture (i think the 686 designation is fine...), but then i get an error during compilation:

c++ -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32 -O2 complex.cpp -c -o obj/GCC/Release/complex.o
In file included from ../stlport/complex:40,
from complex.cpp:21:
../stlport/wrap_std/complex:16:39: ../g++-include/complex: No such file or directory
complex.cpp:26: parse error before `&' token
complex.cpp: In function `float abs(...)':
complex.cpp:28: `__z' undeclared (first use this function)
...
complex.cpp:262: parse error before `if'
complex.cpp:266: syntax error before `.' token
complex.cpp:271: syntax error before `.' token
gmake[4]: *** [obj/GCC/Release/complex.o] Error 1
gmake[4]: Leaving directory `/home/dick/security/tripwire-2.3.1-2/src/STLport-4.0/src'
gmake[3]: *** [lib/libstlport_gcc.a] Error 2
gmake[3]: Leaving directory `/home/dick/security/tripwire-2.3.1-2/src/STLport-4.0'
gmake[2]: *** [../../lib/i686-pc-linux_r/libstlport_gcc.a] Error 2
gmake[2]: Leaving directory `/home/dick/security/tripwire-2.3.1-2/src/STLport-4.0'
gmake[1]: *** [STLport_r] Error 2
gmake[1]: Leaving directory `/home/dick/security/tripwire-2.3.1-2/src'
date >> release.i686-pc-linux.out

what gives? normally i can make sense of error outputs and modify my instructions/resident programs to suit, but i'm at a loss here. any suggestions are welcome.

thx for reading,
y-p
 
Old 09-10-2003, 04:37 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
y-p,

I think you need to apply this patch: Fixes to allow gcc3 compile from the http://sourceforge.net/projects/tripwire/ site.

The problem is that tripwire is including the C++ STL (Standard Template Library) which was needed for gcc 2.9x. Slackware 9 has gcc 3.2 which already includes the STL.

Hope that helps,
chris

PS If slackware already has a package for it, you may want to use that because it probably already has most of the file lists setup for you.
 
Old 09-10-2003, 05:43 PM   #3
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Original Poster
Rep: Reputation: 30
thx a lot, i figured it was something i wasn't privy to, as the error message made no sense to me. i'll try to find the slack package, as it's easier than remembering to apply a patch if i install it again later.
 
Old 12-03-2003, 08:54 PM   #4
jinxi
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
I did the patch and I still get the same error. any idea?

 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Need help installing tripwire on Fedora C3 hywaydave Linux - Security 1 04-13-2005 01:51 AM
Source-code error in Tripwire when building Ephracis Linux - Software 2 02-24-2005 12:02 PM
tripwire reports /usr/sbin/tripwire changed alfaalfabeta Linux - Security 5 07-22-2003 05:52 PM
tripwire-2.3.1-5 source problem dafri Linux - Security 2 04-29-2003 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration