LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2021, 08:56 AM   #1
SlackCoder
LQ Newbie
 
Registered: Nov 2020
Posts: 12

Rep: Reputation: Disabled
Compiling Mintest 5.4.1 on slackware current


Hi, I'm having trouble compiling the latest minetest on Slackware current, anyone know what the problem maybe? Its C++ related.

Code:
	In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:444:36: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
	  444 |         ClientInterface(const std::shared_ptr<con::Connection> &con);
	      |                                    ^~~~~~~~~~
	In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:34:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
	   33 | #include <set>
	  +++ |+#include <memory>
	   34 | #include <mutex>
	In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:444:46: error: expected ‘,’ or ‘...’ before ‘<’ token
	  444 |         ClientInterface(const std::shared_ptr<con::Connection> &con);
	      |                                              ^
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:517:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
	  517 |         std::shared_ptr<con::Connection> m_con;
	      |              ^~~~~~~~~~
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:517:9: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
	  517 |         std::shared_ptr<con::Connection> m_con;
	      |         ^~~
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:604:1: error: no declaration matches ‘ClientInterface::ClientInterface(const std::shared_ptr<con::Connection>&)’
	  604 | ClientInterface::ClientInterface(const std::shared_ptr<con::Connection> & con)
	      | ^~~~~~~~~~~~~~~
	In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:439:7: note: candidates are: ‘ClientInterface::ClientInterface(const ClientInterface&)’
	  439 | class ClientInterface {
	      |       ^~~~~~~~~~~~~~~
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:444:9: note:                 ‘ClientInterface::ClientInterface(int)’
	  444 |         ClientInterface(const std::shared_ptr<con::Connection> &con);
	      |         ^~~~~~~~~~~~~~~
	/tmp/SBo/minetest-5.4.1/src/clientiface.h:439:7: note: ‘class ClientInterface’ defined here
	  439 | class ClientInterface {
	      |       ^~~~~~~~~~~~~~~
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp: In member function ‘void ClientInterface::send(session_t, irr::u8, NetworkPacket*, bool)’:
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:701:9: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
	  701 |         m_con->Send(peer_id, channelnum, pkt, reliable);
	      |         ^~~~~
	      |         con
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp: In member function ‘void ClientInterface::sendToAll(NetworkPacket*)’:
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:711:25: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
	  711 |                         m_con->Send(client->peer_id,
	      |                         ^~~~~
	      |                         con
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp: In member function ‘void ClientInterface::sendToAllCompat(NetworkPacket*, NetworkPacket*, irr::u16)’:
	/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:736:17: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
	  736 |                 m_con->Send(client->peer_id,
	      |                 ^~~~~
	      |                 con
	make[2]: *** [src/CMakeFiles/minetest.dir/build.make:3254: src/CMakeFiles/minetest.dir/clientiface.cpp.o] Error 1
	make[1]: *** [CMakeFiles/Makefile2:465: src/CMakeFiles/minetest.dir/all] Error 2
	make: *** [Makefile:156: all] Error 2
 
Old 09-13-2021, 10:09 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,318

Rep: Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526Reputation: 3526
you need this upstream patch.
 
3 members found this post helpful.
Old 09-13-2021, 10:26 AM   #3
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 899

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Good to know...(I'm a few behind on minetest.) It's a nifty idea, but doesn't feel fully fleshed out yet. Rather, it doesn't have the modding scene that Minecraft has yet. It's definitely getting there, though.
 
Old 09-17-2021, 08:14 AM   #4
SlackCoder
LQ Newbie
 
Registered: Nov 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
thanks @ponce, I've created a slackbuild with the necessary patch. For anyone interested:

https://git.server.ky/slackcoder/slackbuilds/tree/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware live current or slackware live current lemonade Slackware 5 03-23-2018 06:28 AM
[SOLVED] Slackware 14.2 glibc-2.23 vs Slackware Current glibc-2.24 and the Current 4.4.17 Kernel kjhambrick Slackware 10 08-13-2016 01:00 AM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
Slackware64 -current vs Slackware -current or Slackware onebuck Slackware 16 06-23-2009 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration