pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

fuse-encfs compilation error in pkgsrc-stable



Trying to build filesystems/fuse-encfs on NetBSD 8.0 BETA i386 pkgsrc-2017Q1.

Get the following errors:

Would appreciate any pointers / help to get encfs work.

In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from MACFileIOCompat.h:28,
                 from MACFileIOCompat.cpp:18:
Ptr.h: In instantiation of 'class rel::Ptr<FileIO>':
MACFileIOCompat.h:67:17:   required from here
Ptr.h:155:2: error: invalid abstract parameter type 'FileIO'
  Ptr(Type value, void *noDestructor)
  ^
In file included from BlockFileIO.h:21:0,
                 from MACFileIOCompat.h:28,
                 from MACFileIOCompat.cpp:18:
FileIO.h:49:7: note:   because the following virtual functions are pure within 'FileIO':
 class FileIO
       ^
FileIO.h:55:28: note: 	virtual rel::Interface FileIO::interface() const
     virtual rel::Interface interface() const =0;
                            ^
FileIO.h:60:18: note: 	virtual void FileIO::setFileName(const char*)
     virtual void setFileName(const char *fileName) =0;
                  ^
FileIO.h:68:17: note: 	virtual int FileIO::open(int)
     virtual int open( int flags ) =0;
                 ^
FileIO.h:71:17: note: 	virtual int FileIO::getAttr(stat*) const
     virtual int getAttr( struct stat *stbuf ) const =0;
                 ^
FileIO.h:72:19: note: 	virtual __off_t FileIO::getSize() const
     virtual off_t getSize( ) const =0;
                   ^
FileIO.h:74:21: note: 	virtual ssize_t FileIO::read(const IORequest&) const
     virtual ssize_t read( const IORequest &req ) const =0;
                     ^
FileIO.h:75:18: note: 	virtual bool FileIO::write(const IORequest&)
     virtual bool write( const IORequest &req ) =0;
                  ^
FileIO.h:77:17: note: 	virtual int FileIO::truncate(__off_t)
     virtual int truncate( off_t size ) =0;
                 ^
FileIO.h:79:18: note: 	virtual bool FileIO::isWritable() const
     virtual bool isWritable() const =0;
                  ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from MACFileIOCompat.h:28,
                 from MACFileIOCompat.cpp:18:
Ptr.h:176:6: error: invalid abstract parameter type 'FileIO'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:245:7: error: invalid abstract parameter type 'FileIO'
  void reset(Type value, void(*destructor)(Type))
       ^
Ptr.h: In instantiation of 'class rel::Ptr<Cipher>':
MACFileIOCompat.h:68:17:   required from here
Ptr.h:155:2: error: invalid abstract parameter type 'Cipher'
  Ptr(Type value, void *noDestructor)
  ^
In file included from MACFileIOCompat.h:30:0,
                 from MACFileIOCompat.cpp:18:
Cipher.h:43:7: note:   because the following virtual functions are pure within 'Cipher':
 class Cipher
       ^
Cipher.h:85:28: note: 	virtual rel::Interface Cipher::interface() const
     virtual rel::Interface interface() const =0;
                            ^
Cipher.h:88:23: note: 	virtual CipherKey Cipher::newKey(const char*, int)
     virtual CipherKey newKey(const char *password, int passwdLength) =0;
                       ^
Cipher.h:90:23: note: 	virtual CipherKey Cipher::newRandomKey()
     virtual CipherKey newRandomKey() =0;
                       ^
Cipher.h:93:23: note: 	virtual CipherKey Cipher::readKey(const unsigned char*, const CipherKey&, bool)
     virtual CipherKey readKey(const unsigned char *data, 
                       ^
Cipher.h:96:18: note: 	virtual void Cipher::writeKey(const CipherKey&, unsigned char*, const CipherKey&)
     virtual void writeKey(const CipherKey &key, unsigned char *data, 
                  ^
Cipher.h:99:18: note: 	virtual bool Cipher::compareKey(const CipherKey&, const CipherKey&) const
     virtual bool compareKey( const CipherKey &A, const CipherKey &B ) const =0;
                  ^
Cipher.h:102:17: note: 	virtual int Cipher::keySize() const
     virtual int keySize() const=0;
                 ^
Cipher.h:103:17: note: 	virtual int Cipher::encodedKeySize() const
     virtual int encodedKeySize() const=0; // size 
                 ^
Cipher.h:104:17: note: 	virtual int Cipher::cipherBlockSize() const
     virtual int cipherBlockSize() const=0; // size of a cipher block
                 ^
Cipher.h:109:18: note: 	virtual void Cipher::randomize(unsigned char*, int) const
     virtual void randomize( unsigned char *buf, int len ) const =0;
                  ^
Cipher.h:112:22: note: 	virtual __uint64_t Cipher::MAC_64(const unsigned char*, int, const CipherKey&, __uint64_t*) const
     virtual uint64_t MAC_64( const unsigned char *src, int len,
                      ^
Cipher.h:124:18: note: 	virtual bool Cipher::streamEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamEncode( unsigned char *data, int len, 
                  ^
Cipher.h:126:18: note: 	virtual bool Cipher::streamDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamDecode( unsigned char *data, int len, 
                  ^
Cipher.h:144:18: note: 	virtual bool Cipher::blockEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockEncode(unsigned char *buf, int size, 
                  ^
Cipher.h:146:18: note: 	virtual bool Cipher::blockDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockDecode(unsigned char *buf, int size, 
                  ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from MACFileIOCompat.h:28,
                 from MACFileIOCompat.cpp:18:
Ptr.h:176:6: error: invalid abstract parameter type 'Cipher'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:245:7: error: invalid abstract parameter type 'Cipher'
  void reset(Type value, void(*destructor)(Type))
       ^
gmake[2]: *** [MACFileIOCompat.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from MACFileIO.h:21,
                 from MACFileIO.cpp:18:
Ptr.h: In instantiation of 'class rel::Ptr<FileIO>':
MACFileIO.h:60:17:   required from here
Ptr.h:155:2: error: invalid abstract parameter type 'FileIO'
  Ptr(Type value, void *noDestructor)
  ^
In file included from BlockFileIO.h:21:0,
                 from MACFileIO.h:21,
                 from MACFileIO.cpp:18:
FileIO.h:49:7: note:   because the following virtual functions are pure within 'FileIO':
 class FileIO
       ^
FileIO.h:55:28: note: 	virtual rel::Interface FileIO::interface() const
     virtual rel::Interface interface() const =0;
                            ^
FileIO.h:60:18: note: 	virtual void FileIO::setFileName(const char*)
     virtual void setFileName(const char *fileName) =0;
                  ^
FileIO.h:68:17: note: 	virtual int FileIO::open(int)
     virtual int open( int flags ) =0;
                 ^
FileIO.h:71:17: note: 	virtual int FileIO::getAttr(stat*) const
     virtual int getAttr( struct stat *stbuf ) const =0;
                 ^
FileIO.h:72:19: note: 	virtual __off_t FileIO::getSize() const
     virtual off_t getSize( ) const =0;
                   ^
FileIO.h:74:21: note: 	virtual ssize_t FileIO::read(const IORequest&) const
     virtual ssize_t read( const IORequest &req ) const =0;
                     ^
FileIO.h:75:18: note: 	virtual bool FileIO::write(const IORequest&)
     virtual bool write( const IORequest &req ) =0;
                  ^
FileIO.h:77:17: note: 	virtual int FileIO::truncate(__off_t)
     virtual int truncate( off_t size ) =0;
                 ^
FileIO.h:79:18: note: 	virtual bool FileIO::isWritable() const
     virtual bool isWritable() const =0;
                  ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from MACFileIO.h:21,
                 from MACFileIO.cpp:18:
Ptr.h:176:6: error: invalid abstract parameter type 'FileIO'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:245:7: error: invalid abstract parameter type 'FileIO'
  void reset(Type value, void(*destructor)(Type))
       ^
Ptr.h: In instantiation of 'class rel::Ptr<Cipher>':
MACFileIO.h:61:17:   required from here
Ptr.h:155:2: error: invalid abstract parameter type 'Cipher'
  Ptr(Type value, void *noDestructor)
  ^
In file included from MACFileIO.h:23:0,
                 from MACFileIO.cpp:18:
Cipher.h:43:7: note:   because the following virtual functions are pure within 'Cipher':
 class Cipher
       ^
Cipher.h:85:28: note: 	virtual rel::Interface Cipher::interface() const
     virtual rel::Interface interface() const =0;
                            ^
Cipher.h:88:23: note: 	virtual CipherKey Cipher::newKey(const char*, int)
     virtual CipherKey newKey(const char *password, int passwdLength) =0;
                       ^
Cipher.h:90:23: note: 	virtual CipherKey Cipher::newRandomKey()
     virtual CipherKey newRandomKey() =0;
                       ^
Cipher.h:93:23: note: 	virtual CipherKey Cipher::readKey(const unsigned char*, const CipherKey&, bool)
     virtual CipherKey readKey(const unsigned char *data, 
                       ^
Cipher.h:96:18: note: 	virtual void Cipher::writeKey(const CipherKey&, unsigned char*, const CipherKey&)
     virtual void writeKey(const CipherKey &key, unsigned char *data, 
                  ^
Cipher.h:99:18: note: 	virtual bool Cipher::compareKey(const CipherKey&, const CipherKey&) const
     virtual bool compareKey( const CipherKey &A, const CipherKey &B ) const =0;
                  ^
Cipher.h:102:17: note: 	virtual int Cipher::keySize() const
     virtual int keySize() const=0;
                 ^
Cipher.h:103:17: note: 	virtual int Cipher::encodedKeySize() const
     virtual int encodedKeySize() const=0; // size 
                 ^
Cipher.h:104:17: note: 	virtual int Cipher::cipherBlockSize() const
     virtual int cipherBlockSize() const=0; // size of a cipher block
                 ^
Cipher.h:109:18: note: 	virtual void Cipher::randomize(unsigned char*, int) const
     virtual void randomize( unsigned char *buf, int len ) const =0;
                  ^
Cipher.h:112:22: note: 	virtual __uint64_t Cipher::MAC_64(const unsigned char*, int, const CipherKey&, __uint64_t*) const
     virtual uint64_t MAC_64( const unsigned char *src, int len,
                      ^
Cipher.h:124:18: note: 	virtual bool Cipher::streamEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamEncode( unsigned char *data, int len, 
                  ^
Cipher.h:126:18: note: 	virtual bool Cipher::streamDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamDecode( unsigned char *data, int len, 
                  ^
Cipher.h:144:18: note: 	virtual bool Cipher::blockEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockEncode(unsigned char *buf, int size, 
                  ^
Cipher.h:146:18: note: 	virtual bool Cipher::blockDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockDecode(unsigned char *buf, int size, 
                  ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from MACFileIO.h:21,
                 from MACFileIO.cpp:18:
Ptr.h:176:6: error: invalid abstract parameter type 'Cipher'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:245:7: error: invalid abstract parameter type 'Cipher'
  void reset(Type value, void(*destructor)(Type))
       ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from CipherFileIO.h:21,
                 from CipherFileIO.cpp:18:
Ptr.h: In instantiation of 'class rel::Ptr<FileIO>':
CipherFileIO.h:64:17:   required from here
Ptr.h:155:2: error: invalid abstract parameter type 'FileIO'
  Ptr(Type value, void *noDestructor)
  ^
In file included from BlockFileIO.h:21:0,
                 from CipherFileIO.h:21,
                 from CipherFileIO.cpp:18:
FileIO.h:49:7: note:   because the following virtual functions are pure within 'FileIO':
 class FileIO
       ^
FileIO.h:55:28: note: 	virtual rel::Interface FileIO::interface() const
     virtual rel::Interface interface() const =0;
                            ^
FileIO.h:60:18: note: 	virtual void FileIO::setFileName(const char*)
     virtual void setFileName(const char *fileName) =0;
                  ^
FileIO.h:68:17: note: 	virtual int FileIO::open(int)
     virtual int open( int flags ) =0;
                 ^
FileIO.h:71:17: note: 	virtual int FileIO::getAttr(stat*) const
     virtual int getAttr( struct stat *stbuf ) const =0;
                 ^
FileIO.h:72:19: note: 	virtual __off_t FileIO::getSize() const
     virtual off_t getSize( ) const =0;
                   ^
FileIO.h:74:21: note: 	virtual ssize_t FileIO::read(const IORequest&) const
     virtual ssize_t read( const IORequest &req ) const =0;
                     ^
FileIO.h:75:18: note: 	virtual bool FileIO::write(const IORequest&)
     virtual bool write( const IORequest &req ) =0;
                  ^
FileIO.h:77:17: note: 	virtual int FileIO::truncate(__off_t)
     virtual int truncate( off_t size ) =0;
                 ^
FileIO.h:79:18: note: 	virtual bool FileIO::isWritable() const
     virtual bool isWritable() const =0;
                  ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from CipherFileIO.h:21,
                 from CipherFileIO.cpp:18:
Ptr.h:176:6: error: invalid abstract parameter type 'FileIO'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:245:7: error: invalid abstract parameter type 'FileIO'
  void reset(Type value, void(*destructor)(Type))
       ^
Ptr.h:155:2: error: invalid abstract parameter type 'Cipher'
  Ptr(Type value, void *noDestructor)
  ^
In file included from CipherFileIO.cpp:20:0:
Cipher.h:43:7: note:   because the following virtual functions are pure within 'Cipher':
 class Cipher
       ^
Cipher.h:85:28: note: 	virtual rel::Interface Cipher::interface() const
     virtual rel::Interface interface() const =0;
                            ^
Cipher.h:88:23: note: 	virtual CipherKey Cipher::newKey(const char*, int)
     virtual CipherKey newKey(const char *password, int passwdLength) =0;
                       ^
Cipher.h:90:23: note: 	virtual CipherKey Cipher::newRandomKey()
     virtual CipherKey newRandomKey() =0;
                       ^
Cipher.h:93:23: note: 	virtual CipherKey Cipher::readKey(const unsigned char*, const CipherKey&, bool)
     virtual CipherKey readKey(const unsigned char *data, 
                       ^
Cipher.h:96:18: note: 	virtual void Cipher::writeKey(const CipherKey&, unsigned char*, const CipherKey&)
     virtual void writeKey(const CipherKey &key, unsigned char *data, 
                  ^
Cipher.h:99:18: note: 	virtual bool Cipher::compareKey(const CipherKey&, const CipherKey&) const
     virtual bool compareKey( const CipherKey &A, const CipherKey &B ) const =0;
                  ^
Cipher.h:102:17: note: 	virtual int Cipher::keySize() const
     virtual int keySize() const=0;
                 ^
Cipher.h:103:17: note: 	virtual int Cipher::encodedKeySize() const
     virtual int encodedKeySize() const=0; // size 
                 ^
Cipher.h:104:17: note: 	virtual int Cipher::cipherBlockSize() const
     virtual int cipherBlockSize() const=0; // size of a cipher block
                 ^
Cipher.h:109:18: note: 	virtual void Cipher::randomize(unsigned char*, int) const
     virtual void randomize( unsigned char *buf, int len ) const =0;
                  ^
Cipher.h:112:22: note: 	virtual __uint64_t Cipher::MAC_64(const unsigned char*, int, const CipherKey&, __uint64_t*) const
     virtual uint64_t MAC_64( const unsigned char *src, int len,
                      ^
Cipher.h:124:18: note: 	virtual bool Cipher::streamEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamEncode( unsigned char *data, int len, 
                  ^
Cipher.h:126:18: note: 	virtual bool Cipher::streamDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamDecode( unsigned char *data, int len, 
                  ^
Cipher.h:144:18: note: 	virtual bool Cipher::blockEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockEncode(unsigned char *buf, int size, 
                  ^
Cipher.h:146:18: note: 	virtual bool Cipher::blockDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockDecode(unsigned char *buf, int size, 
                  ^
In file included from FileIO.h:27:0,
                 from BlockFileIO.h:21,
                 from CipherFileIO.h:21,
                 from CipherFileIO.cpp:18:
Ptr.h:176:6: error: invalid abstract parameter type 'Cipher'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:176:6: error: invalid abstract parameter type 'Cipher'
Ptr.h:176:44: error: invalid abstract parameter type 'Cipher'
      Ptr(Type value, void(*destructor)(Type))
                                            ^
Ptr.h:245:7: error: invalid abstract parameter type 'Cipher'
  void reset(Type value, void(*destructor)(Type))
       ^
Ptr.h:245:7: error: invalid abstract parameter type 'Cipher'
Ptr.h:245:47: error: invalid abstract parameter type 'Cipher'
  void reset(Type value, void(*destructor)(Type))
                                               ^
gmake[2]: *** [MACFileIO.o] Error 1
In file included from Cipher.h:27:0,
                 from Cipher.cpp:19:
Ptr.h: In instantiation of 'class rel::Ptr<Cipher>':
Cipher.cpp:101:55:   required from here
Ptr.h:155:2: error: invalid abstract parameter type 'Cipher'
  Ptr(Type value, void *noDestructor)
  ^
In file included from Cipher.cpp:19:0:
Cipher.h:43:7: note:   because the following virtual functions are pure within 'Cipher':
 class Cipher
       ^
Cipher.h:85:28: note: 	virtual rel::Interface Cipher::interface() const
     virtual rel::Interface interface() const =0;
                            ^
Cipher.h:88:23: note: 	virtual CipherKey Cipher::newKey(const char*, int)
     virtual CipherKey newKey(const char *password, int passwdLength) =0;
                       ^
Cipher.h:90:23: note: 	virtual CipherKey Cipher::newRandomKey()
     virtual CipherKey newRandomKey() =0;
                       ^
Cipher.h:93:23: note: 	virtual CipherKey Cipher::readKey(const unsigned char*, const CipherKey&, bool)
     virtual CipherKey readKey(const unsigned char *data, 
                       ^
Cipher.h:96:18: note: 	virtual void Cipher::writeKey(const CipherKey&, unsigned char*, const CipherKey&)
     virtual void writeKey(const CipherKey &key, unsigned char *data, 
                  ^
Cipher.h:99:18: note: 	virtual bool Cipher::compareKey(const CipherKey&, const CipherKey&) const
     virtual bool compareKey( const CipherKey &A, const CipherKey &B ) const =0;
                  ^
Cipher.h:102:17: note: 	virtual int Cipher::keySize() const
     virtual int keySize() const=0;
                 ^
Cipher.h:103:17: note: 	virtual int Cipher::encodedKeySize() const
     virtual int encodedKeySize() const=0; // size 
                 ^
Cipher.h:104:17: note: 	virtual int Cipher::cipherBlockSize() const
     virtual int cipherBlockSize() const=0; // size of a cipher block
                 ^
Cipher.h:109:18: note: 	virtual void Cipher::randomize(unsigned char*, int) const
     virtual void randomize( unsigned char *buf, int len ) const =0;
                  ^
Cipher.h:112:22: note: 	virtual __uint64_t Cipher::MAC_64(const unsigned char*, int, const CipherKey&, __uint64_t*) const
     virtual uint64_t MAC_64( const unsigned char *src, int len,
                      ^
Cipher.h:124:18: note: 	virtual bool Cipher::streamEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamEncode( unsigned char *data, int len, 
                  ^
Cipher.h:126:18: note: 	virtual bool Cipher::streamDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool streamDecode( unsigned char *data, int len, 
                  ^
Cipher.h:144:18: note: 	virtual bool Cipher::blockEncode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockEncode(unsigned char *buf, int size, 
                  ^
Cipher.h:146:18: note: 	virtual bool Cipher::blockDecode(unsigned char*, int, __uint64_t, const CipherKey&) const
     virtual bool blockDecode(unsigned char *buf, int size, 
                  ^
In file included from Cipher.h:27:0,
                 from Cipher.cpp:19:
Ptr.h:176:6: error: invalid abstract parameter type 'Cipher'
      Ptr(Type value, void(*destructor)(Type))
      ^
Ptr.h:245:7: error: invalid abstract parameter type 'Cipher'
  void reset(Type value, void(*destructor)(Type))
       ^
gmake[2]: *** [CipherFileIO.o] Error 1
gmake[2]: *** [Cipher.o] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2


Mayuresh


Home | Main Index | Thread Index | Old Index