FVWM: FVWM2.0.26 & egcs

Andrew Veliath veliaa@frontiernet.net
Fri Jan 23 14:48:00 GMT 1998


I had the same problem with LinuxMachineDefines and egcs 1.0 about a
month ago or so.  The spec files of the new gccs are different, and
somehow break the Imake preprocessing.  I forgot how I worked around
it, I probably just reinstalled 2.7.2.3 for the meantime.

I just had a quick look.  It seems that when /lib/cpp is called by
itself, it does not get the options listed in the *cpp: section of the
spec file (maybe this is intended).  It receives those options when
called from the gcc driver though.

As a *workaround*, I put the following script as /lib/cpp2:

#! /bin/sh
gcc -E "$@"

Then, in my shell, exported IMAKECPP:

IMAKECPP=/lib/cpp2; export IMAKECPP

Then you should be able to use xmkmf as usual.

--
Regards,
Andrew Veliath
veliaa@frontiernet.net, veliaa@rpi.edu

>>>>> Bruce Stephens writes:

    Bruce> This still seems unlikely.  I mean, configure --srcdir
    Bruce> pretty much requires -c and -o!

    Bruce> fortunato@heavymetal.org said:
    >> gcc -Wall -O2 -I. -I../../libs -I/usr/X11R6/include -I/include
    >> -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L
    >> -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
    >> -DNO_MESSAGE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO -DSHAPE
    >> -DACTIVEDOWN_BTNS -DINACTIVE_BTNS -DMINI_ICONS -DVECTOR_BUTTONS
    >> -DPIXMAP_BUTTONS -DGRADIENT_BUTTONS -DMULTISTYLE
    >> -DEXTENDED_TITLESTYLE -DBORDERSTYLE -DUSEDECOR -DWINDOWSHADE
    >> -DXPM -c FvwmButtons.c -o FvwmButtons.o

    >> gcc: cannot specify -o with -c and multiple compilations
    >> make[1]: *** [FvwmButtons.o] Error 1

    >> Why it thinks this is multiple compilations I have no idea, but
    >> this fails with gcc-2.8.0, egcs 1.0.1 and pgcc 1.0.1 as well.

    Bruce> Hmm, the isolated LinuxMachineDefines looks dodgy.  I
    Bruce> suspect that.



More information about the Gcc mailing list