[alsa-devel] Building trouble - redefinition of struct timeval

Takashi Iwai tiwai at suse.de
Fri Jun 27 16:08:05 CEST 2008


At Fri, 27 Jun 2008 15:58:15 +0200,
Caloro Maurizio wrote:
> 
> 
> >>
> >>Basically removing the block ifdef POSIX_C_SOURCE should suffice.
> >>You need the typedefs below.
> >>
> >>Takashi
> >>
> 
> 
> Hello Takashi
> 
> Thanks for your fast and professional feedback, so i have to many changes now 
> that this script run on me Netbsd machine.....so now i  think i need your help 
> 
> Please ... what do you think offer this error block....
> thanks for your answer 
> MC
> 
> ....run.....run....run.....run....run.....run
> gmake[2]: Nothing to be done for `all-am'.
> gmake[2]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/src'
> gmake[1]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/src'
> Making all in modules
> gmake[1]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/modules'
> Making all in mixer
> gmake[2]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/modules/mixer'
> Making all in simple
> gmake[3]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/modules/mixer/simple'
> gmake[3]: Nothing to be done for `all'.
> gmake[3]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/modules/mixer/simple'
> gmake[3]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/modules/mixer'
> gmake[3]: Nothing to be done for `all-am'.
> gmake[3]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/modules/mixer'
> gmake[2]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/modules/mixer'
> gmake[2]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/modules'
> gmake[2]: Nothing to be done for `all-am'.
> gmake[2]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/modules'
> gmake[1]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/modules'
> Making all in aserver
> gmake[1]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/aserver'
> /bin/ksh ../libtool --tag=CC --mode=link gcc  -g -O2   -o aserver  aserver.o ../src/libasound.la 
> gcc -g -O2 -o aserver aserver.o  ../src/.libs/libasound.a -lm -lpthread -lrt
> ../src/.libs/libasound.a(pcm_linear.o): In function `snd1_pcm_linear_convert':
> /usr/source/alsa-lib-1.0.17rc2/src/pcm/plugin_ops.h:307: undefined reference to `__swab16'

These must be the macros defined in <byteswap.h>.
I don't know how is it in NetBSD, but these are stuff to swap bytes in
16 and 32 bits byte arrays.


Takashi


More information about the Alsa-devel mailing list