« Return to Thread: Issue 182 - monotone-1.0 fails to build with botan-1.10.x (monotone)

Updated Issue 182 - monotone-1.0 fails to build with botan-1.10.x (monotone)

by code-6 :: Rate this Message:

| View in Thread

Hello,

The following issue has been updated:

182 - monotone-1.0 fails to build with botan-1.10.x
Project: monotone
Status: New
Reported by: Peter Volkov
URL: https://code.monotone.ca/p/monotone/issues/182/
Labels:
 Type:Defect
 Priority:Medium

Comments (last first):

# By Richard Levitte, Sep 12, 2011:

(A small point: when writing a packet, make sure to put the public key first...)

# By Peter Volkov, Sep 11, 2011:

bash_completion test failure was already fixed. Other tests fail here as well.

# By Martin von Gagern, Sep  8, 2011:

OK, now I've got it to a point where I can again commit and send you the packets. Monotone in several places depends on exceptions even for normal behaviour, and botan's exception behaviour changed somewhat.

The following tests from "make check" still fail:

unit tests:
 - packet_roundabout (unit test)
func tests:
 - changing_passphrase_of_a_private_key
 - disallowing_persistence_of_passphrase
 - netsync_bind_opt
 - schema_migration_error_recovery
 - ssh_agent
extra tests:
 - bash_completion
 - passphrase-from-file

Attachments:
- botan-1.10.patch - 18.13 kB
  https://code.monotone.ca/p/monotone/issues/view/attachment/32/botan-1.10.patch
- botan-1.10.packet - 13.64 kB
  https://code.monotone.ca/p/monotone/issues/view/attachment/33/botan-1.10.packet


# By Martin von Gagern, Sep  7, 2011:

Not a complete solution. For one, the runtime botan version check has to be adjusted as well. The attached patch does that.

But with the patched mtn installed on my system, I can no longer commit. If I try to, it prints the following error:

mtn: misuse: malformed packet: invalid private key data for 'Martin.vGagern@...': Decoding error: PKCS #8 private key decoding failed

Due to this inability to commit, I cannot send you a new packet including the new delta and revision.

Attachments:
- botan-1.10.patch - 12.20 kB
  https://code.monotone.ca/p/monotone/issues/view/attachment/31/botan-1.10.patch


# By Martin von Gagern, Sep  7, 2011:

Just found the review feature and started code review 1 for this patch:
https://code.monotone.ca/p/monotone/review/1/
Am I really the first to do this? Or does the target of this link depend on the logged in user?

# By Martin von Gagern, Sep  7, 2011:

I wrote a fix that should address this. Will attach it, both as a diff and as a monotone packet which "mtn read" should be able to integrate into your database. The revision is 754a7a4e12aafce0cf45ab00329f0b6513502066.

Attachments:
- botan-1.10.packet - 5.14 kB
  https://code.monotone.ca/p/monotone/issues/view/attachment/29/botan-1.10.packet
- botan-1.10.patch - 10.92 kB
  https://code.monotone.ca/p/monotone/issues/view/attachment/30/botan-1.10.patch


# By Peter Volkov, Sep  6, 2011:

This issue was reported here:
https://bugs.gentoo.org/show_bug.cgi?id=380257

monotone-1.0 fails to build with botan-1.10 with the following error:

x86_64-pc-linux-gnu-g++  -I.    -I/usr/include/botan-1.10            -pipe -O2
-march=athlon64-sse3 -ftree-vectorize -Wall -W -Wno-unused -c -o
src/transforms.o src/transforms.cc
src/transforms.cc: In function ‘std::string xform(const string&, origin::type)
[with XFM = Botan::Gzip_Compression, std::string = std::basic_string<char>]’:
src/transforms.cc:198:1: error: cannot allocate an object of abstract type
‘Botan::Gzip_Compression’
src/gzip.hh:36:7: note:   because the following virtual functions are pure
within ‘Botan::Gzip_Compression’:
/usr/include/botan-1.10/botan/filter.h:32:20: note:     virtual void
Botan::Filter::write(const byte*, size_t)
src/transforms.cc:198:1: error: cannot allocate an object of abstract type
‘Botan::Gzip_Compression’
src/gzip.hh:36:7: note:   since type ‘Botan::Gzip_Compression’ has pure virtual
functions
src/transforms.cc: In function ‘std::string xform(const string&, origin::type)
[with XFM = Botan::Gzip_Decompression, std::string = std::basic_string<char>]’:
src/transforms.cc:199:1: error: cannot allocate an object of abstract type
‘Botan::Gzip_Decompression’
src/gzip.hh:60:7: note:   because the following virtual functions are pure
within ‘Botan::Gzip_Decompression’:
/usr/include/botan-1.10/botan/filter.h:32:20: note:     virtual void
Botan::Filter::write(const byte*, size_t)
src/transforms.cc:199:1: error: cannot allocate an object of abstract type
‘Botan::Gzip_Decompression’
src/gzip.hh:60:7: note:   since type ‘Botan::Gzip_Decompression’ has pure
virtual functions
src/transforms.cc: In function ‘void pack(const T&, base64<gzip<INNER> >&)’:
src/transforms.cc:214:46: error: cannot allocate an object of abstract type
‘Botan::Gzip_Compression’
src/gzip.hh:36:7: note:   since type ‘Botan::Gzip_Compression’ has pure virtual
functions
src/transforms.cc:224:31: error: cannot allocate an object of abstract type
‘Botan::Gzip_Compression’
src/gzip.hh:36:7: note:   since type ‘Botan::Gzip_Compression’ has pure virtual
functions
src/transforms.cc: In function ‘void unpack(const base64<gzip<INNER> >&, T&)’:
src/transforms.cc:234:46: error: cannot allocate an object of abstract type
‘Botan::Gzip_Decompression’
src/gzip.hh:60:7: note:   since type ‘Botan::Gzip_Decompression’ has pure
virtual functions
src/transforms.cc:243:31: error: cannot allocate an object of abstract type
‘Botan::Gzip_Decompression’
src/gzip.hh:60:7: note:   since type ‘Botan::Gzip_Decompression’ has pure
virtual functions



--
Issue: https://code.monotone.ca/p/monotone/issues/182/

_______________________________________________
Monotone-devel mailing list
Monotone-devel@...
https://lists.nongnu.org/mailman/listinfo/monotone-devel

 « Return to Thread: Issue 182 - monotone-1.0 fails to build with botan-1.10.x (monotone)