LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-18-2019, 01:44 AM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
libfilezilla-0.17.0


Built the new libfilezilla this morning and then tried to rebuild the current filezilla. That failed stating that I need to build it with C++17. Is that compiler available for Slackware anywhere?
 
Old 06-18-2019, 04:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Could you show us the exact error?
 
Old 06-18-2019, 07:14 AM   #3
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Here ya goes -

#
In file included from /usr/include/libfilezilla/libfilezilla.hpp:4,
from ../../src/include/libfilezilla_engine.h:12,
from filezilla.h:1:
/usr/include/libfilezilla/private/defs.hpp:10:4: error: #error You need to use a C++17 compiler. Try passing -std=c++17 as compiler flag.
10 | #error You need to use a C++17 compiler. Try passing -std=c++17 as compiler flag.
| ^~~~~
In file included from /usr/include/libfilezilla/libfilezilla.hpp:7,
from ../../src/include/libfilezilla_engine.h:12,
from filezilla.h:1:
/usr/include/libfilezilla/string.hpp:38:14: error: ‘string_view’ in namespace ‘std’ does not name a type
38 | typedef std::string_view native_string_view;
| ^~~~~~~~~~~
/usr/include/libfilezilla/string.hpp:38:9: note: ‘std::string_view’ is only available from C++17 onwards
38 | typedef std::string_view native_string_view;
| ^~~
/usr/include/libfilezilla/string.hpp:45:47: error: ‘string_view’ is not a member of ‘std’
45 | native_string FZ_PUBLIC_SYMBOL to_native(std::string_view const& in);
| ^~~~~~~~~~~
/usr/include/libfilezilla/string.hpp:45:47: note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/libfilezilla/string.hpp:51:32: error: redefinition of ‘fz::native_string fz::to_native’
51 | native_string FZ_PUBLIC_SYMBOL to_native(std::wstring_view const& in);
| ^~~~~~~~~
/usr/include/libfilezilla/string.hpp:45:32: note: ‘fz::native_string fz::to_native’ previously declared here
45 | native_string FZ_PUBLIC_SYMBOL to_native(std::string_view const& in);
| ^~~~~~~~~
/usr/include/libfilezilla/string.hpp:51:47: error: ‘wstring_view’ is not a member of ‘std’
51 | native_string FZ_PUBLIC_SYMBOL to_native(std::wstring_view const& in);
| ^~~~~~~~~~~~
/usr/include/libfilezilla/string.hpp:54:53: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
54 | template<typename T, typename std::enable_if_t<std::is_same_v<native_string, typename std::decay_t<T>>, int> = 0>
| ^~~~~~~~~
| is_same
/usr/include/libfilezilla/string.hpp:54:53: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
54 | template<typename T, typename std::enable_if_t<std::is_same_v<native_string, typename std::decay_t<T>>, int> = 0>

#
 
Old 06-18-2019, 07:41 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
you need an svn snapshot of filezilla if you want to build it against libfilezilla-0.17.0, there isn't a release tarball that builds against the new 0.17.0 library.

create a tarball with
Code:
svn co https://svn.filezilla-project.org/svn/FileZilla3/trunk FileZilla
svn export FileZilla filezilla-r9335
tar Jcf FileZilla_r9335_src.tar.bz2 filezilla-r9335
then edit the filezilla.SlackBuild on SBo like
Code:
--- ./filezilla.SlackBuild.orig 2019-06-18 14:19:13.449170435 +0200
+++ ./filezilla.SlackBuild      2019-06-18 14:37:56.419170435 +0200
@@ -21,7 +21,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=filezilla
-VERSION=${VERSION:-3.42.1}
+VERSION=${VERSION:-r9335}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
@@ -76,6 +76,8 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+autoreconf -vi
+
 ./configure \
   --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \

Last edited by ponce; 06-18-2019 at 07:43 AM.
 
1 members found this post helpful.
Old 06-18-2019, 07:46 AM   #5
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Thank you Ponce. I'll stick with the older Filezilla. Works fine as is. Whomever put my error output in a scroll box, thank you. I just looked up
Code:
 code in a box
and was about to do that.

Went ahead and built with your recipe. Worked fine building against 0.17.0

Last edited by 3rensho; 06-18-2019 at 08:14 AM.
 
Old 06-28-2019, 02:05 AM   #6
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
I didn't bother upgrading libfilezilla until a stable filezilla-3.43 was released, which happened yesterday. On -current, building libfilezilla-0.17.1 and filezilla-3.43.0 using the SBo scripts and simply editing the version number was straightforward. In other words, with the latest filezilla tarball, ponce's workaround is no longer necessary.
 
  


Reply



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
SBo libfilezilla not building on 14.2 aikempshall Slackware 5 11-05-2018 07:25 AM

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

All times are GMT -5. The time now is 08:33 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