LinuxQuestions.org
Visit Jeremy's Blog.
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
Member
 
Registered: Nov 2020
Posts: 32

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: 7,068

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

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
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
Member
 
Registered: Nov 2020
Posts: 32

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/
 
1 members found this post helpful.
Old 11-29-2021, 10:41 AM   #5
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,512

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
For what it's worth, this patch is still needed. Not sure when the next version is coming out? Seems like a bug that would be fixed upstream quickly.
 
Old 01-08-2022, 03:19 PM   #6
at0
LQ Newbie
 
Registered: May 2012
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by SlackCoder View Post
thanks @ponce, I've created a slackbuild with the necessary patch. For anyone interested:

https://git.server.ky/slackcoder/slackbuilds/tree/
Thanks! Have built Minetest with your SlackBuild! My son is happy! )))
 
1 members found this post helpful.
  


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 07:03 PM.

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