#10 Make fails with --with-pth option, sound skips

open
nobody
None
5
2006-10-19
2006-10-19
sasepp
No

This same problem has been reported in the "Help"
forums also, with no replies.

My configuration:

CPU: P3 800Mhz (Coppermine)
OS: Debian Etch (testing)
mp3blaster version: 3.2.3
pthreads: 2.0.7
gcc: 4.1.1

-----

If the mp3blaster is compiled with OS threads sound
playback will skip _continuously_. If either one of

--enable-newthreads
--with-pth

is enabled, make fails with following error message:

main.cc: In function 'int main(int, char**, char**)':
main.cc:5401: error: 'struct main(int, char**,
char**)::_tmp' has no member named 'threads'
make[2]: *** [main.o] Error 1
make[2]: Leaving directory
`/home/samuli/Downloads/mp3blaster-3.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/samuli/Downloads/mp3blaster-3.2.3'

-----

Below the full - hopefully relevant - output:

Making all in src
make[2]: Entering directory
`/home/samuli/Downloads/mp3blaster-3.2.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mpegsound
-I/usr/include/ncurses -I../nmixer -I/usr/local/include
-I/usr/include
-DMP3BLASTER_DOCDIR=\"/usr/local/share/mp3blaster\" -g
-O2 -I/usr/include -MT main.o -MD -MP -MF
".deps/main.Tpo" \ -c -o main.o `test -f 'main.cc' || echo
'./'`main.cc; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi
/usr/include/pthread.h:285: error: conflicting
declaration 'typedef struct pthread_st* pthread_t'
/usr/include/bits/pthreadtypes.h:152: error:
'pthread_t' has a previous declaration as 'typedef long
unsigned int pthread_t'
/usr/include/pthread.h:286: error: conflicting
declaration 'typedef struct pthread_attr_st*
pthread_attr_t'
/usr/include/bits/pthreadtypes.h:54: error:
'pthread_attr_t' has a previous declaration as 'typedef
struct __pthread_attr_s pthread_attr_t'
/usr/include/pthread.h:287: error: conflicting
declaration 'typedef int pthread_key_t'
/usr/include/bits/pthreadtypes.h:82: error:
'pthread_key_t' has a previous declaration as 'typedef
unsigned int pthread_key_t'
/usr/include/pthread.h:289: error: conflicting
declaration 'typedef int pthread_mutexattr_t'
/usr/include/bits/pthreadtypes.h:102: error:
'pthread_mutexattr_t' has a previous declaration as
'typedef struct pthread_mutexattr_t pthread_mutexattr_t'
/usr/include/pthread.h:290: error: conflicting
declaration 'typedef struct pthread_mutex_st*
pthread_mutex_t'
/usr/include/bits/pthreadtypes.h:95: error:
'pthread_mutex_t' has a previous declaration as
'typedef struct pthread_mutex_t pthread_mutex_t'
/usr/include/pthread.h:291: error: conflicting
declaration 'typedef int pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:79: error:
'pthread_condattr_t' has a previous declaration as
'typedef struct pthread_condattr_t pthread_condattr_t'
/usr/include/pthread.h:292: error: conflicting
declaration 'typedef struct pthread_cond_st*
pthread_cond_t'
/usr/include/bits/pthreadtypes.h:72: error:
'pthread_cond_t' has a previous declaration as 'typedef
struct pthread_cond_t pthread_cond_t'
/usr/include/pthread.h:293: error: conflicting
declaration 'typedef int pthread_rwlockattr_t'
/usr/include/bits/pthreadtypes.h:128: error:
'pthread_rwlockattr_t' has a previous declaration as
'typedef struct pthread_rwlockattr_t pthread_rwlockattr_t'
/usr/include/pthread.h:294: error: conflicting
declaration 'typedef struct pthread_rwlock_st*
pthread_rwlock_t'
/usr/include/bits/pthreadtypes.h:120: error:
'pthread_rwlock_t' has a previous declaration as
'typedef struct _pthread_rwlock_t pthread_rwlock_t'
main.cc: In function 'int main(int, char**, char**)':
main.cc:5401: error: 'struct main(int, char**,
char**)::_tmp' has no member named 'threads'
make[2]: *** [main.o] Error 1
make[2]: Leaving directory
`/home/samuli/Downloads/mp3blaster-3.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/samuli/Downloads/mp3blaster-3.2.3'
make: *** [all] Error 2

Discussion

  • sasepp
    sasepp
    2006-10-19

    Logged In: YES
    user_id=1591697

    Forgot these perhaps relevant pieces of information:

    00:08.0 Multimedia audio controller: ESS Technology ES1978
    Maestro 2E (rev 10)

    Alsa/Alsa OSS version: 1.0.12