X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 11 Jun 2009 17:10:46 +0200 From: "Juan Manuel Guerrero" Message-ID: <20090611151046.27260@gmx.net> MIME-Version: 1.0 Subject: 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+7AWQ3TVm7Ddkzm7wSzCMC4Riwn3fcVLvGQo2ZsR jLjwrPVR8n17jDUu8P11OFrWutaHsHYIYTLA== Content-Transfer-Encoding: 8bit X-GMX-UID: EHpZB51rbHIhWiYDpDU00gYiJihyalAn X-FuHaFi: 0.55 Reply-To: djgpp-workers AT delorie DOT com 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 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; -- GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02