Avogadro version
avogadro2-libs-1.90.0-12
Qt: 5.9.2
Desktop version
OS: Linux Scienfitic Linux (compatible with Redhat EL7)
Version: 7.6
Compiler: gcc-c+±4.8.5-39.el7.x86_64, cmake-2.8.12.2-2.el7.x86_64
Describe the bug
I am making a package of “avogadro2-libs-1.93.0-1.fc32” on the RHEL7 platform. But, the build fails in the part of “plugindownloader” due to missing “archive.h”.
The error message is the following. The cause of “la_int64_t” should be defined by “archive.h”. This header, “archive.h”, is defined in “zipextracter.h”.
Do you have any idea how to fix it?
In "avogadrolibs-1.93.0/avogadro/qtplugins/plugindownloader/zipextracter.h"
#include “archive.h”
#include “archive_entry.h”
We use the following packages which were required by the build.
- libarchive-3.1.2-14.el7_7.x86_64
- msgpack-3.1.0-2.el7.x86_64
- mmtf-cpp-devel-1.0.0-2.el7.x86_64
build.log
/tmp/avogadro2/BUILD/avogadrolibs-1.93.0/avogadro/qtplugins/plugindownloader/zipextracter.cpp: In member function ‘int Avogadro::QtPlugins::ZipExtracter::copyData(archive*, archive*)’:
/tmp/avogadro2/BUILD/avogadrolibs-1.93.0/avogadro/qtplugins/plugindownloader/zipextracter.cpp:38:3: error: ‘la_int64_t’ was not declared in this scope
la_int64_t offset;
^~~~~~~~~~
/tmp/avogadro2/BUILD/avogadrolibs-1.93.0/avogadro/qtplugins/plugindownloader/zipextracter.cpp:38:3: note: suggested alternative: ‘u_int64_t’
la_int64_t offset;
^~~~~~~~~~
u_int64_t
/tmp/avogadro2/BUILD/avogadrolibs-1.93.0/avogadro/qtplugins/plugindownloader/zipextracter.cpp:41:52: error: ‘offset’ was not declared in this scope
r = archive_read_data_block(ar, &buff, &size, &offset);
^~~~~~
/tmp/avogadro2/BUILD/avogadrolibs-1.93.0/avogadro/qtplugins/plugindownloader/zipextracter.cpp:41:52: note: suggested alternative: ‘off_t’
r = archive_read_data_block(ar, &buff, &size, &offset);
^~~~~~
off_t
Thank you in advance
Gen