delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/26/07:21:30

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Message-ID: <41F78AEF.7070808@igd.fhg.de>
Date: Wed, 26 Jan 2005 13:19:59 +0100
From: Juan Manuel Guerrero <juan DOT guerrero AT igd DOT fhg DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.6) Gecko/20040113
X-Accept-Language: de-at, de, en-us, en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: lfind() issue
X-Virus-Scanned: by amavisd-new at mailgate2.igd.fraunhofer.de
Reply-To: djgpp-workers AT delorie DOT com

I have not followed the development of lfind() at all so I do not know 
if this is already
known but it should be noticed that the compilation of djgpp fails due 
to the missing
inclusion of the appropriate header with the following error message:

gcc ... -c lfind.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
lfind.c: In function `l_general':
lfind.c:34: warning: implicit declaration of function `memcpy'
make.exe[3]: *** [lfind.o] Error 1
make.exe[2]: *** [all_subs] Error 2
make.exe[1]: *** [all] Error 2
make.exe: *** [subs] Error 2

Regards,
Juan M. Guerrero


diff -aruU3 djgpp.orig/src/libc/posix/search/lfind.c 
djgpp/src/libc/posix/search/lfind.c
--- djgpp.orig/src/libc/posix/search/lfind.c    2005-01-15 
19:16:16.000000000 +0000
+++ djgpp/src/libc/posix/search/lfind.c    2005-01-26 00:56:50.000000000 
+0000
@@ -10,6 +10,7 @@
 
 #include <search.h>
 #include <stdlib.h>
+#include <string.h>
 
 /* Local helper function that does the real work. */
 static void *

- Raw text -


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