From mint-bounce@lists.fishpool.fi Thu Jan 7 08:33:58 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JUNxGcKDMu+TE+eOePbXX+7cpNOTMHkuCtaCigDL0QI=; b=nfwkmjCo1UzwAHJa7wjZ7DH5+Awx7fNDQQmRHuY0ohDLcpUynFnUBH49u8GE9kUOKR k5xySsw5BfNLhBzoDS+Q5zvOWNXZlXp2gagVaSLmkrDvPXiLjWKuixFP3mVoZO7WaXI6 l0rBGL3uxsG/ADMz17Lug3bQ6OeHusMFHYwIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Ey6sCSj1vU62+tM4iNXKXcdVkDHeYzCjw1thYz8vGZQYvFh3j0M9K/RFy+g72ZUt4b Tqm5fEcaRT+l37SM0lh43TjvPX/I3xJHCQ+gbtSXaRiYr5tzTZBsa0nAyURIU4DLjU0v TlzlZkK0pjEkUlT2kv+kSlLGbB14wbKC2jw6g= Message-ID: <4B45E231.6050006@freesbee.fr> Date: Thu, 07 Jan 2010 14:31:29 +0100 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: MiNT Mailing List Subject: Re: [MiNT] trouble with mintlib + gcc 4.4.2 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Miro Kropacek a écrit : > ./rpcgen `gcc -print-file-name=cpp | sed -e "s,/cpp$,," -e "s,^cpp$,," > -e "s,^..*,-Y &,"` -h bootparam_prot.x -o bootparam_prot.T > cannot find any C preprocessor (cpp) The culprit is not gcc 4.4.2, it is... you, of course :-) Because you have installed gcc in /usr/local instead of /usr. rpcgen is stupid and does not look for cpp in the PATH. Instead it searches it in the following directories: - /usr/bin - /usr/ccs/lib - The directory specified by the -Y argument See the rpcgen sources, in function find_cpp(): http://www.atariforge.net/cgi-bin/cvsweb/mintlib/sunrpc/rpc_main.c?rev=1.3&content-type=text/x-cvsweb-markup The gcc -print-file-name command line you hit seem bogus to me and probably turns into an empty option in any case. So it works only if gcc is installed in /usr. As rpcgen is a standard tool we should avoid to change its behaviour. I propose the following change: In mintlib/sunrpc/Makefile, replace the rpcgen-cmd variable by: rpcgen-cmd = $(srcdir)/rpcgen -Y `which cpp | sed -e "s,/cpp$,,"` If it works, we should commit it, as it allows to compile the MiNTLib with gcc (and cpp) installed in any directory. -- Vincent Rivière