From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8839 Path: news.gmane.org!not-for-mail From: Timo Teras Newsgroups: gmane.linux.lib.musl.general Subject: Re: Building OpenJDK8 with musl Date: Wed, 11 Nov 2015 13:16:07 +0200 Message-ID: <20151111131607.0e02f8ba@vostro> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1447240586 28548 80.91.229.3 (11 Nov 2015 11:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2015 11:16:26 +0000 (UTC) Cc: musl@lists.openwall.com To: Frieder Berthold Original-X-From: musl-return-8852-gllmg-musl=m.gmane.org@lists.openwall.com Wed Nov 11 12:16:26 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZwTO3-0006EU-VQ for gllmg-musl@m.gmane.org; Wed, 11 Nov 2015 12:16:24 +0100 Original-Received: (qmail 28280 invoked by uid 550); 11 Nov 2015 11:16:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28256 invoked from network); 11 Nov 2015 11:16:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=8TQjcxim3DDwKNuEbAc7WbCyDLb/jgVsLxzQKKaBmC0=; b=CpPAhqGBDCRPpyrCvU6mhxxiEz6oLjoc58Xdc0ppnBGpeZoOnurJR9r1lpCDcHZbeZ gI2WNaL2lQHN1DYL/Qf2MWwpReBZbmxpzLxfOvRpD/UVRJBd00u+FkY511XZGzN43Nl0 9y2FkXVWaYtV8mlEo6L+xeGuQT9jc6vLlZ9B4qwYYpjVWJ2hEt6EFDvxit9m0srtohEU oTDYUltMaNrOeVDITW63P/JKyw/O3EdB3iwsyp4LwO7u4eRcs2yiLIXgp2SyLodIsk6I z6AVEaSsZlEFuuMMedrmHuaNyOoA4uFllVws7O6o5+WoDbydriwTf6uAE0w0GAfd2cSM zIhA== X-Received: by 10.112.99.199 with SMTP id es7mr4300270lbb.25.1447240569823; Wed, 11 Nov 2015 03:16:09 -0800 (PST) Original-Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= In-Reply-To: X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) Xref: news.gmane.org gmane.linux.lib.musl.general:8839 Archived-At: Hi, On Wed, 11 Nov 2015 12:11:50 +0100 Frieder Berthold wrote: > I want to build a rather small Java Runtime Environment with OpenJDK8 > and the small JamVM and use musl for this purpose. Unfortunately > OpenJDK needs the header sys/sysctl.h which musl does not provide > anymore ( I found older musl version which include this header). > Is there a reason for that? > > Maybe someone already tried to build OpenJDK8 with musl and could > give me some further hints? We build openjdk8 for alpine linux using musl. The build scripts are at: http://git.alpinelinux.org/cgit/aports/tree/community/openjdk8 It uses openjdk7 (built via icedtea) to bootstrap. The patch fix your specific issue is: http://git.alpinelinux.org/cgit/aports/tree/community/openjdk8/icedtea-jdk-musl.patch and as you see, sysctl.h is not really needed and can be just removed. /Timo