From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15745 invoked from network); 30 Mar 1999 09:11:04 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 30 Mar 1999 09:11:04 -0000 Received: from medea.theophys.kth.se (medea.theophys.kth.se [130.237.25.82]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA29466 for ; Tue, 30 Mar 1999 03:55:10 -0500 Received: from uranus.theophys.kth.se (jurijus@uranus.theophys.kth.se [130.237.25.101]) by medea.theophys.kth.se (8.8.8/8.8.8) with ESMTP id KAA04737 for ; Tue, 30 Mar 1999 10:43:14 +0200 (MET DST) Date: Tue, 30 Mar 1999 10:55:09 +0200 (CEST) From: Jurij Smakov To: axp-list@redhat.com Subject: Re: Problems with egcs & xmkmf In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 30 Mar 1999, Helge Kreutzmann wrote: > Hallo ! [skipped] > gcc -Wall -Iinclude -I/usr/X11R6/include -I/include -Dlinux > LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE > -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 > -DNARROWPROTO -c sfxload.c -o sfxload.o > gcc: cannot specify -o with -c or -S and multiple compilations > make: *** [sfxload.o] Error 1 > > When I remove the "LinuxMachineDefines" manually from all makefiles > created, the compilation runs (almost) fine. I checked the docs at cygnus > but could not find something I thought related. Does anyone know what > xmkmf intends to include and what I have to change to get it work (or > which rtfm I have to read) ? I ran into this too... The answer is: $ more /usr/X11R6/lib/X11/config/linux.cf | grep LinuxMachineDefines #define LinuxMachineDefines -D__i386__ #define LinuxMachineDefines -D__alpha__ #define LinuxMachineDefines -D__mc68000__ #define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines If you compile on Alpha, You should replace LinuxMachineDefines with -D__alpha__ Best regards, O----------------------O---------------------------------------O | _ | ICQ : 1690331 | | Jurij Smakov | E-mail : jurijus@theophys.kth.se | | | WWW : www.theophys.kth.se/~jurijus | O----------------------O---------------------------------------O | PGP public key: finger -l jurijus@medea.theophys.kth.se | O--------------------------------------------------------------O