noonien / docker-openwrt-buildroot

A docker container for the OpenWRT buildroot.
MIT License
117 stars 49 forks source link

Make error because it tries openssl-1.0.1j.tar.gz (unavailable), instead of available openssl-1.0.1k.tar.gz #7

Closed sanderjo closed 9 years ago

sanderjo commented 9 years ago

Probably something upstream, but I post it here anyway as the docker container is still not working for me. :-(

In the make, I have a problem with openssl. See logging below. Root cause seems to be the make is tyring to get openssl-1.0.1j.tar.gz on different URL, but that does not exist anymore; version is openssl-1.0.1k.tar.gz. That is availabe on ftp://ftp.openssl.org/source/openssl-1.0.1k.tar.gz

I don't know how to correct that.

EDIT:

$ grep 1.0.1 package/libs/openssl/*
package/libs/openssl/Makefile:PKG_VERSION:=1.0.1j

... so changed that to 1.0.1k and trying make again. TBC.

make[3]: Leaving directory '/home/openwrt/openwrt/package/libs/ocf-crypto-headers'
make[3]: Entering directory '/home/openwrt/openwrt/package/libs/openssl'
WARNING: skipping libopenssl -- package not selected
mkdir -p /home/openwrt/openwrt/dl
/home/openwrt/openwrt/scripts/download.pl "/home/openwrt/openwrt/dl" "openssl-1.0.1j.tar.gz" "f7175c9cd3c39bb1907ac8bba9df8ed3" "http://www.openssl.org/source/" "ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source" "ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/"
--2015-01-08 21:47:30--  http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Resolving www.openssl.org (www.openssl.org)... 185.9.166.106
Connecting to www.openssl.org (www.openssl.org)|185.9.166.106|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-01-08 21:47:30 ERROR 404: Not Found.

Download failed.
--2015-01-08 21:47:30--  ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source/openssl-1.0.1j.tar.gz
           => '-'
Resolving ftp.funet.fi (ftp.funet.fi)... 193.166.3.2, 2001:708:10:9::20:2
Connecting to ftp.funet.fi (ftp.funet.fi)|193.166.3.2|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/crypt/mirrors/ftp.openssl.org/source ... 
No such directory 'pub/crypt/mirrors/ftp.openssl.org/source'.

Download failed.
--2015-01-08 21:47:31--  ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/openssl-1.0.1j.tar.gz
           => '-'
Resolving ftp.sunet.se (ftp.sunet.se)... 194.71.11.69, 2001:6b0:19::64
Connecting to ftp.sunet.se (ftp.sunet.se)|194.71.11.69|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/security/tools/net/openssl/source ... done.
==> SIZE openssl-1.0.1j.tar.gz ... done.
==> PASV ... done.    ==> RETR openssl-1.0.1j.tar.gz ... 
No such file 'openssl-1.0.1j.tar.gz'.

Download failed.
--2015-01-08 21:47:31--  http://mirror2.openwrt.org/sources/openssl-1.0.1j.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-01-08 21:47:31 ERROR 404: Not Found.

Download failed.
--2015-01-08 21:47:31--  http://downloads.openwrt.org/sources/openssl-1.0.1j.tar.gz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-01-08 21:47:31 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Makefile:201: recipe for target '/home/openwrt/openwrt/dl/openssl-1.0.1j.tar.gz' failed
make[3]: *** [/home/openwrt/openwrt/dl/openssl-1.0.1j.tar.gz] Error 2
make[3]: Leaving directory '/home/openwrt/openwrt/package/libs/openssl'
package/Makefile:173: recipe for target 'package/libs/openssl/compile' failed
make[2]: *** [package/libs/openssl/compile] Error 2
make[2]: Leaving directory '/home/openwrt/openwrt'
package/Makefile:170: recipe for target '/home/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/openwrt/openwrt'
/home/openwrt/openwrt/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2
sanderjo commented 9 years ago

That trick only worked half: yes, there is a openssl-1.0.1k.tar.gz, but it doesn't match a checksum :-(

make[3]: Entering directory '/home/openwrt/openwrt/package/libs/openssl'
WARNING: skipping libopenssl -- package not selected
mkdir -p /home/openwrt/openwrt/dl
/home/openwrt/openwrt/scripts/download.pl "/home/openwrt/openwrt/dl" "openssl-1.0.1k.tar.gz" "f7175c9cd3c39bb1907ac8bba9df8ed3" "http://www.openssl.org/source/" "ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source" "ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/"
--2015-01-08 22:16:09--  http://www.openssl.org/source/openssl-1.0.1k.tar.gz
Resolving www.openssl.org (www.openssl.org)... 185.9.166.106
Connecting to www.openssl.org (www.openssl.org)|185.9.166.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4434910 (4.2M) [application/x-gzip]
Saving to: 'STDOUT'

100%[=====================================================================================================>] 4,434,910   4.78MB/s   in 0.9s   

2015-01-08 22:16:10 (4.78 MB/s) - written to stdout [4434910/4434910]

MD5 sum of the downloaded file does not match (file: d4f002bd22a56881340105028842ae1f, requested: f7175c9cd3c39bb1907ac8bba9df8ed3) - deleting download.
sanderjo commented 9 years ago

I had a look at the git source, and it seems 3 hours ago a change was made the openssl Makefile: from j to k. Maybe I just make a new container image.

index 36f0adb..70eb741 100644 (file)
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=openssl
-PKG_VERSION:=1.0.1j
-PKG_RELEASE:=4
+PKG_VERSION:=1.0.1k
+PKG_RELEASE:=1
 PKG_USE_MIPS16:=0

 PKG_BUILD_PARALLEL:=1
@@ -18,7 +18,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.openssl.org/source/ \
        ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source \
        ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/
-PKG_MD5SUM:=f7175c9cd3c39bb1907ac8bba9df8ed3
+PKG_MD5SUM:=d4f002bd22a56881340105028842ae1f

 PKG_LICENSE:=OpenSSL
 PKG_LICENSE_FILES:=LICENSE

http://git.openwrt.org/?p=openwrt.git;a=blobdiff;f=package/libs/openssl/Makefile;h=70eb741e2cdb7096e3f22b806d77795b3363576a;hp=36f0adb15a18b68c2a1128bdad664a87628d4036;hb=4c2cb7206dae7144d2e7895d57a1c84d8c255588;hpb=49f779cb1a5e5c307db32cdd1ce75b3cf9f92baa

noonien commented 9 years ago

Do you still experience this issue?

sanderjo commented 9 years ago

No. Closed.