Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1252860 - Fix compilation of rxtx on ppc64le: no sys/io.h
Summary: Fix compilation of rxtx on ppc64le: no sys/io.h
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rxtx
Version: rawhide
Hardware: ppc64le
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Levente Farkas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
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:
Environment:
Last Closed: 2015-09-02 16:57:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
no io.h patch updated (396 bytes, patch)
2015-08-12 11:53 UTC, Rafael Fonseca
no flags Details | Diff
Fix compilation on ppc64le (1.77 KB, patch)
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/librxtxRaw.la' failed
make: *** [powerpc64le-redhat-linux-gnu/librxtxRaw.la] 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.

[1] http://sourceforge.net/p/predef/wiki/Architectures/

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.