Re: FVWM: FVWM2.0.26 & egcs

From: Andrew Veliath <veliaa_at_frontiernet.net>
Date: Fri, 23 Jan 1998 08:25:31 -0500

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 "$_at_"

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_at_frontiernet.net, veliaa_at_rpi.edu
>>>>> Bruce Stephens writes:
    Bruce> This still seems unlikely.  I mean, configure --srcdir
    Bruce> pretty much requires -c and -o!
    Bruce> fortunato_at_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.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jan 23 1998 - 07:28:12 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST