Public bug reported:

The port io instructions are not supported on all architectures. The
sys/io.h header that declares them is not shipped for the unsupported
architectures (e.g. arm). This causes the following error:

  199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
/<<PKGBUILDDIR>>/./src/RawImp.c: In function 'Java_gnu_io_RawPort_open':
/<<PKGBUILDDIR>>/./src/RawImp.c:131:12: error: implicit declaration of function 
'ioperm' [-Wimplicit-function-declaration]
  131 |         if(ioperm(ciAddress, 3, 1))
      |            ^~~~~~
/<<PKGBUILDDIR>>/./src/RawImp.c: In function 'Java_Bus_read8':
/<<PKGBUILDDIR>>/./src/RawImp.c:171:23: error: implicit declaration of function 
'inb' [-Wimplicit-function-declaration]
  171 |         return (jint) inb((unsigned) piPort);
      |                       ^~~
/<<PKGBUILDDIR>>/./src/RawImp.c: In function 'Java_Bus_write8':
/<<PKGBUILDDIR>>/./src/RawImp.c:185:9: error: implicit declaration of function 
'outb' [-Wimplicit-function-declaration]
  185 |         outb((unsigned char) piData ,(unsigned) piPort);
      |         ^~~~
/<<PKGBUILDDIR>>/./src/RawImp.c: In function 'Java_Bus_read16':
/<<PKGBUILDDIR>>/./src/RawImp.c:199:23: error: implicit declaration of function 
'inw' [-Wimplicit-function-declaration]
  199 |         return (jint) inw((unsigned) piPort);
      |                       ^~~
/<<PKGBUILDDIR>>/./src/RawImp.c: In function 'Java_Bus_read32':
/<<PKGBUILDDIR>>/./src/RawImp.c:226:23: error: implicit declaration of function 
'inl' [-Wimplicit-function-declaration]
  226 |         return (jint) inl((unsigned) piPort);
      |                       ^~~
/<<PKGBUILDDIR>>/./src/RawImp.c: In function 'Java_Bus_write32':
/<<PKGBUILDDIR>>/./src/RawImp.c:242:9: error: implicit declaration of function 
'outl' [-Wimplicit-function-declaration]
  242 |         outl((unsigned) piData ,(unsigned) piPort);
      |         ^~~~
libtool:   error: '/<<PKGBUILDDIR>>/aarch64-unknown-linux-gnu/RawImp.lo' is not 
a valid libtool object
make[2]: *** [Makefile:837: aarch64-unknown-linux-gnu/librxtxRaw.la] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary-arch] Error 2
[2]

The package architecture should be limited to the ones that support Port
IO, or this implementation rewritten.

[1] 
https://codebrowser.dev/glibc/glibc/sysdeps/unix/sysv/linux/x86/sys/io.h.html#:~:text=platforms%20based%20on%20the%20PC,78
[2] 
https://launchpadlibrarian.net/850753989/buildlog_ubuntu-resolute-arm64.rxtx_2.2.0+dfsg-2ubuntu3_BUILDING.txt.gz

** Affects: rxtx (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs update-excuse

** Tags added: ftbfs update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143790

Title:
  rxtx fails to build in resolute due to the missing functions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rxtx/+bug/2143790/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to