Re: <sys/sysctl.h> will disappear from rawhide glibc soon

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

 



On Tue, May 5, 2020 at 6:01 PM Florian Weimer <fweimer@xxxxxxxxxx> wrote:
>
> * Fabio Valentini:
>
> > On Wed, Apr 15, 2020 at 5:50 PM Florian Weimer <fweimer@xxxxxxxxxx> wrote:
> >>
> >> This follows the removal of the system call from Linux 5.5.  Having the
> >> header and function just confuses configure checks that assume that if
> >> the function is present, it will do something useful (it never did on
> >> aarch64, and it's been many years since it worked on Fedora kernels on
> >> other architectures).
> >>
> >> Replacements are uname, getentropy, and reading from /proc, but I really
> >> do not expect much fallout from this (famous last words).
> >>
> >> The kernel headers still provide <linux/sysctl.h>, but that will
> >> eventually disappear as well.
> >
> > java-1.8.0-openjdk also fails to build due to the missing header on
> > rawhide - this is blocking some work towards OpenJDK 11.
>
> Do you have a build log?  Do you need help with fixing this?
>
> I thought that OpenJDK builds with -Werror, so it should have already
> trippeed on the deprecation warning?

I don't know why this wasn't noticed sooner. Looking at koschei:
https://koschei.fedoraproject.org/package/java-1.8.0-openjdk?
It started to fail with glibc-2.31.9000-9.fc33, which was the first
build without sys/sysctl.h.

It does look like it builds with -Werror, though ...

These are the error messages from the latest build log:

/builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.242.b08-3.fc33.x86_64/openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c:44:10:
fatal error: sys/sysctl.h: No such file or directory
   44 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

/builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.242.b08-3.fc33.x86_64/openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c:46:10:
fatal error: sys/sysctl.h: No such file or directory
   46 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

I'm only indirectly impacted by this since I'm trying to fix ~200 java
packages that will be broken with OpenJDK 11, but for a working
environment to do that, we'd need to build a modified
java-1.8.0-openjdk ...

Fabio

> Thanks,
> Florian
>
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux