Re: Building trouble - redefinition of struct timeval

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Wed, 25 Jun 2008 15:54:09 +0200,
Caloro Maurizio wrote:
> 
> 
> Please i need help for following error message "redefinition of struct timeval - /include/global.h"
> 
> the configure script run without any Error, if i compile "alsa-lib-1.0.17rc2" on I386 Netbsd 4.0
> i receive folowing error break.
> 
> "./configure --prefix=/usr --sysconfdir=/etc --build=i386-unknown-netbsdelf4.0 --host=i386-unknown-netbsdelf4.0 --target=i386-unknown-netbsdelf4.0 --with-pythonlibs=lpython2.5 --with-pythonincludes=-I/usr/include/python2.5 --enable-shared=no --enable-static=yes" & gmake
> 
> gmake ... >
> 
> Making all in controll
> gmake[1]: Entering directory `/usr/source/alsa-lib-1.0.17rc2/src/control'
> if /bin/ksh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include    -g -O2 -MT cards.lo -MD -MP -MF ".deps/cards.Tpo" -c -o cards.lo cards.c; \
>         then mv -f ".deps/cards.Tpo" ".deps/cards.Plo"; else rm -f ".deps/cards.Tpo"; exit 1; fi
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -MT cards.lo -MD -MP -MF .deps/cards.Tpo -c cards.c -o cards.o
> In file included from ../../include/local.h:109,
>                  from control_local.h:22,
>                  from cards.c:35:
> ../../include/global.h:138: error: redefinition of 'struct timeval'
> ../../include/global.h:143: error: redefinition of 'struct timespec'
> gmake[1]: *** [cards.lo] Error 1
> gmake[1]: Leaving directory `/usr/source/alsa-lib-1.0.17rc2/src/control'
> gmake: *** [all-recursive] Error 1
> 
> 
> i have see that this its a possible  handle with Posix_C_Source but i dont found 
> the correct answer for me trouble.... Please for any Help i'am happy.

The code is written for glibc, and maybe yours doesn't fit with that
part.  Simply comment out that part.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux