UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #467 compilation error with alsa headers version 1.0.14_rc1
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Engine
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/467 Item 467] imported from sourceforge.net tracker on 2013-01-28 18:21:29

* [ALSA] src/ports/linux/snd_alsa.c
In file included from /usr/include/alsa/asoundlib.h:44,
from src/ports/linux/snd_alsa.h:17,
from src/ports/linux/snd_alsa.c:22:
/usr/include/alsa/global.h:134: error: redefinition of 'struct timeval'
/usr/include/alsa/global.h:139: error: redefinition of 'struct timespec'
make: *** [release-linux-gnu-i386/snd-alsa/ports/linux/snd_alsa.o] error 1

any ideas how to fix it?
===== Comments Ported from Sourceforge =====

====== azhrarn (2007-01-07 19:02:44) ======

Logged In: YES
user_id=343480
Originator: NO

This is basically an error in the alsa headers - it seems they expect a define that is not in the time.h header even though it is not...

However the following got it to compile: Add the following line:
#define _POSIX_C_SOURCE 0
just before
#include "snd_alsa.h"

It might not fix ALSA - the sound sounds awful (much like sending random bits between the samples) but it compiles and OSS works fine.
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif