Hi,
Myself sanjeev. I am new to Unix flavour OS. I have
Red Hat Linux 7.2 OS machine. I got the SSFT
project from SourceForge.net. I liked the concept
behind the SSFT (security). I tried to compile the
project on my machine as mentioned in the
INSTALL file but failed. Before compiling SSFT, i
have successfully ( hope so) complied and install
the openssl-engine-0.9.6g project. On installation
of openssl-engine-0.9.6g, many folders have been
created in my /usr/local/ssl directory, two out of
thm are" bin" and "lib".The bin folder contains
c_rehash and openssl files and the lib folder
contains libcrypto.a, libssl.a files. I hope openssl-
engine-0.9.6g project has been successfully
compiled and installed.
For compling the SSFT project I used to instruction
mentioned in the INSTALL file.
Step 1. `cd' to the directory containing the
package's source code and type
`./configure' to configure the package for your
system.
On doing the same i got the following output:
loading cache ./config.cache
checking for a BSD compatible install...
(cached) /usr/bin/install -c
checking whether build environment is sane...yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-
compiler... no
checking whether we are using GNU C... (cached)
yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached)
gcc -E
checking for c++... (cached) c++
checking whether the C++ compiler (c++ )
works... yes
checking whether the C++ compiler (c++ ) is a
cross-compiler... no
checking whether we are using GNU C++...
(cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor...
(cached) c++ -E
checking for a BSD compatible
install... /usr/bin/install -c
checking whether the compiler supports
exceptions... (cached) yes
checking whether the compiler implements
namespaces... (cached) yes
checking whether the compiler supports Standard
Template Library... (cached) yes
checking for SSL_new in -lssl... (cached) yes
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for byteswap.h... (cached) yes
checking for stricmp... (cached) no
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for getopt_long... (cached) yes
checking for ERR_error_string_n... (cached) yes
checking for OpenSSL_add_all_digests... (cached)
yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for size_t... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
Step 2:Type `make' to compile the package.
On doing the same i got following error messages:
c++ -DHAVE_CONFIG_H -I. -I. -I. -
D_GNU_SOURCE -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -Wall -frtti -O3 -
I/usr/include/openssl -
I/usr/local/ssl/include/openssl -c DirList.cpp
In file included from DirList.cpp:26:
ssft.h:609:8: warning: extra tokens at end of #endif
directive
In file included from ssft.h:197,
from DirList.cpp:26:
XmitBuffer.h:43: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:44: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:45: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:47: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:48: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:49: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:54: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
XmitBuffer.h:63: invalid use of undefined type
`class SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
In file included from ssft.h:199,
from DirList.cpp:26:
DirList.h:52: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
DirList.h:52: invalid use of undefined type `class
TransferException'
ssft.h:182: forward declaration of `class
TransferException'
DirList.h:59: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
DirList.h:59: invalid use of undefined type `class
TransferException'
ssft.h:182: forward declaration of `class
TransferException'
DirList.h:66: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
DirList.h:66: invalid use of undefined type `class
TransferException'
ssft.h:182: forward declaration of `class
TransferException'
DirList.h:69: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
DirList.h:69: invalid use of undefined type `class
TransferException'
ssft.h:182: forward declaration of `class
TransferException'
In file included from DirList.cpp:26:
ssft.h:211: invalid use of undefined type `class
TransferException'
ssft.h:182: forward declaration of `class
TransferException'
ssft.h:211: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:421: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:424: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:427: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:430: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:432: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:434: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:454: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:455: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:456: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:457: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:460: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:514: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:515: invalid use of undefined type `class
SsftWouldBlock'
ssft.h:183: forward declaration of `class
SsftWouldBlock'
ssft.h:515: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:519: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
ssft.h:524: invalid use of undefined type `class
SsftDisconnect'
ssft.h:181: forward declaration of `class
SsftDisconnect'
DirList.cpp:81: declaration of `void DirList::Open
(const char *, int, const char *, const char *) throw
(TransferException, SsftDisconnect)'
throws different exceptions
DirList.h:52: than previous declaration `void
DirList::Open (const char *, int, const char *, const
char *)'
DirList.cpp:152: declaration of `void
DirList::GetPart (XmitBuffer &, unsigned int) throw
(TransferException, SsftDisconnect)' throws
different exceptions
DirList.h:66: than previous declaration `void
DirList::GetPart (XmitBuffer &, unsigned int)'
DirList.cpp:283: declaration of `bool
DirList::AddNodeToBuffer
(XmitBuffer &) throw (TransferException,
SsftDisconnect)' throws
different exceptions
DirList.h:69: than previous declaration `bool
DirList::AddNodeToBuffer (XmitBuffer &)'
DirList.cpp:368: declaration of `void
DirList::GetList (fileset_t &)
throw (TransferException, SsftDisconnect)' throws
different exceptions
DirList.h:59: than previous declaration `void
DirList::GetList (fileset_t &)'
make: *** [DirList.o] Error 1
I am a programmer of VC++ and on windows
environment i am not getting all these errors. I had
tried to give the forward declarations of classes for
which errors are coming but that does not solve
my problem.
Please help me to resolve this problem.
I am having SSFT code of ssft-0.16 version.
Thanks and Regards
Sanjeev
Logged In: YES
user_id=944248
I have experienced the samething on RH 7.3
In file included from DirList.cpp:26:
ssft.h:609:8: warning: extra tokens at end of #endif directive
In file included from ssft.h:197,
from DirList.cpp:26:
XmitBuffer.h:43: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:44: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:45: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:47: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:48: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:49: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:54: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h:63: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator<< (XmitBuffer
&, const
string &)':
XmitBuffer.h:68: call to function `XmitBuffer::AddString
(const char *,
unsigned int)' which throws incomplete type `class
SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator<< (XmitBuffer
&, int)':
XmitBuffer.h:74: call to function `XmitBuffer::AddInt32 (int)'
which
throws incomplete type `class SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator<< (XmitBuffer
&,
unsigned int)':
XmitBuffer.h:80: call to function `XmitBuffer::AddInt32 (int)'
which
throws incomplete type `class SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator<< (XmitBuffer
&, const
ssft_flen_t &)':
XmitBuffer.h:86: call to function `XmitBuffer::AddInt64 (const
ssft_flen_t &)' which throws incomplete type `class
SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator>> (XmitBuffer
&, string
&)':
XmitBuffer.h:92: call to function `XmitBuffer::GetString
(string &)'
which throws incomplete type `class SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator>> (XmitBuffer
&, int
&)':
XmitBuffer.h:98: call to function `XmitBuffer::GetInt32 (int
&)' which
throws incomplete type `class SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator>> (XmitBuffer
&,
unsigned int &)':
XmitBuffer.h:104: call to function `XmitBuffer::GetInt32 (int
&)' which
throws incomplete type `class SsftDisconnect'
XmitBuffer.h: In function `XmitBuffer &operator>> (XmitBuffer
&,
ssft_flen_t &)':
XmitBuffer.h:110: call to function `XmitBuffer::GetInt64
(ssft_flen_t
&)' which throws incomplete type `class SsftDisconnect'
In file included from ssft.h:199,
from DirList.cpp:26:
DirList.h: At top level:
DirList.h:52: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
DirList.h:52: incomplete type `TransferException' used in
exception-specification
ssft.h:182: forward declaration of `class TransferException'
DirList.h:59: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
DirList.h:59: incomplete type `TransferException' used in
exception-specification
ssft.h:182: forward declaration of `class TransferException'
DirList.h:66: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
DirList.h:66: incomplete type `TransferException' used in
exception-specification
ssft.h:182: forward declaration of `class TransferException'
DirList.h:69: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
DirList.h:69: incomplete type `TransferException' used in
exception-specification
ssft.h:182: forward declaration of `class TransferException'
In file included from DirList.cpp:26:
ssft.h:211: incomplete type `TransferException' used in
exception-specification
ssft.h:182: forward declaration of `class TransferException'
ssft.h:211: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:421: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:424: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:427: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:430: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:432: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:434: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:454: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:455: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:456: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:457: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:460: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:514: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:515: incomplete type `SsftWouldBlock' used in
exception-specification
ssft.h:183: forward declaration of `class SsftWouldBlock'
ssft.h:515: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:519: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
ssft.h:524: incomplete type `SsftDisconnect' used in
exception-specification
ssft.h:181: forward declaration of `class SsftDisconnect'
make: *** [DirList.o] Error 1