LinuxQuestions.org
Review your favorite Linux distribution.
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 04-09-2012, 09:23 PM   #1
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 651

Rep: Reputation: 92
Cannot build physfs-2.0.2 on slackware64 -current


I am having trouble building physfs-2.0.2 from Sbo on a slackware64 -current setup:

Code:
[ 47%] Building C object CMakeFiles/physfs.dir/archivers/wad.o
/tmp/SBo/physfs-2.0.2/archivers/wad.c: In function ‘wad_load_entries’:
/tmp/SBo/physfs-2.0.2/archivers/wad.c:248:10: error: variable ‘lastDirectory’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/physfs.dir/archivers/wad.o] Error 1
make[1]: *** [CMakeFiles/physfs.dir/all] Error 2
make: *** [all] Error 2
I have found this error elsewhere but cannot see the fix . Anybody else have this running successfully?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-09-2012, 10:43 PM   #2
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 293

Rep: Reputation: 76
It looks like the -Werror flag is giving you a problem. Builds fine here on Slackware 13.37. It seems that the gentoo and archlinux build scripts actually gets rid of -Werror. You might want to try this in the slackbuild right before cmake is ran.

Code:
--- physfs.SlackBuild.orig      2011-11-04 17:31:00.000000000 -0700
+++ physfs.SlackBuild   2012-04-09 19:39:25.406019188 -0700
@@ -65,6 +65,8 @@
 chown -R root:root .
 chmod -R a-s,u+w,go+r-w .
 
+sed -i 's|-Werror||' CMakeLists.txt
+
 cmake \
   -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
   -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
 
2 members found this post helpful.
Old 04-09-2012, 11:21 PM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 651

Original Poster
Rep: Reputation: 92
Thanks a lot, this allowed compilation to succeed . One step closer to running dx2-rebirth!!!
 
  


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
[SOLVED] Slackware64 -current: w3m fails to build... andrew.46 Slackware 12 06-16-2013 02:05 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 10:04 AM
What changes must be made in a slackBuild from 11.x To build for Slackware64 current? Alexvader Slackware 5 12-30-2009 02:38 PM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 07:50 PM
Slackware64-current on a second HD. glore2002 Slackware 7 08-23-2009 12:38 PM


All times are GMT -5. The time now is 04:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration