From owner-freebsd-java@FreeBSD.ORG Thu Feb 26 20:41:00 2015 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AAA573FB for ; Thu, 26 Feb 2015 20:41:00 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7705B1B8 for ; Thu, 26 Feb 2015 20:41:00 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1QKf08B088966 for ; Thu, 26 Feb 2015 20:41:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 193009] java/openjdk8 does not build with OPTIONS_FILE_SET+=DEBUG Date: Thu, 26 Feb 2015 20:41:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jkim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 20:41:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193009 Jung-uk Kim changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Closed |Open CC| |jkim@FreeBSD.org, | |kib@FreeBSD.org Resolution|FIXED |--- --- Comment #8 from Jung-uk Kim --- Please note statically linking jli was a hack to work around a launcher problem. $ /usr/local/openjdk8/bin/java -version openjdk version "1.8.0_31" OpenJDK Runtime Environment (build 1.8.0_31-b13) OpenJDK 64-Bit Server VM (build 25.31-b07, mixed mode) Let's make a symlink and try the link. $ ln -fs /usr/local/openjdk8/bin/java . $ ./java -version openjdk version "1.8.0_31" OpenJDK Runtime Environment (build 1.8.0_31-b13) OpenJDK 64-Bit Server VM (build 25.31-b07, mixed mode) This works. However, the following fails: $ $PWD/java -version Shared object "libjli.so" not found, required by "java" That's because the actual executable was linked with '-z origin', i.e., $ objdump -p /usr/local/openjdk8/bin/java | grep ORIGIN RPATH $ORIGIN/../lib/amd64/jli:$ORIGIN/../lib/amd64 RUNPATH $ORIGIN/../lib/amd64/jli:$ORIGIN/../lib/amd64 $ ldd /usr/local/openjdk8/bin/java | grep libjli libjli.so => /usr/local/openjdk8/bin/../lib/amd64/jli/libjli.so (0x800a36000) $ ldd $PWD/java | grep libjli libjli.so => not found (0) As you can see, our rtld(1) resolves $ORIGIN differently if it starts with `/'. Arguably, it is a bug in rtld, though. -- You are receiving this mail because: You are the assignee for the bug.