Package: xosview Version: 1.8.3+debian-17 Severity: wishlist Tags: patch User: debian-...@superh.org Usertags: sh4
Hi, I am now trying to run Debian on Renesas SH CPU(sh4). xosview FTBFS on sh4. ----- g++ -g -O2 -g -O2 -W -Wall -O2 -I. -DXOSVIEW_VERSION=\"1.8.3\" -I/build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian -I/build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DGNULIBC=1 -DUSESYSCALLS=1 -g -O2 -W -Wall -O2 -I. -DXOSVIEW_VERSION=\"1.8.3\" -I/build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian -I/build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DGNULIBC=1 -DUSESYSCALLS=1 -I.. -c serialmeter.cc -o serialmeter.o serialmeter.cc:36:20: error: sys/io.h: No such file or directory serialmeter.cc:39:22: error: sys/perm.h: No such file or directory In file included from /build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian/xosview.h:14, from /build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian/meter.h:15, from /build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian/bitmeter.h:14, from serialmeter.h:16, from serialmeter.cc:13: /build/buildd-xosview_1.8.3+debian-18-sh4-BS6vHr/xosview-1.8.3+debian/xwin.h:104: warning: type qualifiers ignored on function return type serialmeter.cc: In member function 'bool SerialMeter::getport(short unsigned int)': serialmeter.cc:79: error: 'ioperm' was not declared in this scope serialmeter.cc: In member function 'void SerialMeter::getserial()': serialmeter.cc:88: error: 'inb' was not declared in this scope serialmeter.cc: In member function 'short unsigned int SerialMeter::getPortBase(SerialMeter::Device) const': ----- Because current xosview package doesn't support sh4. I made a patch to revise to be able to build. Would you apply it? Best regards, Nobuhiro
--- a/linux/serialmeter.cac 2009-10-01 07:05:15.000000000 +0000 +++ b/linux/serialmeter.cc 2009-10-01 07:04:46.000000000 +0000 @@ -32,10 +32,10 @@ #include <unistd.h> #if defined(GNULIBC) || defined(__GLIBC__) -#if !defined(__hppa__) && !defined(__mips__) && !defined(__sparc__) +#if !defined(__hppa__) && !defined(__mips__) && !defined(__sparc__) && !defined(__sh__) #include <sys/io.h> #endif -#if !defined(__alpha__) && !defined(__sparc__) && !defined(__powerpc__) && !defined(__ia64__) && !defined(__hppa__) && !defined(__arm__) && !defined(__mips__) +#if !defined(__alpha__) && !defined(__sparc__) && !defined(__powerpc__) && !defined(__ia64__) && !defined(__hppa__) && !defined(__arm__) && !defined(__mips__) && !defined(__sh__) #include <sys/perm.h> #define HAVE_IOPERM #endif