[dave@hiauly1.hia.nrc.ca: Incorrect file name simplication]
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Mar 29 18:11:00 GMT 2001
> > What do you suggest we do here? It's a pathname-simplification-
> > doesn't-work-with-symlinks issue.
> ...
> > Looking at fix-header with gdb, it appears that the file
> > `/usr/include/sys/../h/types.h' gets simplied to `/usr/include/h/types.h'
> > which doesn't exist because `sys' is a symbolic link to `/sys/h'. This
> > causes open_file to fail.
>
> I'd like some more context. How do we get a silly path like that in
> the first place?
Seems to come from fixproto script:
+ test sys/types.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/sys/types.h -a -n ' include'
+ grep sys/types.h fixproto.list
+ true
+ rel_source_file=ansi_compat.h
+ abs_source_file=/usr/include/ansi_compat.h
+ abs_target_file=/xxx/gnu/gcc-3.0/objdir/gcc/include/ansi_compat.h
+ test ansi_compat.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/ansi_compat.h -a -n ' include'
+ grep ansi_compat.h fixproto.list
+ true
+ rel_source_file=strings.h
+ abs_source_file=/usr/include/strings.h
+ abs_target_file=/xxx/gnu/gcc-3.0/objdir/gcc/include/strings.h
+ test strings.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/strings.h -a -n ' include'
+ grep strings.h fixproto.list
+ true
+ rel_source_file=sys/../h/types.h
+ abs_source_file=/usr/include/sys/../h/types.h
+ abs_target_file=/xxx/gnu/gcc-3.0/objdir/gcc/include/sys/../h/types.h
+ test sys/../h/types.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/sys/../h/types.h -a -n ' include'
+ grep sys/../h/types.h fixproto.list
+ /xxx/gnu/gcc-3.0/objdir/gcc/fix-header sys/../h/types.h /usr/include/sys/../h/
types.h /xxx/gnu/gcc-3.0/objdir/gcc/include/sys/../h/types.h -D__STDC__=0 -D__cp
lusplus -I/xxx/gnu/gcc-3.0/objdir/gcc/include -I/usr/include
+ test 33 '!=' 0
+ exit 1
make[2]: *** [stmp-fixproto] Error 1
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-bugs
mailing list