X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Authenticated: #27081556 X-Provags-ID: V01U2FsdGVkX1/YiwAcmprY6/POd0NcXCr0knVMGLiYPc7NgGH/Xg XwQh2u6bLWw+T5 From: Juan Manuel Guerrero To: djgpp-workers AT delorie DOT com Subject: difficulty compiling cvs source tree Date: Tue, 27 Mar 2007 23:23:03 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703272323.03183.juan.guerrero@gmx.de> X-Y-GMX-Trusted: 0 Reply-To: djgpp-workers AT delorie DOT com I have tried to compile today's djgpp cvs source tree using gcc 4.1.2 and binutils 2.17 on Windows 98SE and Win XP with DJ's patch applied. Both compilations died with the following error message: gcc ... -c symify.c `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. ld -s ../../../lib/crt0.o symify.o ../../../lib/libdbg.a ../../../lib/libc.a -o ../../../bin/symify.exe c:/djgpp/bin/../lib/gcc/djgpp/4.12/libgcc.a -T c:/djgpp/lib/djgpp.djl ../../../lib/libc.a(crt1.o):crt1.c:(.text+0xb0): undefined reference to `_environ' ../../../lib/libc.a(crt1.o):crt1.c:(.text+0xcf): undefined reference to `_environ' ../../../lib/libc.a(crt1.o):crt1.c:(.text+0xeb): undefined reference to `_environ' ../../../lib/libc.a(crt1.o):crt1.c:(.text+0x11b): undefined reference to `_environ' ../../../lib/libc.a(crt1.o):crt1.c:(.text+0x3cd): undefined reference to `_environ' ../../../lib/libc.a(spawnvp.o):spawnvp.c:(.text+0x7): more undefined references to `_environ' follow make.exe[3]: *** [../../../bin/symify.exe] Error 1 make.exe[2]: *** [all_subs] Error 2 make.exe[1]: *** [all] Error 2 make.exe: *** [subs] Error 2 Below there is a patch to fix minor issues that I noticed while compiling. Regards, Juan M. Guerrero diff -aprNU5 djgpp.orig/src/misc.c djgpp/src/misc.c --- djgpp.orig/src/misc.c 1997-11-14 19:53:06 +0000 +++ djgpp/src/misc.c 2007-03-27 22:59:14 +0000 @@ -1,7 +1,8 @@ /* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */ #include +#include #include /* Miscellaneous things that are hard to do the same between Unix and MS-DOS */ diff -aprNU5 djgpp.orig/src/debug/common/v2load.c djgpp/src/debug/common/v2load.c --- djgpp.orig/src/debug/common/v2load.c 2003-05-10 15:26:10 +0000 +++ djgpp/src/debug/common/v2load.c 2007-03-27 23:13:40 +0000 @@ -185,13 +185,13 @@ int v2loadimage(const char *program, con unsigned data_soffset, data_size, bss_soffset, bss_size; unsigned client_cs, client_ds, my_ds; __dpmi_meminfo memblock; unsigned new_env_selector; char true_name[FILENAME_MAX]; - size_t proxy_argc; + size_t proxy_argc = 0; /* Pacify compiler. */ int proxy_mode; - unsigned long tbuf; + unsigned long tbuf = 0; /* Pacify compiler. */ size_t tbuf_len; _truename(program, true_name); pf = open(program, O_RDONLY|O_BINARY);