delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2009/07/28/12:48:20

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Date: Tue, 28 Jul 2009 18:20:40 +0200
From: "Juan Manuel Guerrero" <juan DOT guerrero AT gmx DOT de>
In-Reply-To: <4A6B2F30.9020605@iki.fi>
Message-ID: <20090728162040.290660@gmx.net>
MIME-Version: 1.0
References: <20090611151046 DOT 27260 AT gmx DOT net> <4A6B2F30 DOT 9020605 AT iki DOT fi>
Subject: Re: multiple definitions of _rdtsc
To: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Priority: 3
X-Provags-ID: V01U2FsdGVkX1/+ZjYMFy/+IoUwNPrOeOk3flRKiPJsqA7N4+bvV7
5W+td9nQjWt+UA0zDlcfVqOtmiGFWhVqlHJw==
X-GMX-UID: aRdJYqPWLi50BHwf92ppeiprZml1ZBg3
X-FuHaFi: 0.54
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

-------- Original-Nachricht --------
> Datum: Sat, 25 Jul 2009 19:13:36 +0300
> Von: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
> An: djgpp-workers AT delorie DOT com
> Betreff: Re: multiple definitions of _rdtsc

> 11.06.2009 18:10, Juan Manuel Guerrero kirjoitti:
> > While I was trying to port m4 I got for every file that includes time.h
> an
> > error message similar to this one:
> >
> > builtin.o: In function `_rdtsc':
> > c:/djgpp-2.04/include/time.h:107: multiple definition of `__rdtsc'
> > m4.o:c:/djgpp-2.04/include/time.h:107: first defined here
> >
> >
> > The patch below can fix the issue.
> >
> > Regards,
> > Juan M. Guerrero
> >
> 
> Is somebody going to apply the patch, or I should apply the initial
> version (below)?
> 
> I could add to the list of broken things (due to this problem) also
> gfortran
> library libgfortran.a. It is not used in the build process, so build
> succeeds,
> but the library is broken after build.
> 
> Andris
> 
> >
> >
> >
> > diff -arU5 djgpp.orig/include/time.h djgpp/include/time.h
> > --- djgpp.orig/include/time.h	2007-12-11 07:01:20 +0000
> > +++ djgpp/include/time.h	2009-06-11 16:59:40 +0000
> > @@ -108,13 +108,13 @@
> >   int		select(int _nfds, fd_set *_readfds, fd_set *_writefds, fd_set
> *_exceptfds, struct timeval *_timeout);
> >   int		settimeofday(struct timeval *_tp, ...);
> >   void		tzsetwall(void);
> >   uclock_t	uclock(void);
> >
> > -unsigned long long _rdtsc(void);
> > +static unsigned long long _rdtsc(void);
> >
> > -extern __inline__ unsigned long long
> > +static __inline__ unsigned long long
> >   _rdtsc(void)
> >   {
> >     unsigned long long result;
> >     __asm__ __volatile__ ("rdtsc" : "=A"(result) );
> >     return result;


Apply your patch.  I will have no CVS access for some time.

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019