delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/20/13:59:36

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Thu, 20 Jan 2005 11:58:32 -0700
From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Subject: Re: Difficulty compiling cvs djgpp
In-reply-to: <200501201820.j0KIKtYg028378@speedy.ludd.ltu.se>
To: djgpp-workers AT delorie DOT com
Message-id: <umvvu0h2r7f6h1a6mek3prllbdnvlahe8m@4ax.com>
Organization: Systematic Software
MIME-version: 1.0
X-Mailer: Forte Agent 1.93/32.576 English (American)
References: <41EFA98D DOT 6010203 AT igd DOT fhg DOT de>
<200501201820 DOT j0KIKtYg028378 AT speedy DOT ludd DOT ltu DOT se>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0KIwvKu030496
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

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 -


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