Mixer 1.0 install probs

I just downloaded SDL 1.0 (thanks for fixing the broken link Sam :slight_smile: )
It installed on my Linux box without a hitch. I ran “/sbin/ldconfig” right
afterwards.

Now I’m trying to install the mixer library (v. 1.0) and I’m getting errors:

... > rm -f .libs/music.lo > gcc -DPACKAGE=\"mixer\" -DVERSION=\"1.0.0\" -I. -I. -g -O2 -I/usr/local/include -D_REENTRANT -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC -I./timidity -DMP3_MUSIC -c -fPIC -DPIC music.c -o .libs/music.lo > music.c:81: parse error before `UNIMOD' > music.c:81: warning: no semicolon at end of struct or union > music.c:81: warning: no semicolon at end of struct or union > music.c:89: parse error before `}' > music.c:89: warning: data definition has no type or storage class > music.c:95: parse error before `}'

<That stuff up there looks like it may have cascaded. :slight_smile: >

music.c: In function `music_mixer’:
music.c:118: dereferencing pointer to incomplete type

music.c:194: dereferencing pointer to incomplete type
music.c:156: warning: unreachable code at beginning of switch statement
music.c: In function open_music': music.c:266: too few arguments to functionMikMod_Init’
music.c:267: _mm_errmsg' undeclared (first use in this function) music.c:267: (Each undeclared identifier is reported only once music.c:267: for each function it appears in.) music.c:267:_mm_errno’ undeclared (first use in this function)
music.c: In function `Mix_LoadMUS’:
music.c:316: sizeof applied to an incomplete type
music.c:321: dereferencing pointer to incomplete type
music.c:325: dereferencing pointer to incomplete type

music.c:377: dereferencing pointer to incomplete type
music.c:378: dereferencing pointer to incomplete type
music.c:379: _mm_errmsg' undeclared (first use in this function) music.c:379:_mm_errno’ undeclared (first use in this function)
music.c:380: dereferencing pointer to incomplete type
music.c:386: dereferencing pointer to incomplete type
music.c:388: dereferencing pointer to incomplete type
music.c: In function `Mix_FreeMusic’:
music.c:401: dereferencing pointer to incomplete type
music.c:403: dereferencing pointer to incomplete type

<snip!>

music.c:427: dereferencing pointer to incomplete type
music.c:432: dereferencing pointer to incomplete type
music.c:412: warning: unreachable code at beginning of switch statement
music.c: In function `lowlevel_play’:
music.c:448: dereferencing pointer to incomplete type

<snip…>

music.c:479: dereferencing pointer to incomplete type
music.c:451: warning: unreachable code at beginning of switch statement
music.c: In function `Mix_PlayMusic’:
music.c:498: dereferencing pointer to incomplete type

<snip… a bunch of files have this problem>

music.c:566: dereferencing pointer to incomplete type
music.c:546: warning: unreachable code at beginning of switch statement
music.c: In function `lowlevel_halt’:
music.c:579: dereferencing pointer to incomplete type
music.c:582: dereferencing pointer to incomplete type
music.c:602: dereferencing pointer to incomplete type
music.c:582: warning: unreachable code at beginning of switch statement

<snip… there are a number of these switch errors, too>
<snip… and finally, it ends up with:>

make[1]: *** [music.lo] Error 1
make[1]: Leaving directory `/home/kendrick/tmp/mixer-1.0.0’
make: *** [all-recursive] Error 1

Again, I’m using SDL 1.0.0. I’m running RedHat 6.1, and uname -a sez:

Linux amiga.plush.net 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown

Thanks!

-bill!

I had similar errors once when I tried to build SMPEG with an older
version of GCC and Glibc. I’m not saying that that is your problem,
just that I had similar errors. After I upgraded it compiled fine.

Phoenix Kokido
members.xoom.com/kokido
@Wes_Poole

William Kendrick wrote:

I just downloaded SDL 1.0 (thanks for fixing the broken link Sam :slight_smile: )
It installed on my Linux box without a hitch. I ran “/sbin/ldconfig” right
afterwards.

Now I’m trying to install the mixer library (v. 1.0) and I’m getting
errors:

... > rm -f .libs/music.lo > gcc -DPACKAGE=\"mixer\" -DVERSION=\"1.0.0\" -I. -I. -g -O2

-I/usr/local/include -D_REENTRANT -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC
-I./mikmod -DMID_MUSIC -I./timidity -DMP3_MUSIC -c -fPIC -DPIC music.c -o
.libs/music.lo

music.c:81: parse error before UNIMOD' music.c:81: warning: no semicolon at end of struct or union music.c:81: warning: no semicolon at end of struct or union music.c:89: parse error before}‘
music.c:89: warning: data definition has no type or storage class
music.c:95: parse error before `}’

<That stuff up there looks like it may have cascaded. :slight_smile: >

music.c: In function `music_mixer’:
music.c:118: dereferencing pointer to incomplete type

music.c:194: dereferencing pointer to incomplete type
music.c:156: warning: unreachable code at beginning of switch statement
music.c: In function open_music': music.c:266: too few arguments to functionMikMod_Init’
music.c:267: _mm_errmsg' undeclared (first use in this function) music.c:267: (Each undeclared identifier is reported only once music.c:267: for each function it appears in.) music.c:267:_mm_errno’ undeclared (first use in this function)
music.c: In function `Mix_LoadMUS’:
music.c:316: sizeof applied to an incomplete type
music.c:321: dereferencing pointer to incomplete type
music.c:325: dereferencing pointer to incomplete type

music.c:377: dereferencing pointer to incomplete type
music.c:378: dereferencing pointer to incomplete type
music.c:379: _mm_errmsg' undeclared (first use in this function) music.c:379:_mm_errno’ undeclared (first use in this function)
music.c:380: dereferencing pointer to incomplete type
music.c:386: dereferencing pointer to incomplete type
music.c:388: dereferencing pointer to incomplete type
music.c: In function `Mix_FreeMusic’:
music.c:401: dereferencing pointer to incomplete type
music.c:403: dereferencing pointer to incomplete type

<snip!>

music.c:427: dereferencing pointer to incomplete type
music.c:432: dereferencing pointer to incomplete type
music.c:412: warning: unreachable code at beginning of switch statement
music.c: In function `lowlevel_play’:
music.c:448: dereferencing pointer to incomplete type

<snip…>

music.c:479: dereferencing pointer to incomplete type
music.c:451: warning: unreachable code at beginning of switch statement
music.c: In function `Mix_PlayMusic’:
music.c:498: dereferencing pointer to incomplete type

<snip… a bunch of files have this problem>

music.c:566: dereferencing pointer to incomplete type
music.c:546: warning: unreachable code at beginning of switch statement
music.c: In function `lowlevel_halt’:
music.c:579: dereferencing pointer to incomplete type
music.c:582: dereferencing pointer to incomplete type
music.c:602: dereferencing pointer to incomplete type
music.c:582: warning: unreachable code at beginning of switch statement

<snip… there are a number of these switch errors, too>
<snip… and finally, it ends up with:>

make[1]: *** [music.lo] Error 1
make[1]: Leaving directory `/home/kendrick/tmp/mixer-1.0.0’
make: *** [all-recursive] Error 1

Again, I’m using SDL 1.0.0. I’m running RedHat 6.1, and uname -a sez:

Linux amiga.plush.net 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686
unknown>

Thanks!

-bill!