[Debburn-devel] Re: Bug#390353: wodim: Writng to CD fails with "permission denied" on hard disk's sg device

Albert Cahalan acahalan at gmail.com
Tue Oct 3 17:19:00 UTC 2006


On 10/3/06, Peter Samuelson <peter at p12n.org> wrote:
> [Albert Cahalan]
> > >> +       // try to reopen locked/busy devices up to five times
> > >
> > >C++-style-comment.
> >
> > No, a BCPL-style comment. C supports them since 1999,
> > but many compilers (including Visual C and gcc) supported
> > them long before the standard was passed.
>
> Well, Eduard has been compiling on AIX with the vendor compiler, which
> apparently doesn't support //.

I guess AIX isn't being maintained. It is supported by gcc though.
If you want to be weird, use the vendor compiler with the GNU
preprocessor.

> I like // comments too, but AIX 5 is not exactly dead.  (It _is_ POSIX,
> so it really should not be painful to support in general.)  And your
> suggestion of doing manual preprocessing via sed strikes me as a cure
> worse than the disease.

So put it in the Makefile. This is easy to deal with:

%.j : %.c
        sed 's^//.*^^' < $< > $@

%.i : %.j
        $(CPP) $(CPPFLAGS) -o $@ $<

%.o : %.i
        $(CC) $(CFLAGS) -o $@ $<



More information about the Debburn-devel mailing list