LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2004, 03:49 PM   #1
icehenge
Member
 
Registered: Jan 2004
Location: Tennessee
Distribution: Slackware 8.1 (KDE 3.0.1)
Posts: 69

Rep: Reputation: 15
SDL error while compiling software


Hello,

Back again today
While compiling doomsday [Doom] I have received this error message.


Code:
checking dependency style of gcc... (cached) gcc
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/bin/sdl-config
configure: error: *** SDL version 1.2.0 not found!
bash-2.05a$

Here is the more 'detailed' error from the config.log file

Code:
configure:19713: checking dependency style of gcc
configure:19796: result: gcc
configure:19863: checking for sdl-config
configure:19881: found /usr/bin/sdl-config
configure:19894: result: /usr/bin/sdl-config
configure:19902: checking for SDL - version >= 1.2.0
configure:19992: gcc -o conftest -Wunused-variable -Wunused-function -g -O2 -I/usr/include/SDL -D_REENTRANT   conftest.c  -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread >&5
cc1: Invalid option `-Wunused-variable'
cc1: Invalid option `-Wunused-function'
configure:19995: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */


I installed the SDL package from here
http://www.slackware.org/pb/searchpk...8.1&string=SDL
using the pkgtool in slackware.

Could I ask for a translation of what cc1 and wunused variable/function point to?
I'm not sure what direction to look in.

Alex
 
Old 09-28-2004, 04:06 PM   #2
icehenge
Member
 
Registered: Jan 2004
Location: Tennessee
Distribution: Slackware 8.1 (KDE 3.0.1)
Posts: 69

Original Poster
Rep: Reputation: 15
I just searched the config.log again this time for "Wunused"


Code:
configure:19310: $? = 0
configure:19312: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
configure:19315: $? = 0
configure:19317: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:19320: $? = 1
configure:19323: checking whether we are using the GNU C compiler
configure:19378: result: yes
configure:19384: checking whether gcc accepts -g
configure:19434: result: yes
configure:19451: checking for gcc option to accept ANSI C
configure:19557: result: none needed
configure:19575: gcc -c -Wunused-variable -Wunused-function -g -O2  conftest.c >&5
cc1: Invalid option `-Wunused-variable'
cc1: Invalid option `-Wunused-function'
conftest.c:2: parse error before `me'
configure:19581: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif

Code:
configure:20022: result: no
configure:20060: gcc -o conftest -Wunused-variable -Wunused-function -g -O2 -I/usr/include/SDL -D_REENTRANT   conftest.c  -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread >&5
cc1: Invalid option `-Wunused-variable'
cc1: Invalid option `-Wunused-function'
configure:20066: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|

Code:
CC='gcc'
CCDEPMODE='depmode=gcc'
CFLAGS='-Wunused-variable -Wunused-function -g -O2'
 
  


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
Problem compiling SDL-Programm Cornholio Programming 2 03-07-2005 10:57 AM
SDL compiling problem kubaj Programming 2 10-27-2004 11:15 AM
Help Compiling SDL(Simple DirectMedia Layer) Mr.Ampersand() Programming 26 07-24-2004 05:15 AM
SDL Compiling Help slackwarefan Linux - Software 1 02-18-2004 04:41 PM
SDL Error While Compiling... Chryzmo Linux - Newbie 1 09-01-2003 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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