All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Caloro Maurizio" <mauric@gmx.ch>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Building trouble - redefinition of struct timeval
Date: Thu, 26 Jun 2008 10:40:32 +0200	[thread overview]
Message-ID: <20080626084032.261430@gmx.net> (raw)
In-Reply-To: <s5hy74t7btp.wl%tiwai@suse.de>


Hello Taksahi

Thanks wery mutch for your quick answer.... thats correct i dont have glibc on me Netbsd 
machine so i have to cut any code from global.h .... after meny attempts i dont find the 
correct solutions

Please can you give me more informations about i need to comment out from code.

i have try with this to delete but the errors are after this mutch more.....

>#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
>struct timeval {
>	time_t		tv_sec;		/* seconds */
>	long		tv_usec;	/* microseconds */
>};
>
>struct timespec {
>	time_t		tv_sec;		/* seconds */>
>	long		tv_nsec;	/* nanoseconds */
>};
>#endif
>
>/** Timestamp */
>typedef struct timeval snd_timestamp_t;
>/** Hi-res timestamp */
>typedef struct timespec snd_htimestamp_t;


-------- Original-Nachricht --------
> Datum: Wed, 25 Jun 2008 17:50:58 +0200
> Von: Takashi Iwai <tiwai@suse.de>
> An: "Caloro Maurizio" <mauric@gmx.ch>
> CC: alsa-devel@alsa-project.org
> Betreff: Re: [alsa-devel] Building trouble - redefinition of struct timeval

> 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




-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

  reply	other threads:[~2008-06-26  8:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25 13:54 Building trouble - redefinition of struct timeval Caloro Maurizio
2008-06-25 15:50 ` Takashi Iwai
2008-06-26  8:40   ` Caloro Maurizio [this message]
2008-06-26 15:27     ` Takashi Iwai
2008-06-27 13:58       ` Caloro Maurizio
2008-06-27 14:08         ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080626084032.261430@gmx.net \
    --to=mauric@gmx.ch \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.