Mail Archives: djgpp-workers/2005/01/20/13:59:36
On Thu, 20 Jan 2005 19:20:55 +0100 (CET), ams AT ludd DOT ltu DOT se wrote:
>According to Juan Manuel Guerrero:
>> I have tried to compile the actual djgpp cvs tree (2005-01-16) and it fails
>> with the following error message:
>>
>> G:/djgpp/bin/make.exe -C posix/regex
>> gcc ... -c regcomp.c
>> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
>> gcc ... -c regerror.c
>> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
>> gcc ... -c regexec.c
>> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
>> gcc ... -c regfree.c
>> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
>
>Can't help with those.
>
>> building new response file
>> G:/djgpp/bin/make.exe -C posix/search
>> make.exe[3]: *** No rule to make target `hcreate.o', needed by `all'. Stop.
>> make.exe[2]: *** [all_subs] Error 2
>> make.exe[1]: *** [all] Error 2
>> make.exe: *** [subs] Error 2
>>
>> Am I missing something here?
>
>Yes. You are missing the file hcreate.c and so is everyone else but
>me. I've been hacking on the hash functions hcreate(), hestroy() and
>hsearch(), as you might have guessed.
>
>Alas I didn't remember to clean that makefile from hcreate.c before
>committing the lfind() and lsearch() patch.
>
>
>There are several solutions:
>
>1. You remove that line from that makefile.
>
>2. You "touch posix/search/hsearch.c".
>
>3. I commit an empty hsearch.c for now.
>
>4. I commit an edited makefile with that line removed.
>
>
>I prefer 1 or 2 (least work for me) and you can continue right away. I
>think 4 is unnecessary as hcreate.c will soon be added. But I'll do
>whatever we think is correct.
File lfind.c is also missing an include of string.h to prototype memcpy.
Try the following patches to fix these issues.
Thanks. Take care, Brian Inglis
Index: src/libc/posix/search/lfind.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/search/lfind.c,v
retrieving revision 1.1
diff -B -b -w -p -u -t -r1.1 lfind.c
--- src/libc/posix/search/lfind.c 15 Jan 2005 19:16:16 -0000 1.1
+++ src/libc/posix/search/lfind.c 20 Jan 2005 18:52:44 -0000
@@ -10,6 +10,7 @@
#include <search.h>
#include <stdlib.h>
+#include <string.h>
/* Local helper function that does the real work. */
static void *
Index: src/libc/posix/search/makefile
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/search/makefile,v
retrieving revision 1.1
diff -B -b -w -p -u -t -r1.1 makefile
--- src/libc/posix/search/makefile 15 Jan 2005 19:16:16 -0000 1.1
+++ src/libc/posix/search/makefile 20 Jan 2005 18:52:44 -0000
@@ -2,7 +2,7 @@
TOP=../..
-SRC += hcreate.c
+#SRC += hcreate.c
SRC += lfind.c
include $(TOP)/../makefile.inc
- Raw text -