← Back to team overview

hugin-devs team mailing list archive

[Bug 1849220] Re: current default fails to build in Fedora 30

 

Now builds OK with exiv2-0.27.99.0

Cheers,
Terry

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/1849220

Title:
  current default fails to build in Fedora 30

Status in Enblend:
  New

Bug description:
  Attempting to build current default (6b604e79e85b 1529 default) in
  Fedora 30, using rpmbuild fails with the following message...

  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h:53:31: error: 'UniquePtr' in 'class Exiv2::Image' does not name a type
     53 |         typedef Exiv2::Image::UniquePtr::element_type* meta_pointer;
        |                               ^~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h:57:52: error: 'meta_pointer' does not name a type
     57 |         Named(const std::string& a_filename, const meta_pointer a_meta, bool is_desired) :
        |                                                    ^~~~~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h:61:9: error: 'meta_pointer' does not name a type
     61 |         meta_pointer meta() const {return meta_;}
        |         ^~~~~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h:66:15: error: 'meta_pointer' does not name a type
     66 |         const meta_pointer meta_;
        |               ^~~~~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h: In constructor 'metadata::Named::Named(const string&, int, bool)':
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h:58:36: error: class 'metadata::Named' does not have any field named 'meta_'
     58 |             filename_(a_filename), meta_(a_meta), is_desired_(is_desired) {}
        |                                    ^~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h: At global scope:
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/metadata.h:74:19: error: 'UniquePtr' in 'class Exiv2::Image' does not name a type
     74 |     Exiv2::Image::UniquePtr read(const std::string& an_image_filename);
        |                   ^~~~~~~~~
  In file included from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.cc:197:
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h: In function 'void enblend::enblendMain(const FileNameList&, const std::__cxx11::list<vigra::ImageImportInfo*>&, vigra::ImageExportInfo&, vigra::Rect2D&)':
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:103:43: error: 'UniquePtr' is not a member of 'Exiv2::Image'
    103 |     typedef allocate::array<Exiv2::Image::UniquePtr> metadata_array;
        |                                           ^~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:103:43: error: 'UniquePtr' is not a member of 'Exiv2::Image'
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:103:52: error: template argument 1 is invalid
    103 |     typedef allocate::array<Exiv2::Image::UniquePtr> metadata_array;
        |                                                    ^
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:103:52: error: template argument 2 is invalid
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:107:33: error: qualified-id in declaration before 'metadata'
    107 |         metadata_array::pointer metadata {input_metadata.begin()};
        |                                 ^~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:111:22: error: 'metadata' does not name a type
    111 |                 new (metadata) metadata_array::value_type(metadata::read(*filename));
        |                      ^~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:112:32: error: request for member 'mark_as_initialized' in 'input_metadata', which is of non-class type 'metadata_array' {aka 'int'}
    112 |                 input_metadata.mark_as_initialized(metadata - input_metadata.begin());
        |                                ^~~~~~~~~~~~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:112:61: error: expected primary-expression before '-' token
    112 |                 input_metadata.mark_as_initialized(metadata - input_metadata.begin());
        |                                                             ^
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:112:78: error: request for member 'begin' in 'input_metadata', which is of non-class type 'metadata_array' {aka 'int'}
    112 |                 input_metadata.mark_as_initialized(metadata - input_metadata.begin());
        |                                                                              ^~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:121:23: error: expected primary-expression before ';' token
    121 |             ++metadata;
        |                       ^
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:554:37: error: request for member 'size' in 'input_metadata', which is of non-class type 'metadata_array' {aka 'int'}
    554 |                      input_metadata.size() - 1);
        |                                     ^~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:559:48: error: request for member 'size' in 'input_metadata', which is of non-class type 'metadata_array' {aka 'int'}
    559 |         for (size_t i = 0; i != input_metadata.size(); ++i) {
        |                                                ^~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:560:32: error: request for member 'is_initialized' in 'input_metadata', which is of non-class type 'metadata_array' {aka 'int'}
    560 |             if (input_metadata.is_initialized(i) && input_metadata[i].get() && input_metadata[i]->good()) {
        |                                ^~~~~~~~~~~~~~
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:560:69: error: invalid types 'metadata_array {aka int}[size_t {aka long unsigned int}]' for array subscript
    560 |             if (input_metadata.is_initialized(i) && input_metadata[i].get() && input_metadata[i]->good()) {
        |                                                                     ^
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:560:96: error: invalid types 'metadata_array {aka int}[size_t {aka long unsigned int}]' for array subscript
    560 |             if (input_metadata.is_initialized(i) && input_metadata[i].get() && input_metadata[i]->good()) {
        |                                                                                                ^
  /home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source/src/enblend.h:562:80: error: invalid types 'metadata_array {aka int}[size_t {aka long unsigned int}]' for array subscript
    562 |                                                                input_metadata[i].get(),
        |                                                                                ^
  make[2]: *** [src/CMakeFiles/enblend.dir/build.make:66: src/CMakeFiles/enblend.dir/enblend.cc.o] Error 1
  make[2]: Leaving directory '/home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source'
  make[1]: *** [CMakeFiles/Makefile2:104: src/CMakeFiles/enblend.dir/all] Error 2
  make[1]: Leaving directory '/home/terry/rpmbuild/BUILD/enblend-4.3.0-1529hg-Source'
  make: *** [Makefile:155: all] Error 2
  error: Bad exit status from /var/tmp/rpm-tmp.eGEDT2 (%build)

  
  RPM build errors:
      Macro expanded in comment on line 59: %{_docdir}/enblend/enblend.*

      Macro expanded in comment on line 60: %{_docdir}/enblend/enfuse.*

      Macro expanded in comment on line 61:
  %{_docdir}/enblend/examples/enfuse/*

      Bad exit status from /var/tmp/rpm-tmp.eGEDT2 (%build)
  [terry@localhost rpmbuild]$ 

  Hope this helps.
  Cheers,
  Terry

To manage notifications about this bug go to:
https://bugs.launchpad.net/enblend/+bug/1849220/+subscriptions


References