bugLordsAWar! - Bugs: bug #32796, ./configure fails on SDL_mixer.h...

 
 

bug #32796: ./configure fails on SDL_mixer.h on OpenBSD-current

Submitted by:  None
Submitted on:  Tue 15 Mar 2011 11:33:21 PM UTC  
 
Category: building/compilationSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 16 Mar 2011 12:36:04 AM UTC, comment #3:

The original submission was with 0.2.0-pre2, but I believe nothing have changed in 0.2.0-pre4 regarding this issue.

Dmitrij D. Czarkoff <czarkoff>
Wed 16 Mar 2011 12:34:01 AM UTC, comment #2:

Whoops, I didn't notice that you attached your config.log.

It says you're trying to compile version 0.2.0-pre2.

Please note that the latest in the development branch is 0.2.0-pre4.

It appears that the --disable-sdltest configuration option isn't working properly.

It has been fixed in svn.

To fix it in your copy of the software:

place the line:
if test $enable_sdltest = yes; then

before the AC_TRY_RUN.

and put the line:
fi

after the subsequent AC_MSG_RESULT line.

Thanks for reporting this problem.

This appears in your config.log:
configure:15958: gcc -o conftest -g -O2 -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -lSDL_mixer conftest.c -lSDL_mixer >&5
/usr/bin/ld: cannot find -lSDL_mixer
--

The problem is that the configure script isn't using pkg-config for the SDL_Mixer library, so it doesn't get any LDFLAGS. Those LDFLAGS are necessary to making it compile on your particular system.
I suggest you hack the configure.ac file to use `pkg-config --libs SDL_Mixer' for the LIBS (around line 64), and SOUND_LIBS.

LordsAWar is also on FreeBSD. I suggest you look at how they've modified the configure script.

Good luck.

Ben Asselstine <benasselstine>
Project Administrator
Tue 15 Mar 2011 11:51:46 PM UTC, comment #1:

What version of LordsAWar! are you trying to compile?

Ben Asselstine <benasselstine>
Project Administrator
Tue 15 Mar 2011 11:33:21 PM UTC, original submission:

% ./configure --disable-static --disable-sdltest --with-boost-includedir=/usr/local/include
<...>
checking for SDL - version >= 1.2.0... yes
configure: error: *** SDL_mixer is not installed or has not been compiled
*** with ogg vorbis support

I copied the failed test and buit it with "gcc -I/usr/local/include `pkg-config --libs SDL_mixer` -o test test.c". The resuting binary exits with status 0.

What can I do to overcome this?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #22936:  config.log.gz added by None (7KiB - application/octet-stream - config.log after error)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by czarkoff (Posted a comment)
  • -unavailable- added by benasselstine (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Mar 2011 12:34:01 AM UTCbenasselstineOpen/ClosedOpen=>Closed
    Tue 15 Mar 2011 11:33:21 PM UTCNoneAttached File-=>Added config.log.gz, #22936

    Back to the top


    Powered by Savane 3.1-cleanup1