[16511] in Athena Bugs

home help back first fref pref prev next nref lref last post

Solaris xrdb -cpp broken

daemon@ATHENA.MIT.EDU (Dan Winship)
Sat Nov 28 11:52:50 1998

Date: Sat, 28 Nov 1998 11:52:46 -0500
From: Dan Winship <danw@MIT.EDU>
To: bugs@MIT.EDU
Cc: wdc@MIT.EDU

(Bill, can you report this to Sun?)

According to the xrdb man page:

     -cpp filename
             This option specifies the pathname of the C  prepro-
             cessor  program  to  be  used.   Although  xrdb  was
             designed to use CPP, any  program  that  acts  as  a
             filter and accepts the -D, -I, and -U options may be
             used.

However, in Solaris 2.6, it doesn't actually use -D, -I, and -U flags,
it passes #define, #include, and #undef directives in as part of the
input (this can be seen with truss, or by reading the source). This
means you can't actually use anything other than cpp for your cpp: in
particular, you can't use m4, which works fine on any OS other than
Solaris.

-- Dan

home help back first fref pref prev next nref lref last post