This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GET_ENVIRONMENT


: Date: Tue, 24 Mar 1998 14:56:16 -0800
: From: mrs@wrs.com (Mike Stump)
: 
: gcc  -DIN_GCC  -DSVR4  -g  -DHAVE_CONFIG_H   -o collect2 collect2.o tlink.o hash.o \
:   cplus-dem.o underscore.o version.o choose-temp.o obstack.o alloca.o  
: Undefined                       first referenced
:  symbol                             in file
: GET_ENVIRONMENT                     collect2.o
: ld: fatal: Symbol referencing errors. No output written to collect2
: 
: Tue Mar 24 10:44:11 1998  Nick Clifton  <nickc@cygnus.com>
:  
:         * collect2.c (find_a_file): Add debugging.
:         (find_a_file): Test for win32 style absolute paths if
:         DIR_SERPARATOR is defined.
:         (prefix_from_string): Add debugging.
:         (main): Test for debug command line switch at start of program
:         execution. 
:         (main): Use GET_ENVIRONMENT rather than getenv().
: 
: Did I miss updating something?
: 

Err, I am not sure how this is happening.  At line 267 in collect2.c
there is:

  #ifndef GET_ENVIRONMENT
  #define GET_ENVIRONMENT(ENV_VALUE,ENV_NAME) ENV_VALUE = getenv (ENV_NAME)
  #endif

There was a typo in the first version of the patch that I applied to
collect2.c, so if you checked out a version before 15:00 PST today you
ought to update it again, but this typo affected the win32 absolute
path code in find_a_file(), not the GET_ENVIRONMENT stuff.

Nick





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]