Subject: bin/363: /usr/bin/cpp uses unbound variable LIBS
To: None <gnats-admin>
From: None <jtkohl@MIT.EDU>
List: netbsd-bugs
Date: 07/23/1994 18:20:05
>Number: 363
>Category: bin
>Synopsis: /usr/bin/cpp uses unbound variable LIBS, wreaking havoc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 23 18:20:03 1994
>Originator: John T Kohl
>Organization:
MIT SIPB
>Release: 1.0-ALPHA
>Environment:
System: NetBSD lola-granola 1.0-ALPHA NetBSD 1.0-ALPHA (LOLA) #36: Thu Jul 21 23:41:51 EDT 1994 jtkohl@lola-granola:/usr/src/sys/arch/i386/compile/LOLA i386
>Description:
/usr/bin/cpp uses unbound variable LIBS. If your environment includes a
LIBS variable, it gets passed along in the invocation of
/usr/libexec/cpp. This is Bad(tm).
It looks like $CSU has the same problem.
>How-To-Repeat:
(setenv LIBS "xxx yyy zzz" && /usr/bin/cpp -C -DXXX /etc/motd)
>Fix:
*** 1.1 1994/07/24 00:18:06
--- usr.bin.cpp.sh 1994/07/24 00:18:37
***************
*** 73,79 ****
INCS="$INCS -I/usr/include"
NSI=skip
fi
! eval $CPP $ALST $INCS $LIBS $CSU $OPTS $A || exit $?
;;
esac
done
--- 73,79 ----
INCS="$INCS -I/usr/include"
NSI=skip
fi
! eval $CPP $ALST $INCS $OPTS $A || exit $?
;;
esac
done
***************
*** 85,91 ****
then
INCS="$INCS -I/usr/include"
fi
! eval exec $CPP $ALST $INCS $LIBS $CSU $OPTS
fi
exit 0
--- 85,91 ----
then
INCS="$INCS -I/usr/include"
fi
! eval exec $CPP $ALST $INCS $OPTS
fi
exit 0
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------