LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08:23 PM   #1
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
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, 09:43 PM   #2
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
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, 10:21 PM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Original Poster
Rep: Reputation: 90
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 01:05 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
What changes must be made in a slackBuild from 11.x To build for Slackware64 current? Alexvader Slackware 5 12-30-2009 01:38 PM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM
Slackware64-current on a second HD. glore2002 Slackware 7 08-23-2009 11:38 AM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
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