Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#3582 closed defect (fixed)

Tripwire-2.2.4.2 and GCC-4.7.0 make problem

Reported by: Arthur Radley Owned by: blfs-book@…
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords: Tripwire GCC
Cc:

Description

At least I think it's a GCC-4.7 issue. There is no shortage of jabber on the Internet about it with Debian, Gentoo, OpenSUSE. Anyway, some help with this in the current book will be appreciated.

make[3]: Entering directory `/sources/tripwire-2.4.2.2-src/src/cryptlib'
g++ -DHAVE_CONFIG_H               -I.. -I../..    -O -pipe -Wall -Wno-non-virtual-dtor -c -o integer.o integer.cpp
integer.cpp: In function 'void MontgomeryReduce(word*, word*, const word*, const word*, const word*, unsigned int)':
integer.cpp:743:8: warning: unused variable 'carry' [-Wunused-variable]
integer.cpp: In function 'void CorrectQuotientEstimate(word*, word*, word&, word&, const word*, unsigned int)':
integer.cpp:903:7: warning: unused variable 'borrow' [-Wunused-variable]
integer.cpp: In member function 'Integer& Integer::operator++()':
integer.cpp:1617:8: warning: unused variable 'borrow' [-Wunused-variable]
In file included from modarith.h:9:0,
                 from integer.cpp:5:
algebra.h: In instantiation of 'T AbstractEuclideanDomain<T>::Gcd(const Element&, const Element&) const [with T = Integer; AbstractEuclideanDomain<T>::Element = Integer]':
integer.cpp:2111:46:   required from here
algebra.h:276:2: error: 'Equal' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
algebra.h:276:2: note: declarations in dependent base 'AbstractGroup<Integer>' are not found by unqualified lookup
algebra.h:276:2: note: use 'this->Equal' instead
make[3]: *** [integer.o] Error 1
make[3]: Leaving directory `/sources/tripwire-2.4.2.2-src/src/cryptlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/tripwire-2.4.2.2-src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/tripwire-2.4.2.2-src'
make: *** [all] Error 2

Change History (5)

comment:1 by Arthur Radley, 12 years ago

Okay. I got past that algebra.h thing by substituting this->Equal for Equal in line 276. But another thing came up in /src/twadmin/twadmincl.cpp. Now for this one, I'm in over my head.

make[3]: Entering directory `/sources/tripwire-2.4.2.2-src/src/twadmin'
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..    -O -pipe -Wall -Wno-non-virtual-dtor -c -o keygeneration.o keygeneration.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..    -O -pipe -Wall -Wno-non-virtual-dtor -c -o stdtwadmin.o stdtwadmin.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..    -O -pipe -Wall -Wno-non-virtual-dtor -c -o twadmin.o twadmin.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..    -O -pipe -Wall -Wno-non-virtual-dtor -c -o twadmincl.o twadmincl.cpp
twadmincl.cpp: In member function 'virtual int cTWAModeExamine::Execute(cErrorQueue*)':
twadmincl.cpp:1542:22: warning: variable 'siteDecrypts' set but not used [-Wunused-but-set-variable]
twadmincl.cpp:1542:44: warning: variable 'localDecrypts' set but not used [-Wunused-but-set-variable]
twadmincl.cpp: In function 'bool ChangePassphrase(const char*, wc16_string, wc16_string)':
twadmincl.cpp:1866:65: error: 'swab' was not declared in this scope
twadmincl.cpp: In function 'bool NotifyEncryptionType(cFileHeader::Encoding, iUserNotify::VerboseLevel)':
twadmincl.cpp:2662:12: warning: enumeration value 'SYM_ENCRYPTION' not handled in switch [-Wswitch]
twadmincl.cpp:2662:12: warning: enumeration value 'LAST_ENCODING' not handled in switch [-Wswitch]
make[3]: *** [twadmincl.o] Error 1
make[3]: Leaving directory `/sources/tripwire-2.4.2.2-src/src/twadmin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/tripwire-2.4.2.2-src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/tripwire-2.4.2.2-src'
make: *** [all] Error 2

comment:2 by bdubbs@…, 12 years ago

At the beginning of twadmincl.cpp, try adding:

#include <unistd.h>

comment:3 by Arthur Radley, 12 years ago

Thank you! That fixed the second issue, and tripwire compiled and installed normally.

comment:4 by bdubbs@…, 12 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 10683.

comment:5 by bdubbs@…, 10 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.