Problems with gcc on FreeBSD-9.1
Joerg Schilling
Joerg.Schilling at fokus.fraunhofer.de
Fri May 31 12:40:05 UTC 2013
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 at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni)
joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
More information about the freebsd-bugs
mailing list