X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Message-ID: <419735BA.8090808@phekda.gotadsl.co.uk> Date: Sun, 14 Nov 2004 10:38:50 +0000 From: Richard Dawe User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 X-Accept-Language: en, de, fr MIME-Version: 1.0 To: fdonahoe AT wilkes DOT edu Cc: DJGPP workers Subject: Re: References: <1100393996 DOT 4196ae0c66615 AT webmail DOT wilkes DOT edu> In-Reply-To: <1100393996.4196ae0c66615@webmail.wilkes.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. I don't work on DJGPP anymore. CC'ing djgpp-workers. Bye, Rich =] fdonahoe AT wilkes DOT edu wrote: > The djgpp Nov. 13, 2004 tar ball fails to compile because gcc > cannot find where "_environ" is defined > > ./../../lib/libc.a(crt1.o)(.text+0xc6):crt1.c: undefined \ > reference to `_environ > > and grep could not either. "environ" is defined in \ > "debug/fsdb/ed.c" > > Is it intentional to have these two separate names for the > same thing? If so, where do you want "_environ" to be > defined? src/libc/crt0/crt1.c seems a good choice. > > debug/common/v2load.c:extern char **environ > debug/fsdb/ed.c: environ[i] = 0; > stub/go32-v2.c:extern char **environ; > > libc/ansi/stdlib/getenv.c:extern char **_environ; > libc/ansi/stdlib/system.c:extern char **_environ; > libc/compat/stdlib/putenv.c:extern char **_environ; > libc/crt0/crt1.c:extern char **_environ; > libc/dos/process/dosexec.c:extern char **_environ; > libc/dos/process/dosexec.txh:char *environ[] = @{ > libc/dos/process/dosexec.txh: extern char **environ; > libc/dos/process/spawnl.c:extern char **_environ; > libc/dos/process/spawnlp.c:extern char **_environ; > libc/dos/process/spawnv.c:extern char **_environ; > libc/dos/process/spawnvp.c:extern char **_environ; > libc/libc2.tex: extern char **environ; > libc/posix/stdlib/unsetenv.c:extern char **_environ; > libc/posix/unistd/execl.c:extern char * const *_environ; > libc/posix/unistd/execlp.c:extern char * const *_environ; > libc/posix/unistd/execv.c:extern char * const *_environ; > libc/posix/unistd/execvp.c:extern char * const *_environ; > > Regards, > Frank > > > ----------------------------------------------------------------------- > This mail was sent through Wilkes Webmail: http://webmail.wilkes.edu > Wilkes Webmail is using IMP: http://horde.org/imp/ > -- Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ] "You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek