monotone

Issue 104: Fresh Botan causes build failure

Reported by Michael Raskin, Nov 10, 2010

Steps to reproduce the problem:
-------------------------------

1. Build fresh Botan (as of now, 1.9.10; probably, 1.9.0+)
2. Try building Monotone against it.

Expected result:
----------------
Succesful compilation. 

Actual results:
---------------
g++  -I. \
-I/nix/store/m9rcq75427hqbxpk1lya8qarpgnv9f8c-pcre-7.8/include \
-I/nix/store/3z4djcwsqisdhiwdjxi06prkqvhdhaxf-botan-1.9.10/include \
-I/nix/store/6rvb494zgdj7cvq7bm43kp884hz68rkc-lua-5.1.4/include \
-I/nix/store/46icwk6d4w4dyysfv3phn1s3ddrl8b7v-sqlite-3.7.2/include \
-I/nix/store/ggm90i12bafzbdcp6gjahdxvlim6jkdq-libidn-1.19/include \
-g -O2 -Wall -W -Wno-unused -c -o transforms.o transforms.cc
transforms.cc: In function 'std::string xform(const 
std::string&, origin::type) [with XFM = 
Botan::Gzip_Compression]':
transforms.cc:198: error: cannot allocate an object of abstract type 
'Botan::Gzip_Compression'
gzip.hh:37: note:   because the following virtual functions are pure 
within 'Botan::Gzip_Compression':
/nix/store/3z4djcwsqisdhiwdjxi06prkqvhdhaxf-botan-1.9.10/include/bota
n/filter.h:25: note:       virtual std::string Botan::Filter::name() 
const
transforms.cc:198: error: cannot allocate an object of abstract type 
'Botan::Gzip_Compression'
gzip.hh:37: note:   since type 'Botan::Gzip_Compression' has pure 
virtual functions
transforms.cc: In function 'std::string xform(const 
std::string&, origin::type) [with XFM = 
Botan::Gzip_Decompression]':
transforms.cc:199: error: cannot allocate an object of abstract type 
'Botan::Gzip_Decompression'
gzip.hh:60: note:   because the following virtual functions are pure 
within 'Botan::Gzip_Decompression':
/nix/store/3z4djcwsqisdhiwdjxi06prkqvhdhaxf-botan-1.9.10/include/bota
n/filter.h:25: note:       virtual std::string Botan::Filter::name() 
const
transforms.cc:199: error: cannot allocate an object of abstract type 
'Botan::Gzip_Decompression'
gzip.hh:60: note:   since type 'Botan::Gzip_Decompression' has pure 
virtual functions
transforms.cc: In function 'void pack(const T&, 
base64<gzip<INNER> >&)':
transforms.cc:214: error: cannot allocate an object of abstract type 
'Botan::Gzip_Compression'
gzip.hh:37: note:   since type 'Botan::Gzip_Compression' has pure 
virtual functions
transforms.cc:224: error: cannot allocate an object of abstract type 
'Botan::Gzip_Compression'
gzip.hh:37: note:   since type 'Botan::Gzip_Compression' has pure 
virtual functions
transforms.cc: In function 'void unpack(const 
base64<gzip<INNER> >&, T&)':
transforms.cc:234: error: cannot allocate an object of abstract type 
'Botan::Gzip_Decompression'
gzip.hh:60: note:   since type 'Botan::Gzip_Decompression' has pure 
virtual functions
transforms.cc:243: error: cannot allocate an object of abstract type 
'Botan::Gzip_Decompression'
gzip.hh:60: note:   since type 'Botan::Gzip_Decompression' has pure 
virtual functions


Output of `mtn version --full`:
-------------------------------
N/A

Comment 1 by Michael Raskin, Nov 10, 2010

Additional info:
Monotone version: 0.99.1
GCC: gcc 4.4.3
Glibc: 2.11.1
OS: Linux/i686 (NixOS distribution)

Comment 2 by Lapo Luchini, Nov 10, 2010

Supporting botan 1.9.x could be nice nonetheless, but please notice 
that it is not an upgrade to 1.8.x, it's the development branch for 
the upcoming 1.10.x.
AFAIK Botan follows the pattern:
x.(2n).y stable releases
x.(2n+1).y decevolpment releases

Comment 3 by Michael Raskin, Nov 10, 2010

Well, given it is at 1.9.10, and the error message, I guess we will 
have to solve this issue with 1.10 anyway..

Comment 4 by Thomas Keller, Nov 12, 2010

Fixed in commit 5d65834513bf3fc273b5b7509a155aa16f88e3bc
Status: Fixed

Created: 14 years 11 days ago by Michael Raskin

Updated: 14 years 8 days ago

Status: Fixed

Followed by: 1 person

Labels:
Type:Defect
Priority:Medium

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status