From owner-freebsd-bugs@FreeBSD.ORG Fri May 31 12:40:05 2013 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 53D6EADB for ; Fri, 31 May 2013 12:40:05 +0000 (UTC) (envelope-from joerg.schilling@fokus.fraunhofer.de) Received: from mx-relay01-dus.antispameurope.com (mx-relay01-dus.antispameurope.com [94.100.134.201]) by mx1.freebsd.org (Postfix) with ESMTP id C04C9D9F for ; Fri, 31 May 2013 12:40:04 +0000 (UTC) Received: from FEYNMAN.fokus.fraunhofer.de (feynman.fokus.fraunhofer.de [10.147.9.202]) by pluto.fokus.fraunhofer.de (8.14.4/8.14.2) with ESMTP id r4VCdOEg025974 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for ; Fri, 31 May 2013 14:39:25 +0200 (CEST) Received: from rigel (10.147.13.100) by FEYNMAN.fokus.fraunhofer.de (10.147.9.202) with Microsoft SMTP Server id 14.3.123.3; Fri, 31 May 2013 14:39:14 +0200 Date: Fri, 31 May 2013 14:39:14 +0200 From: Joerg Schilling To: Subject: Problems with gcc on FreeBSD-9.1 Message-ID: <51a899f2.KZfZEQ+2cXatLHzH%Joerg.Schilling@fokus.fraunhofer.de> User-Agent: nail 11.22 3/20/05 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean X-cloud-security-sender: joerg.schilling@fokus.fraunhofer.de X-cloud-security-recipient: freebsd-bugs@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate01-dus with 7FF91200037 X-cloud-security: scantime:.0913 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2013 12:40:05 -0000 Hi, gcc on FreeBSD-9.1 has a problem in CPP. It does not handle undefined macros correctly. XXX > 2 If ther is no #define XXX, the above code has to be evaluated as if XXX has the value 0. FreeBSD 9.1 introduced #define __FreeBSD_kernel__ in sys/param.h which is wrong and breaks Debian kBSD compatibility. Note that Denbian has something like: #define __FreeBSD_kernel__ 8 If you however use: #if defined(_FreeBSD_kernel__) && (__FreeBSD_kernel > 2) this now fails on FreeeBSD with: operator '>' has no left operand This causes cdda2wav to fail to compile. BTW: the FreeBSD install CD: FreeBSD-9.1-RELEASE-i386-bootonly.iso uses NetBSD as system ID and in addition it seems that it has been created with a dubious mkisofs version: - Rock Ridge was withdrawn in favor of UDF, so there was never a IEEE P1282 standard. Thou should not use "IEEE_P1282" as ID in the extension record. - mkisofs got plenty of bug fixes in August 2006 and since then correctly hides the "/.rr_moved" directory. You should use a recent mkisofs version for best results. Jörg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily