[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#644456: marked as done (libindi:FTBFS: libs/webcam/port.h:40:22: fatal error: sys/io.h: No such file or directory)



Your message dated Tue, 17 Jan 2012 13:47:51 +0000
with message-id <E1Rn9OB-0001fN-8h@franck.debian.org>
and subject line Bug#644456: fixed in libindi 0.9-1
has caused the Debian Bug report #644456,
regarding libindi:FTBFS: libs/webcam/port.h:40:22: fatal error: sys/io.h: No such file or directory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
644456: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644456
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libindi
Version: 0.8-1
Severity: wishlist
Justification: fails to build from source
Tags: patch

Hi,

libindi FTBFS on Renesas sh4.
  http://buildd.debian-ports.org/status/fetch.php?pkg=libindi&arch=sh4&ver=0.8-1&stamp=1317785210

-----
/usr/bin/c++   -DHAVE_LINUX_VIDEODEV2_H -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/obj-sh4-linux-gnu
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs/webcam
-I/usr/include/libnova    -o
CMakeFiles/indi_meade_lpi.dir/drivers/video/indi_lpi.o -c
/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/drivers/video/indi_lpi.cpp
/usr/bin/cmake -E cmake_progress_report
/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/obj-sh4-linux-gnu/CMakeFiles
24
[ 24%] Building CXX object CMakeFiles/indi_meade_lpi.dir/libs/webcam/PPort.o
/usr/bin/c++   -DHAVE_LINUX_VIDEODEV2_H -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/obj-sh4-linux-gnu
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs
-I/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs/webcam
-I/usr/include/libnova    -o
CMakeFiles/indi_meade_lpi.dir/libs/webcam/PPort.o -c
/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs/webcam/PPort.cpp
In file included from
/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs/webcam/PPort.cpp:22:0:
/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/libs/webcam/port.h:40:22:
fatal error: sys/io.h: No such file or directory
compilation terminated.
make[3]: *** [CMakeFiles/indi_meade_lpi.dir/libs/webcam/PPort.o] Error 1
make[3]: Leaving directory
`/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/obj-sh4-linux-gnu'
make[2]: *** [CMakeFiles/indi_meade_lpi.dir/all] Error 2
make[1]: *** [all] Error 2
make[2]: Leaving directory
`/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/obj-sh4-linux-gnu'
dh_auto_build: make -j1 returned exit code 2
make[1]: Leaving directory
`/build/buildd-libindi_0.8-1-sh4-RZhOpo/libindi-0.8/obj-sh4-linux-gnu'
make: *** [build] Error 2
-----

I made patch which revise this problem. Could you apply this patch?

Best regards,
 Nobuhiro

Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff --git a/libs/webcam/port.cpp b/libs/webcam/port.cpp
index 1a52735..93053ce 100644
--- a/libs/webcam/port.cpp
+++ b/libs/webcam/port.cpp
@@ -37,13 +37,20 @@
 #include <fcntl.h>
 #include <sys/stat.h>
 #endif /* LOCKING */
+#ifdef __linux__
+#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) \
+	|| defined(__powerpc__) || defined(__s390__) || defined(__s390x__)\
+	|| defined(__mips__) || defined(__mc68000__) || defined(__sh__)
+#define NO_SYSIO
+#endif /* architechtures */
+#endif /* __linux__ */
 
 #ifdef __linux__
-  #if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
+  #if defined(NO_SYSIO)
   #include <fcntl.h>
   #else
   #include <sys/io.h>
-  #endif /* arm */
+  #endif /* NO_SYSIO */
 #elif defined(QNX)
 #include <conio.h>
 #elif defined(__FreeBSD__)
@@ -76,7 +83,7 @@ port_t::port_t(int iport) {
 #endif /* LOCKING */
 
 #ifdef LINUX
-#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
+#ifdef NO_SYSIO
   if ((devport = open("/dev/port", O_RDWR)) < 0) {
     perror("open /dev/port");
     return;
@@ -86,7 +93,7 @@ port_t::port_t(int iport) {
     perror("ioperm()");
     return;
   }
-#endif /* arm */
+#endif /* NO_SYSIO */
 #elif defined(FREEBSD)
   if ((devio = fopen("/dev/io", "r+")) == NULL) {
     perror("fopen /dev/io");
@@ -120,7 +127,7 @@ port_t::~port_t(void) {
   unlock(port);
 #endif /* LOCKING */
 #ifdef LINUX
-#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
+#ifdef NO_SYSIO
   if (devport >= 0)
     close(devport);
 #else
@@ -128,7 +135,7 @@ port_t::~port_t(void) {
     if (ioperm(port, 3, 0) != 0)  // drop port permissions -- still must
                                   // be root
       perror("ioperm()");
-#endif /* arm */
+#endif /* NO_SYSIO */
 #elif defined(FREEBSD)
   if (devio != NULL)
     fclose(devio);
diff --git a/libs/webcam/port.h b/libs/webcam/port.h
index ab02785..829cb4c 100644
--- a/libs/webcam/port.h
+++ b/libs/webcam/port.h
@@ -34,11 +34,16 @@
 //#include "config.h"
 
 #include <unistd.h>
+#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) \
+	|| defined(__powerpc__) || defined(__s390__) || defined(__s390x__)\
+	|| defined(__mips__) || defined(__mc68000__) || defined(__sh__)
+#define NO_SYSIO
+#endif /* arm... */
 
 #ifdef __linux__
-  #if !defined(arm) && !defined(__hppa__) && !defined(__sparc__) && !defined(__ppc__) && !defined(__powerpc__) && !defined(__s390__) && !defined(__s390x__) && !defined(__mips__) && !defined(__mc68000__)
+  #ifndef NO_SYSIO
   #include <sys/io.h>
-  #endif /* !arm */
+  #endif /* NO_SYSIO */
 #elif defined(QNX)
 #include <conio.h>
 #elif defined(__FreeBSD__)
@@ -56,7 +61,8 @@
 #error Please define a platform in the Makefile
 #endif
 
-#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
+#ifdef NO_SYSIO
+
 static char ports_temp;
 
 #ifdef inb
@@ -75,7 +81,7 @@ static char ports_temp;
   ports_temp = data; \
   write(devport, &ports_temp, 1);
 
-#endif /* arm, hppa */
+#endif /* NO_SYSIO */
 
 class port_t {
 public:
@@ -115,7 +121,7 @@ private:
 #ifdef FREEBSD
   FILE *devio;
 #endif
-#if defined(__linux__) && (defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__))
+#ifdef NO_SYSIO
   int devport;
 #endif
 };

--- End Message ---
--- Begin Message ---
Source: libindi
Source-Version: 0.9-1

We believe that the bug you reported is fixed in the latest version of
libindi, which is due to be installed in the Debian FTP archive:

indi-bin_0.9-1_amd64.deb
  to main/libi/libindi/indi-bin_0.9-1_amd64.deb
indi-dbg_0.9-1_amd64.deb
  to main/libi/libindi/indi-dbg_0.9-1_amd64.deb
libindi-data_0.9-1_all.deb
  to main/libi/libindi/libindi-data_0.9-1_all.deb
libindi-dev_0.9-1_amd64.deb
  to main/libi/libindi/libindi-dev_0.9-1_amd64.deb
libindi0a_0.9-1_amd64.deb
  to main/libi/libindi/libindi0a_0.9-1_amd64.deb
libindi_0.9-1.debian.tar.gz
  to main/libi/libindi/libindi_0.9-1.debian.tar.gz
libindi_0.9-1.dsc
  to main/libi/libindi/libindi_0.9-1.dsc
libindi_0.9.orig.tar.gz
  to main/libi/libindi/libindi_0.9.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 644456@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pino Toscano <pino@debian.org> (supplier of updated libindi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 16 Jan 2012 17:16:38 +0100
Source: libindi
Binary: libindi0a libindi-dev libindi-data indi-bin indi-dbg
Architecture: source amd64 all
Version: 0.9-1
Distribution: unstable
Urgency: low
Maintainer: Debian Krap Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Pino Toscano <pino@debian.org>
Description: 
 indi-bin   - INDI server, drivers and tools
 indi-dbg   - Instrument-Neutral Device Interface library -- debug symbols
 libindi-data - Instrument-Neutral Device Interface library -- shared data
 libindi-dev - Instrument-Neutral Device Interface library -- development files
 libindi0a  - Instrument-Neutral Device Interface library -- shared library
Closes: 644456
Changes: 
 libindi (0.9-1) unstable; urgency=low
 .
   * New upstream release:
     - provides the fix by Nobuhiro Iwamatsu (thanks!) for compiling on SuperH.
       (Closes: #644456)
   * Update the patches:
     - destdir.diff: drop, applied upstream
     - fix-pkgconfig.diff: drop, applied upstream
     - format-security.diff: drop, applied upstream
     - libdir.diff: refresh, dropping the applied parts
   * boost is no more a dependency, so remove libboost-dev from the the build
     dependencies and from the libindi-dev dependencies.
   * libindi-dev: add dependency on libcfitsio3-dev, as cfitsio headers are
     included in public headers.
   * Update copyright.
   * Upstream does not keep a stable ABI while not bumping the SONAME, so:
     - bump the SONAME to 0a (patch abi.diff)
     - rename libindi0 to libindi0a
     - drop the symbols file of libindi, "replaced" by a tight shlibs
Checksums-Sha1: 
 56c8be11dc78f4944e09048f950162c1da01e87d 1473 libindi_0.9-1.dsc
 4df842e4e7fc96cd66e35e6135bf54296421eea8 611480 libindi_0.9.orig.tar.gz
 9be0ac3d5b7429c1a163fc3b0a5c5d4d9326c4e4 5358 libindi_0.9-1.debian.tar.gz
 439b7a764da34bc980fdf01e5cb2cbe14cd964ef 22326 libindi0a_0.9-1_amd64.deb
 233a04f4914f22be6d7b14bf019288b80b1f6fb3 127126 libindi-dev_0.9-1_amd64.deb
 9c2008da28185981ff27cefdf71e30a4598486f8 7936 libindi-data_0.9-1_all.deb
 b87d05bc0c60cf9867914a19fbc7da0279a55ff0 1002914 indi-bin_0.9-1_amd64.deb
 a4641fab7610ce58f3dd6b57932849f99f9b0eb1 1777510 indi-dbg_0.9-1_amd64.deb
Checksums-Sha256: 
 b442ee08d3a913e2eda65f59a474daf3e87b2775070a5370daf1bf6765837e3f 1473 libindi_0.9-1.dsc
 a7f6cb695b7b8fad969fb57e9c69095c1b97331d599b66901bf10e402014be44 611480 libindi_0.9.orig.tar.gz
 461e1a798945b84147ef67a2972298dfd621b59a26eac549eaaf3ce2ebd9354b 5358 libindi_0.9-1.debian.tar.gz
 bce17f178f74d11be949f031fbc111fa10e46ef8371f54dad3255940cd0caf37 22326 libindi0a_0.9-1_amd64.deb
 fa6c813e4c284c0b936ee57633929628230d7565f39705c67a295dfc2ec1e33d 127126 libindi-dev_0.9-1_amd64.deb
 fac7dca2427a029d3420d3554d0597578f82981345174dd3b280b20bde14265e 7936 libindi-data_0.9-1_all.deb
 0b193d1675a43a3959aa367804ced319a62a67da3cd1cc9d5dd4ea6a738ad4db 1002914 indi-bin_0.9-1_amd64.deb
 0d8409791cd6703cb404e2d2fa8d063c4ce830512e697a48239ca78fc68ce652 1777510 indi-dbg_0.9-1_amd64.deb
Files: 
 721fe794e526fa21930740cb20e6b3f8 1473 misc optional libindi_0.9-1.dsc
 364a13c26f118fdc8e3eff9b36b041db 611480 misc optional libindi_0.9.orig.tar.gz
 70dc7658f6e3ca550ea7695e70fd8df8 5358 misc optional libindi_0.9-1.debian.tar.gz
 0f7766af62a3e562c9eb2a37d11f1ef6 22326 libs optional libindi0a_0.9-1_amd64.deb
 0f8e5457393329009d5619cf91d44d05 127126 libdevel optional libindi-dev_0.9-1_amd64.deb
 0caf1b5f0ccd76b86db07799de6f08db 7936 misc optional libindi-data_0.9-1_all.deb
 34b9493d782fdbdbe25eab4e557efc55 1002914 misc optional indi-bin_0.9-1_amd64.deb
 f3f40182e9bacfd616e4b3d0dfc94037 1777510 debug extra indi-dbg_0.9-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPFFC/TNH2piB/L3oRAjpeAKDC1VLPg/jxRR6D8G1seqLESqJvOwCgkhAk
5f0TiG6DYGE6u07nBCYJ0xQ=
=/sEu
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: