On Sun, 9 Jan 2000, Stefan van der Eijk wrote:

> on my alpha system (running linux), and now I get the following error
> when compiling a lot of packages:
> 

...

> gcc -O   -I./lib/Xt -I.  -I/usr/X11R6/include   -Dlinux
> LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
  ^^^^^^^^^^^^^^^^^^^

> -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15
> -DNARROWPROTO  
> -DFONTPATH=\".:/usr/lib/groff/font:/usr/local/lib/font:/usr/lib/font\"   
> -c xditview.c -o xditview.o
> gcc: cannot specify -o with -c or -S and multiple compilations
> make: *** [xditview.o] Error 1
> 
> Any idea what it is & how I can fix it??

Looks like one of your X setup files isn't configured properly ...
LinuxMachineDefines isn't being replaced with the real value ... look in
/usr/X11R6/lib/X11/config, the file linux.cf has this value.  My guess is
if you make sure Imake.cf has the following in it somewhere:

#ifdef linux
# define MacroIncludeFile <linux.cf>
# define MacroFile linux.cf

Then make sure "linux" is getting defined by the compiler as a default.
This should fix the problem.  If that's difficult, you can probably kludge
around it put throwing a "#define linux 1" at the top of your site.def
file in the X11/config dir.  (none of this has been tested, but it's my
shot at it =)

-dws

Reply via email to