weechat-xmpp icon indicating copy to clipboard operation
weechat-xmpp copied to clipboard

Build failing on Ubuntu 24

Open jwinterm opened this issue 7 months ago • 0 comments

I think that I have gotten all dependencies installed, but when I run make now I get the following error:

jw@jw-laptop:~/tmp/weechat-xmpp$ make
echo > ./.depend
for src in plugin.cpp account.cpp buffer.cpp channel.cpp command.cpp completion.cpp config.cpp connection.cpp input.cpp message.cpp omemo.cpp pgp.cpp user.cpp util.cpp config/breadcrumb.cpp config/file.cpp config/section.cpp config/account.cpp config/option.cpp data/omemo.cpp data/capability.cpp xmpp/presence.cpp xmpp/iq.cpp xmpp/node.cpp  tests/main.cc; do \
        dir="$(dirname $src)"; \
        src="$(basename $src)"; \
        if [[ $src == *.cpp ]]; then \
                echo "g++  -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++23 -gdwarf-4 -Wall -Wextra -pedantic -Wno-missing-field-initializers -Ilibstrophe -Ideps -I/usr/include/omemo/ -I/usr/include/libxml2  -I/usr/include/signal  -MM -MMD -MP -MF - \
                        -MT $dir/.${src/.cpp/.o} $dir/$src >> ./.depend"; \
                g++  -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++23 -gdwarf-4 -Wall -Wextra -pedantic -Wno-missing-field-initializers -Ilibstrophe -Ideps -I/usr/include/omemo/ -I/usr/include/libxml2  -I/usr/include/signal  -MM -MMD -MP -MF - \
                        -MT $dir/.${src/.cpp/.o} $dir/$src >> ./.depend || true ; \
        elif [[ $src == *.c ]]; then \
                echo "cc  -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fdebug-prefix-map=.=/home/jw/tmp/weechat-xmpp -std=gnu99 -gdwarf-4 -Wall -Wextra -pedantic -Werror-implicit-function-declaration -Wno-missing-field-initializers -D_XOPEN_SOURCE=700 -Ilibstrophe -Ideps -I/usr/include/omemo/ -I/usr/include/libxml2  -I/usr/include/signal  -MM -MMD -MP -MF - \
                        -MT $dir/.${src/.c/.o} $dir/$src >> ./.depend"; \
                cc  -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fdebug-prefix-map=.=/home/jw/tmp/weechat-xmpp -std=gnu99 -gdwarf-4 -Wall -Wextra -pedantic -Werror-implicit-function-declaration -Wno-missing-field-initializers -D_XOPEN_SOURCE=700 -Ilibstrophe -Ideps -I/usr/include/omemo/ -I/usr/include/libxml2  -I/usr/include/signal  -MM -MMD -MP -MF - \
                        -MT $dir/.${src/.c/.o} $dir/$src >> ./.depend || true ; \
        else continue; \
        fi; \
done
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
/bin/sh: 4: [[: not found
/bin/sh: 9: [[: not found
make weechat-xmpp && make test
make[1]: Entering directory '/home/jw/tmp/weechat-xmpp'
g++ -DGIT_COMMIT=e14d92-dirty  -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++23 -gdwarf-4 -Wall -Wextra -pedantic -Wno-missing-field-initializers -Ilibstrophe -Ideps -I/usr/include/omemo/ -I/usr/include/libxml2  -I/usr/include/signal  -c account.cpp -o .account.o
In file included from account.cpp:22:
account.hh: In constructor ‘weechat::account::account(weechat::config_file&, std::string)’:
account.hh:72:21: warning: ‘weechat::account::name’ will be initialized after [-Wreorder]
   72 |         std::string name;
      |                     ^~~~
account.hh:63:20: warning:   ‘xmpp_mem_t weechat::account::memory’ [-Wreorder]
   63 |         xmpp_mem_t memory = { nullptr };
      |                    ^~~~~~
account.cpp:276:1: warning:   when initialized here [-Wreorder]
  276 | weechat::account::account(config_file& config_file, const std::string name)
      | ^~~~~~~
account.hh:76:29: warning: ‘weechat::account::connection’ will be initialized after [-Wreorder]
   76 |         weechat::connection connection;
      |                             ^~~~~~~~~~
account.cpp:279:89: warning:   base ‘weechat::config_account’ [-Wreorder]
  279 |     , config_account(config_file, config_file.configuration.section_account, name.data())
      |                                                                                         ^
account.cpp:276:1: warning:   when initialized here [-Wreorder]
  276 | weechat::account::account(config_file& config_file, const std::string name)
      | ^~~~~~~
account.cpp:279:89: error: use of deleted function ‘weechat::xmpp::omemo::omemo()’
  279 |     , config_account(config_file, config_file.configuration.section_account, name.data())
      |                                                                                         ^
In file included from account.cpp:21:
omemo.hh:28:16: note: ‘weechat::xmpp::omemo::omemo()’ is implicitly deleted because the default definition would be ill-formed:
   28 |         struct omemo
      |                ^~~~~
omemo.hh:28:16: error: use of deleted function ‘weechat::xmpp::omemo::dbi::dbi()’
omemo.hh:34:20: note: ‘weechat::xmpp::omemo::dbi::dbi()’ is implicitly deleted because the default definition would be ill-formed:
   34 |             struct dbi {
      |                    ^~~
omemo.hh:34:20: error: no matching function for call to ‘lmdb::dbi::dbi()’
In file included from omemo.hh:12:
/usr/include/lmdb++.h:1422:3: note: candidate: ‘lmdb::dbi::dbi(lmdb::dbi&&)’
 1422 |   dbi(dbi&& other) noexcept {
      |   ^~~
/usr/include/lmdb++.h:1422:3: note:   candidate expects 1 argument, 0 provided
/usr/include/lmdb++.h:1416:3: note: candidate: ‘lmdb::dbi::dbi(MDB_dbi)’
 1416 |   dbi(const MDB_dbi handle) noexcept
      |   ^~~
/usr/include/lmdb++.h:1416:3: note:   candidate expects 1 argument, 0 provided
make[1]: *** [makefile:158: .account.o] Error 1
make[1]: Leaving directory '/home/jw/tmp/weechat-xmpp'
make: *** [makefile:131: all] Error 2

I am using the latest weechat build from source and otherwise default from ubuntu repos. I had to build weechat from source to get the matrix-rust plugin working.

jwinterm avatar May 05 '25 13:05 jwinterm