[GRADLE-2422] build problems with jnr-posix 1.1.8 Created: 06/Aug/12  Updated: 10/Feb/17  Resolved: 10/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: 1.1
Fix Version/s: None

Type: Bug
Reporter: gil Assignee: Unassigned
Resolution: Won't Fix Votes: 1


 Description   

hi
i have this problems with jnr-posix 1.1.8

build.native:
[mkdir] Created dir: /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/build/classes
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/build.xml:1143: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 37 source files to /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/FileSystemServices.java:26: error: BaseNativePOSIX is not public in org.jruby.ext.posix; cannot be accessed from outside package
[javac] import org.jruby.ext.posix.BaseNativePOSIX;
[javac] ^
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/FileSystemServices.java:27: error: JavaPOSIX is not public in org.jruby.ext.posix; cannot be accessed from outside package
[javac] import org.jruby.ext.posix.JavaPOSIX;
[javac] ^
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/LibCStat.java:21: error: BaseNativePOSIX is not public in org.jruby.ext.posix; cannot be accessed from outside package
[javac] import org.jruby.ext.posix.BaseNativePOSIX;
[javac] ^
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/LibCStat.java:23: error: cannot find symbol
[javac] import org.jruby.ext.posix.Linux64FileStat;
[javac] ^
[javac] symbol: class Linux64FileStat
[javac] location: package org.jruby.ext.posix
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/LibCStat.java:32: error: cannot find symbol
[javac] private final BaseNativePOSIX nativePOSIX;
[javac] ^
[javac] symbol: class BaseNativePOSIX
[javac] location: class LibCStat
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/LibCStat.java:34: error: cannot find symbol
[javac] public LibCStat(LibC libc, OperatingSystem operatingSystem, BaseNativePOSIX nativePOSIX, FilePathEncoder encoder) {
[javac] ^
[javac] symbol: class BaseNativePOSIX
[javac] location: class LibCStat
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/PosixUtil.java:35: error: cannot find symbol
[javac] public void error(POSIX.ERRORS error, String message) {
[javac] ^
[javac] symbol: class ERRORS
[javac] location: interface POSIX
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/FileSystemServices.java:64: error: cannot find symbol
[javac] serviceRegistry.add(Stat.class, new LibCStat(libC, operatingSystem, (BaseNativePOSIX) PosixUtil.current(), filePathEncoder));
[javac] ^
[javac] symbol: class BaseNativePOSIX
[javac] location: class FileSystemServices
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/FileSystemServices.java:98: error: cannot find symbol
[javac] if (posix instanceof JavaPOSIX) {
[javac] ^
[javac] symbol: class JavaPOSIX
[javac] location: class FileSystemServices
[javac] /home/gil/rpmbuild/BUILD/gradle-1.1/subprojects/native/src/main/java/org/gradle/internal/nativeplatform/filesystem/LibCStat.java:51: error: cannot find symbol
[javac] final int statVersion = stat instanceof Linux64FileStat ? 3 : 0;
[javac] ^
[javac] symbol: class Linux64FileStat
[javac] location: class LibCStat
[javac] 10 errors
[javac] 1 warning



 Comments   
Comment by Adam Murdoch [ 06/Aug/12 ]

You'll need to compile against jna-posix, not jnr-posix.

Comment by gil [ 06/Aug/12 ]

hi
in fedora jnr-posix has been replaced by jna-posix
and we can't reimport this library
thanks
regards

Comment by gil [ 06/Aug/12 ]

sorry
in fedora jna-posix has been replaced by jnr-posix
again thanks

Comment by gil [ 06/Aug/12 ]

for more information see https://github.com/gradle/gradle/pull/76

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 10/Feb/17 ]

Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved.

Generated at Wed Jun 30 12:21:28 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.