Version: (using KDE KDE 3.1.4) Installed from: Compiled From Sources OS: Linux Twisty maze of include files. I don't know why, but mpeglib/lib/input/httpInputStream.cpp won't compile unless I add: #include <netinet/in.h> #undef _LINUX_BYTEORDER_SWAB_H #include <linux/byteorder/swab.h> Somehow, _LINUX_BYTEORDER_SWAB_H had gotten defined, preventing the definition of __swab16.
OH, here's the cause of the problem! It's cdromAccess_Linux.cpp: #define _LINUX_BYTEORDER_SWAB_H I don't know why this is here, but it's gotta go. I haven't tested yet whether it can simply be removed or if a different fix is required, but this is just wrong.
Subject: Re: Need patch to compile on RH9 __swab16 undefined This is because of swab.h using broken code in newer kernel versions so that compilation fails without it. But this should not have been put in there unguarded and has already been removed again. Both KDE_3_1_BRANCH and HEAD are fine. On Thursday September 18 2003 13:59, nbecker@fred.net wrote: > OH, here's the cause of the problem! > > It's cdromAccess_Linux.cpp: > #define _LINUX_BYTEORDER_SWAB_H > > > I don't know why this is here, but it's gotta go. I haven't tested yet > whether it can simply be removed or if a different fix is required, but > this is just wrong.
I am having the same problem with RH9. How do I solve it?
Subject: Re: Need patch to compile on RH9 __swab16 undefined On 1 Oct 2003, Olu wrote: > ------- Additional Comments From oakins2@umbc.edu 2003-10-01 07:50 ------- > I am having the same problem with RH9. How do I solve it? Build without --enable-final -- Rex
Subject: Re: Need patch to compile on RH9 __swab16 undefined On Wednesday 01 October 2003 08:20 am, Rex Dieter wrote: > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > > http://bugs.kde.org/show_bug.cgi?id=64490 > > > > > ------- Additional Comments From rdieter@math.unl.edu 2003-10-01 14:20 > ------- Subject: Re: Need patch to compile on RH9 __swab16 undefined > > On 1 Oct 2003, Olu wrote: > > ------- Additional Comments From oakins2@umbc.edu 2003-10-01 07:50 > > ------- I am having the same problem with RH9. How do I solve it? > > Build without --enable-final > Are you sure? The problem was caused by erroneously #defining the guard used by a header file.
Removing --enable-final worked for me.
Thanks. It worked
*** Bug 65063 has been marked as a duplicate of this bug. ***