Mail Archives: djgpp-workers/2004/11/14/06:37:02
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
- Raw text -