Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error: flexible array member ‘fiemap::fm_extents’ #11

Closed
d47081 opened this issue Nov 28, 2023 · 6 comments
Closed

compilation error: flexible array member ‘fiemap::fm_extents’ #11

d47081 opened this issue Nov 28, 2023 · 6 comments

Comments

@d47081
Copy link

d47081 commented Nov 28, 2023

Ubuntu 23.10

In file included from /usr/include/features.h:502,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679,
                 from /usr/include/c++/13/cstddef:49,
                 from /usr/local/include/boost/config/compiler/gcc.hpp:165,
                 from /usr/local/include/boost/config.hpp:39,
                 from ./libtorrent/include/libtorrent/config.hpp:41,
                 from libtorrent/src/file.cpp:38:
/usr/include/dirent.h:191:12: note: declared here
  191 | extern int __REDIRECT (readdir_r,
      |            ^~~~~~~~~~
In file included from libtorrent/src/file.cpp:91:
/usr/include/linux/fiemap.h: In member function ‘libtorrent::size_type libtorrent::file::phys_offset(libtorrent::size_type)’:
/usr/include/linux/fiemap.h:37:30: error: flexible array member ‘fiemap::fm_extents’ not at end of ‘struct libtorrent::file::phys_offset(libtorrent::size_type)::fm’
   37 |         struct fiemap_extent fm_extents[]; /* array of mapped extents (out) */
      |                              ^~~~~~~~~~
libtorrent/src/file.cpp:1839:46: note: next member ‘fiemap_extent libtorrent::file::phys_offset(libtorrent::size_type)::fm::extent’ declared here
 1839 |                         struct fiemap_extent extent;
      |                                              ^~~~~~
libtorrent/src/file.cpp:1836:24: note: in the definition of ‘struct libtorrent::file::phys_offset(libtorrent::size_type)::fm’
 1836 |                 struct fm
      |                        ^~
make: *** [Makefile:1542: libtorrent/src/file.o] Error 1
@RealVegOs
Copy link

Just that! My Raspi 3 was running twisterd for years. As I lost the system image, I did not succeed to recompile it. This stuff needs more than a simple fork. Is there nobody with the required skills willing to maintain Twister?

Twister is dead in several ways. Glad to see the Fediverse grow and flourish. It's not P2P but it's decentralized and better than all commercial social networks. Lot of activists, media, scientists, universities and even German authorities are using it.

fediverse_120x120

@d47081
Copy link
Author

d47081 commented Jan 14, 2024

compilation still possible on Ubuntu 22.04 and Debian 12, I'm using first one build for Ubuntu 23.10 and it works well.

anyway in the official branch someone pushed updates for LTS libboost versions
pre-compiled binaries (amd64 and sometimes arm) also attached in TA Edition releases
https://github.com/twisterarmy/twister-core/releases/tag/twisterarmy-1.3

@RealVegOs
Copy link

It worked on Devuan (forgot the version, perhaps 4) for me, but not on Debian 12. The precompiled TA Edition twisterd runs on Debian 12. Just tested. THX!

@d47081
Copy link
Author

d47081 commented Jan 15, 2024

maybe I forgot and just copied 1.3 version for debian to deploy node faster

if nobody push updates for next LTS I'll try to make those fixes.
anyway, glad this release was useful for you it also includes additional DNS resolver to make new nodes connectable, because seed2.twister.net.co does not work time to time.

new users also can connect to the peers manually using following page:
https://twisterarmy.github.io/network

btw, twister-html TA edition contain additional templates and UI features e.g. build-in posts translation (configurable)

d47081 pushed a commit that referenced this issue Jan 18, 2024
d47081 added a commit that referenced this issue Jan 18, 2024
@d47081
Copy link
Author

d47081 commented Jan 18, 2024

@RealVegOs could you please try to recompile twister-core with this update 9a0d8cb

it works for me on Debian 12, just my Ubuntu 23.10 build have modified boost libraries to make the test.

TA branch already contain this update, and I've sent PR to official repo
miguelfreitas#463

@d47081 d47081 closed this as completed Jan 18, 2024
@RealVegOs
Copy link

THX much! Compiled and runs. I used this:
./autotool.sh
./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu/
make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants