|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Building jdk/1.8 stuck during ftp fetch
Hello,
I'm trying to compile the jdk-1.8 with the with_ipv6 flavor but it's stuck here: Code:
===> py-crypto-2.6.1p2 depends on: python->=2.7,<2.8 -> python-2.7.12 ===> py-crypto-2.6.1p2 depends on: gmp-* - not found ===> Verifying install for gmp-* in devel/gmp ===> Checking files for gmp-5.0.2p3 >> Fetch ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2 Code:
curl ftp://ftp.cc.uoc.gr/mirrors/OpenBSD/ftplist Code:
curl ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2 -o output How can I debug this? EDIT: Code:
# curl -v ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2 -o output * Trying 130.242.124.102... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to ftp.gmplib.org (130.242.124.102) port 21 (#0) < 220-GMP ftp server < 220 Only anonymous FTP is allowed here > USER anonymous 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< 230- < 230-GMP -- GNU Multiple Precision Arithmetic Library < 230- < 230->>> This is an intensionally throttled ftp server. <<< < 230->>> For faster and less tamper-prone file download, please go to: <<< < 230->>> <<< < 230->>> https://gmplib.org/download/ <<< < 230- < 230-On this server: < 230- pub -- GMP releases, signature files < 230- pub/gmp-[VERSION] -- GMP release [VERSION] < 230- pub/gmp -- All GMP releases < 230- pub/snapshot -- GMP daily snapshots < 230- < 230-For more info about GMP, see https://gmplib.org/ < 230- < 230 Anonymous user logged in > PWD < 257 "/" is your current location * Entry path is '/' > CWD pub * ftp_perform ends with SECONDARY: 0 < 250 OK. Current directory is /pub > CWD gmp-5.0.2 < 250 OK. Current directory is /pub/gmp-5.0.2 > EPSV * Connect data stream passively 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0< 229 Extended Passive mode OK (|||57345|) * Trying 130.242.124.102... * Connecting to 130.242.124.102 (130.242.124.102) port 57345 * Connected to ftp.gmplib.org (130.242.124.102) port 21 (#0) > TYPE I 0 0 0 0 0 0 0 0 --:--:-- 0:00:36 --:--:-- 0 Thanks! Last edited by nyg; 12th February 2017 at 09:29 PM. |
|
|||
tcpdump only gives me current ssh and ntp packets. While netstat shows me this:
Code:
Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 16384 0 10.0.2.15.19093 130.242.124.102.49296 ESTABLISHED tcp 0 0 10.0.2.15.38476 130.242.124.102.21 ESTABLISHED Code:
# cat jdk.logs | grep Fetch ... >> Fetch ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz ... |
|
||||
I'll guess that the problem occurs when you fetch by FTP protocol, rather than by HTTP. FTP is an ancient protocol that predates TCP/IP, and may be an issue for your virtual machine's network passage.
The ftp(1) utility I mentioned above is also used with more modern HTTP and HTTPS protocols, though it retains its original name. While devel/libffi/Makefile has the FTP protocol hard-coded in its $MASTER_SITES URL variable, that variable will also include alternate sources. You could try to fetch the distfile manually (with ftp() or your preferred net/curl tool) using an alternate URL that does not require FTP. Code:
$ cd /usr/ports/devel/libffi $ make show=MASTER_SITES ftp://sourceware.org/pub/libffi/ https://ftp.openbsd.org/pub/OpenBSD/distfiles// ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles// https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles// $ |
|
|||
I think you misunderstood the output of my last command: libffi is fetched correctly over ftp while gmp-5.0.2 is not. Here's a more complete version, jdk.logs being the output produced by make install.
Code:
# cat jdk.logs | grep Fetch ... >> Fetch http://downloads.sourceforge.net/sourceforge/infozip/unzip60.tar.gz ... >> Fetch https://github.com/apple/cups/releases/download/release-2.1.4/cups-2.1.4-source.tar.gz ... >> Fetch ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz # worked ... >> Fetch ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz # worked ... >> Fetch ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2 # not working |
|
||||
My advice remains unchanged in light of your correction. If there is a fetch which is hanging, try one of the alternatives available in $MASTER_SITES.
In the event that advice fails, obtain all needed distfiles at your host, and transfer them to the guest via local network or via disk image. |
|
|||
Hmm, I tried what you proposed and downloaded the file from an alternative site and then kill the stuck ftp process half hoping that it would continue and use the file I downloaded but... the build process tried all by itself to download the file using the next alternative site!
Code:
===> py-crypto-2.6.1p2 depends on: python->=2.7,<2.8 -> python-2.7.12 ===> py-crypto-2.6.1p2 depends on: gmp-* - not found ===> Verifying install for gmp-* in devel/gmp ===> Checking files for gmp-5.0.2p3 >> Fetch ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2 Killed >> Fetch http://ftpmirror.gnu.org/gmp/gmp-5.0.2.tar.bz2 gmp-5.0.2.tar.bz2 100% |********************************| 1977 KB 00:08 >> (SHA256) gmp-5.0.2.tar.bz2: OK Once more, thanks for your help! |
|
|||
Thanks, the build should terminate successfully but on my personal server the resultant JDK still couldn't listen on IPv6 addresses. So I'll surely be back with another question.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Laptop lid close = stuck | akts | OpenBSD General | 3 | 12th October 2017 02:31 PM |
ThinkPad key stuck | LeFrettchen | General Hardware | 0 | 26th July 2015 12:43 PM |
Experts: We're stuck with passwords – and maybe they're best | J65nko | News | 1 | 17th January 2012 03:08 AM |
FreeBSD 7.2@amd64 atheros problem ath0: stuck beacon; resetting (bmiss count 4) | asmo | FreeBSD General | 0 | 6th June 2009 11:02 AM |
apache: data stuck in socket? | goertzenator | FreeBSD General | 8 | 16th February 2009 04:01 PM |