Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1238 - curl: https request returns 'Illegal instruction' #6188

Open
openwrt-bot opened this issue Dec 22, 2017 · 1 comment
Open

FS#1238 - curl: https request returns 'Illegal instruction' #6188

openwrt-bot opened this issue Dec 22, 2017 · 1 comment
Labels
core packages pull request/issue for core (in-tree) packages flyspray

Comments

@openwrt-bot
Copy link

ogarcia:

Environment:

root@LEDE:~# cat /etc/os-release
NAME="LEDE"
VERSION="17.01.4, Reboot"
ID="lede"
ID_LIKE="lede openwrt"
PRETTY_NAME="LEDE Reboot 17.01.4"
VERSION_ID="17.01.4"
HOME_URL="http://lede-project.org/"
BUG_URL="http://bugs.lede-project.org/"
SUPPORT_URL="http://forum.lede-project.org/"
BUILD_ID="r3560-79f57e422d"
LEDE_BOARD="mpc85xx/generic"
LEDE_ARCH="powerpc_8540"
LEDE_TAINTS="no-all"
LEDE_DEVICE_MANUFACTURER="LEDE"
LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
LEDE_DEVICE_PRODUCT="Generic"
LEDE_DEVICE_REVISION="v0"
LEDE_RELEASE="LEDE Reboot 17.01.4 r3560-79f57e422d"

Description:

I'm using oficial stable release for //TP-Link TL-WDR4900 v1// and when I try to use curl I give the following error:

root@LEDE:~# curl https://google.com
Illegal instruction

I have installed all curl dependencies and ca-certificates:
root@LEDE:~# opkg list-installed | egrep "ssl|curl|mbed|ddns"
curl - 7.52.1-6
ddns-scripts - 2.7.6-13
ddns-scripts_cloudflare.com-v4 - 2.7.6-13
libcurl - 7.52.1-6
libmbedtls - 2.6.0-1
libopenssl - 1.0.2n-1
luci-app-ddns - 2.4.8-2
openvpn-openssl - 2.4.4-2

And wget works well:
root@LEDE:~# wget https://google.com
--2017-12-18 13:25:10-- https://google.com/
Resolving google.com... 178.60.128.37, 178.60.128.42, 178.60.128.20, ...
Connecting to google.com|178.60.128.37|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.google.es/?gfe_rd=cr&dcr=0&ei=prM3Wp3qOeGs8wfNpI_gDg [following]
--2017-12-18 13:25:10-- https://www.google.es/?gfe_rd=cr&dcr=0&ei=prM3Wp3qOeGs8wfNpI_gDg
Resolving www.google.es... 172.217.21.67, 2a00:1450:4006:807::2003
Connecting to www.google.es|172.217.21.67|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'

index.html [ <=> ] 12.82K 81.4KB/s in 0.2s

2017-12-18 13:25:11 (81.4 KB/s) - 'index.html' saved [13132]

There is an issue with curl - 7.52.1-6?

@aparcar aparcar added the core packages pull request/issue for core (in-tree) packages label Feb 22, 2022
@Djfe
Copy link
Contributor

Djfe commented Feb 20, 2023

not an issue anymore
you can close this @hauke

(it's expected that one package feed is not available at the moment)

# opkg update
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/telephony/Packages.sig
Signature check passed.
Downloading http://opkg.ffac.rocks/modules/gluon-ffac-v2022.1.11/mpc85xx/p1010/Packages.gz
*** Failed to download the package list from http://opkg.ffac.rocks/modules/gluon-ffac-v2022.1.11/mpc85xx/p1010/Packages.gz

Collected errors:
 * opkg_download: Failed to download http://opkg.ffac.rocks/modules/gluon-ffac-v2022.1.11/mpc85xx/p1010/Packages.gz, wget returned 8.


# opkg install curl
Installing curl (7.86.0-2) to root...
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/packages/curl_7.86.0-2_powerpc_8540.ipk
Installing libmbedtls12 (2.28.2-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/base/libmbedtls12_2.28.2-1_powerpc_8540.ipk
Installing libnghttp2-14 (1.44.0-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/packages/libnghttp2-14_1.44.0-1_powerpc_8540.ipk
Installing libcurl4 (7.86.0-2) to root...
Downloading https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/powerpc_8540/packages/libcurl4_7.86.0-2_powerpc_8540.ipk
Configuring libmbedtls12.
Configuring libnghttp2-14.
Configuring libcurl4.
Configuring curl.


# curl https://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>


# cat /etc/os-release
NAME="OpenWrt"
VERSION="22.03-SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 22.03-SNAPSHOT"
VERSION_ID="22.03-snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r20014+9-6c3e16055a"
OPENWRT_BOARD="mpc85xx/p1010"
OPENWRT_ARCH="powerpc_8540"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 22.03-SNAPSHOT r20014+9-6c3e16055a"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages flyspray
Projects
None yet
Development

No branches or pull requests

3 participants