Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1252860 - Fix compilation of rxtx on ppc64le: no sys/io.h
Summary: Fix compilation of rxtx on ppc64le: no sys/io.h
Alias: None
Product: Fedora
Classification: Fedora
Component: rxtx
Version: rawhide
Hardware: ppc64le
OS: Linux
Target Milestone: ---
Assignee: Levente Farkas
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
Reported: 2015-08-12 11:53 UTC by Rafael Fonseca
Modified: 2015-09-02 16:57 UTC (History)
2 users (show)

Fixed In Version: rxtx-2.2-0.14.20100211.fc24.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-09-02 16:57:42 UTC

Attachments (Terms of Use)
no io.h patch updated (deleted)
2015-08-12 11:53 UTC, Rafael Fonseca
no flags Details | Diff
Fix compilation on ppc64le (deleted)
2015-09-02 16:28 UTC, Rafael Fonseca
no flags Details | Diff

Description Rafael Fonseca 2015-08-12 11:53:45 UTC
Created attachment 1061921 [details]
no io.h patch updated

Description of problem: rxtx build fails with

 gcc -I/builddir/build/BUILD/rxtx-20100211 -Ipowerpc64le-redhat-linux-gnu -I. -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/./linux/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -c /builddir/build/BUILD/rxtx-20100211/./src/RawImp.c  -fPIC -DPIC -o /builddir/build/BUILD/rxtx-20100211/powerpc64le-redhat-linux-gnu/.libs/RawImp.o
In file included from /usr/include/stdio.h:27:0,
                 from /usr/lib/jvm/java/include/jni.h:39,
                 from ./gnu_io_Raw.h:2,
                 from /builddir/build/BUILD/rxtx-20100211/./src/RawImp.c:70:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
/builddir/build/BUILD/rxtx-20100211/./src/RawImp.c:106:20: fatal error: sys/io.h: No such file or directory
compilation terminated.
libtool: link: `/builddir/build/BUILD/rxtx-20100211/powerpc64le-redhat-linux-gnu/RawImp.lo' is not a valid libtool object
Makefile:592: recipe for target 'powerpc64le-redhat-linux-gnu/' failed
make: *** [powerpc64le-redhat-linux-gnu/] Error 1

Version-Release number of selected component (if applicable): 2.2-0.14.20100211

How reproducible: build rxtx on ppc64le

Additional info: According to this page [1], the right variable to use is "__PPC__" not "PPC". Patch attached.


Comment 1 Rafael Fonseca 2015-09-02 16:28:55 UTC
Created attachment 1069520 [details]
Fix compilation on ppc64le

Complete patch with spec file changes.

Note You need to log in before you can comment on or make changes to this bug.