View Issue Details

IDProjectCategoryView StatusLast Update
0000394easycwmpBugpublic2020-03-04 12:31
Reportertomiparedes Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformOPENWRTOS Version19.07 
Summary0000394: Problem compile openwrt
DescriptionHi, I'm having trouble compiling easycwmp in the latest version of openwrt as an included package. I follow the instructions of easycwmp download and unzip the package along with libmicroxml and later on make menuconfig select the same within utilities. Then a warning tells me :

make[3] -C package/easycwmp compile
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 1
TagsNo tags attached.
e-mail notification

Activities

mohamed.kallel

2019-11-18 10:27

administrator   ~0000956

Do you have the same problem when you compile another package?
Did you already compile the whole openwrt?

tomiparedes

2019-11-18 18:59

reporter   ~0000957

I already compiled other packages like Lucy and I had no problem

mohamed.kallel

2019-11-19 12:10

administrator   ~0000958

do you have easycwmp folder under package folder?
If yes, could you please provide the output of the tree command of the easycwmp folder.

tomiparedes

2019-11-19 17:58

reporter   ~0000959

make[3]: Leaving directory '/home/ipcoms/openwrt/package/network/utils/curl'
time: package/network/utils/curl/compile#156.22#19.85#196.35
make[3]: Entering directory '/home/ipcoms/openwrt/package/easycwmp'
mkdir -p /home/ipcoms/openwrt/dl
SHELL= flock /home/ipcoms/openwrt/tmp/.easycwmp-1.8.0.tar.gz.flock -c ' /home/ipcoms/openwrt/scripts/download.pl "/home/ipcoms/openwrt/dl" "easycwmp-1.8.0.tar.gz" "x" "" "http://easycwmp.org/download/" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
Makefile:106: recipe for target '/home/ipcoms/openwrt/dl/easycwmp-1.8.0.tar.gz' failed
make[3]: *** [/home/ipcoms/openwrt/dl/easycwmp-1.8.0.tar.gz] Error 255
make[3]: Leaving directory '/home/ipcoms/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.23#0.10#0.43
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/ipcoms/openwrt'
package/Makefile:107: recipe for target '/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ipcoms/openwrt'
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 2

mohamed.kallel

2019-11-19 18:05

administrator   ~0000960

Please use the last version of Easycwmp 1.8.5.

You have to add the MD5 sum of the EasyCwmp-1.x.x to EasyCwmp Makefile.

This is a new requirement in the latest openWRT versions.
You cna download manually EasyCwmp-1.x.x, then calculate the md5sum then update Makefile with that MD5 sum

tomiparedes

2019-11-19 18:13

reporter   ~0000961

but I don't understand when it comes to “calculating the md5sum”. Update the makefile file with regedit I can do it. Thank you

mohamed.kallel

2019-11-19 18:40

administrator   ~0000962

To calculate md5sum: Download easycwmp package, then (on linux) use md5sum command to retrieve the md5sum value

tomiparedes

2019-11-19 19:29

reporter   ~0000963

perfect, I must add it within MakeFile about
PKG_SOURCE_URL: = http: //easycwmp.org/download/a572013832c42df92254fcfcd308e649
This is correct ? thank you very much for all the support

tomiparedes

2019-11-21 20:53

reporter   ~0000964

I would appreciate a help

mohamed.kallel

2019-11-25 14:20

administrator   ~0000965

Last edited: 2019-11-25 14:21

PKG_SOURCE_URL: = http://easycwmp.org/download/easycwmp-1.8.5.tar.gz
PKG_MD5SUM:=66db42acb79837a15ca27d73925ebfd3

tomiparedes

2019-11-26 16:14

reporter   ~0000966

Hi, this is the error that throws me with all the modifications on make file of the md5sum :

make[3]: Entering directory '/home/ipcoms/openwrt/package/easycwmp'
mkdir -p /home/ipcoms/openwrt/dl
SHELL= flock /home/ipcoms/openwrt/tmp/.easycwmp-1.8.5.tar.gz.flock -c ' / home/ipcoms/openwrt/scripts/download.pl "/home/ipcoms/openwrt/dl" "easycwmp-1.8. 5.tar.gz" "a572013832c42df92254fcfcd308e649" "" "http://easycwmp.org/download/" '
Can't exec "curl": No such file or directory at /home/ipcoms/openwrt/scripts/dow nload.pl line 77.
+ wget --tries=5 --timeout=20 --no-check-certificate --output-document=- http:// easycwmp.org/download/easycwmp-1.8.5.tar.gz
--2019-11-26 15:10:50-- http://easycwmp.org/download/easycwmp-1.8.5.tar.gz
Resolving easycwmp.org (easycwmp.org)... 212.227.247.109, 2001:8d8:1001:23fb:565 8:d8cb:6a65:d815
Connecting to easycwmp.org (easycwmp.org)|212.227.247.109|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 72504 (71K) [application/gzip]
Saving to: 'STDOUT'

- 100%[===================>] 70.80K 123KB/s in 0.6s

2019-11-26 15:10:51 (123 KB/s) - written to stdout [72504/72504]

Hash of the downloaded file does not match (file: 03f60933b2afd03a33a853d9a469ca 6e, requested: a572013832c42df92254fcfcd308e649) - deleting download.
Can't exec "curl": No such file or directory at /home/ipcoms/openwrt/scripts/dow nload.pl line 77.
+ wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https:/ /sources.openwrt.org/easycwmp-1.8.5.tar.gz
--2019-11-26 15:10:51-- https://sources.openwrt.org/easycwmp-1.8.5.tar.gz
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.151.136, 2a01:4f8 :210:5087::2
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.151.136|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-11-26 15:10:52 ERROR 404: Not Found.

Download failed.
Can't exec "curl": No such file or directory at /home/ipcoms/openwrt/scripts/dow nload.pl line 77.
+ wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https:/ /mirror2.openwrt.org/sources/easycwmp-1.8.5.tar.gz
--2019-11-26 15:10:52-- https://mirror2.openwrt.org/sources/easycwmp-1.8.5.tar. gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221: 3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:443... conne cted.
HTTP request sent, awaiting response... 404 Not Found
2019-11-26 15:10:54 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Makefile:107: recipe for target '/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz' failed
make[3]: *** [/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz] Error 2
make[3]: Leaving directory '/home/ipcoms/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.29#0.11#4.02
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/ipcoms/openwrt'
package/Makefile:107: recipe for target '/home/ipcoms/openwrt/staging_dir/target -mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.pa ckage_compile] Error 2
make[1]: Leaving directory '/home/ipcoms/openwrt'
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 2

tomiparedes

2019-11-26 21:52

reporter   ~0000967

With the modifications mentioned above I continue to receive errors when it comes to compiling the package. Please could you give me a solution to this problem, if this solution should be charged there is no problem. From already thank you very much

tomiparedes

2019-12-02 14:40

reporter   ~0000968

hello can you answer me please

mohamed.kallel

2019-12-02 15:16

administrator   ~0000969

Please attach your Makefile

tomiparedes

2019-12-02 16:14

reporter   ~0000970

# Copyright (C) 2012-2016 PIVA Software <www.pivasoftware.com>
# Author: MOHAMED Kallel <mohamed.kallel@pivasoftware.com>
# Author: ANIS ELLOUZE <anis.ellouze@pivasoftware.com>

include $(TOPDIR)/rules.mk

PKG_NAME:=easycwmp
PKG_VERSION:=1.8.5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://easycwmp.org/download/easycwmp-openwrt.tar.gz
PKG_MD5SUM:=a572013832c42df92254fcfcd308e649

PKG_FIXUP:=autoreconf

PKG_CONFIG_DEPENDS:= \
    CONFIG_EASYCWMP_DEBUG \
    CONFIG_EASYCWMP_DEVEL

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/easycwmp
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=CWMP client (using libcurl)
  DEPENDS:=+libubus +libuci +libubox +libmicroxml +libjson-c +libcurl +curl
endef

define Package/easycwmp/description
 An open source implementation of the client CWMP (TR-069) protocol
endef

define Package/easycwmp/config
    source "$(SOURCE)/Config.in"
endef

USE_LOCAL=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1)
ifneq ($(USE_LOCAL),)
define Build/Prepare
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef
endif

TARGET_CFLAGS += \
    -D_GNU_SOURCE

TARGET_LDFLAGS += \
    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib

CONFIGURE_ARGS += \
    --with-uci-include-path=$(STAGING_DIR)/usr/include \
    --with-libubox-include-path=$(STAGING_DIR)/usr/include \
    --with-libubus-include-path=$(STAGING_DIR)/usr/include

ifeq ($(CONFIG_EASYCWMP_DEBUG),y)
CONFIGURE_ARGS += \
    --enable-debug
endif

ifeq ($(CONFIG_EASYCWMP_DEVEL),y)
CONFIGURE_ARGS += \
    --enable-devel
endif

ifeq ($(CONFIG_EASYCWMP_BACKUP_DATA_CONFIG),y)
CONFIGURE_ARGS += \
    --enable-backupdatainconfig
endif

CONFIGURE_ARGS += \
    --enable-jsonc=1

define Package/easycwmp/conffiles
/etc/config/easycwmp
/usr/share/easycwmp/defaults
endef

define Package/easycwmp/install
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/easycwmpd $(1)/usr/sbin
    $(INSTALL_DIR) $(1)/etc/config
    $(INSTALL_CONF) $(PKG_BUILD_DIR)/ext/openwrt/config/easycwmp $(1)/etc/config
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/init.d/easycwmpd $(1)/etc/init.d
ifeq ($(EASYCWMP_BACKUP_DATA_FILE),y)
    $(INSTALL_DIR) $(1)/etc/easycwmp
endif
ifeq ($(CONFIG_EASYCWMP_SCRIPTS_FULL),y)
    $(INSTALL_DIR) $(1)/usr/share/easycwmp/functions/
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/defaults $(1)/usr/share/easycwmp
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/common/* $(1)/usr/share/easycwmp/functions/
ifeq ($(CONFIG_EASYCWMP_DATA_MODEL_TR181),y)
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/tr181/* $(1)/usr/share/easycwmp/functions/
else
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/tr098/* $(1)/usr/share/easycwmp/functions/
endif
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/scripts/easycwmp.sh $(1)/usr/sbin/easycwmp
    chmod +x $(1)/usr/share/easycwmp/functions/*
else
    $(INSTALL_DIR) $(1)/usr/share/easycwmp/functions/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/common/ipping_launch $(1)/usr/share/easycwmp/functions/ipping_launch
endif
endef

$(eval $(call BuildPackage,easycwmp))

mohamed.kallel

2019-12-02 16:20

administrator   ~0000971

PKG_SOURCE_URL and PKG_MD5SUM are wrong, use the following

PKG_SOURCE_URL: = http://easycwmp.org/download/easycwmp-1.8.5.tar.gz
PKG_MD5SUM:=66db42acb79837a15ca27d73925ebfd3

tomiparedes

2019-12-03 13:40

reporter   ~0000972

make[3]: Entering directory '/home/ipcoms/openwrt/package/easycwmp'
mkdir -p /home/ipcoms/openwrt/dl
SHELL= flock /home/ipcoms/openwrt/tmp/.easycwmp-1.8.5.tar.gz.flock -c ' / home/ipcoms/openwrt/scripts/download.pl "/home/ipcoms/openwrt/dl" "easycwmp-1.8. 5.tar.gz" "66db42acb79837a15ca27d73925ebfd3 " "" "http://easycwmp.org/download/e asycwmp-1.8.5.tar.gz" "[^]" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 o r SHA256 checksum.
Makefile:107: recipe for target '/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz' failed
make[3]: *** [/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz] Error 255
make[3]: Leaving directory '/home/ipcoms/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.28#0.05#0.45
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/ipcoms/openwrt'
package/Makefile:107: recipe for target '/home/ipcoms/openwrt/staging_dir/target -mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.pa ckage_compile] Error 2
make[1]: Leaving directory '/home/ipcoms/openwrt'
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 2

mohamed.kallel

2019-12-06 15:58

administrator   ~0000973

try to build with the following command:

make package/easycwmp/download SKIPHASH=1

tomiparedes

2019-12-13 20:15

reporter   ~0000977

ipcoms@ipcoms-HVM-domU:~/openwrt$ make package/easycwmp/download SKIPHASH=1
time: target/linux/prereq#0.98#0.38#1.61
 make[1] package/easycwmp/download
 make[2] -C package/easycwmp download
make -r package/easycwmp/download: build failed. Please re-run make with -j1 V=s
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el
make: *** [package/easycwmp/download] Error 1

tomiparedes

2019-12-30 17:12

reporter   ~0000978

Hi, is there any news regarding the compilation of easycwmp in openwrt

tomiparedes

2020-02-26 22:06

reporter   ~0000984

Hello everyone, the truth is that I observe that the TR069 project by easycwmp is very down, I have tried to compile the package on several occasions and with different versions of openwrt and I have never had success following and performing all the tests that I proposed mohamed.kallel but I haven't had an answer yet. It would be nice to tell us if you are still committed to it if we do not look for another solution. From already thank you very much

user13

2020-03-04 12:30

  ~0000985

Last edited: 2020-03-04 12:31

hello,
did you try to download easycwmp and then try to build it with verbosity (V==99).

if yes, could you provide us the build log

Issue History

Date Modified Username Field Change
2019-11-18 00:59 tomiparedes New Issue
2019-11-18 10:27 mohamed.kallel Note Added: 0000956
2019-11-18 18:59 tomiparedes Note Added: 0000957
2019-11-19 12:10 mohamed.kallel Note Added: 0000958
2019-11-19 17:58 tomiparedes Note Added: 0000959
2019-11-19 18:05 mohamed.kallel Note Added: 0000960
2019-11-19 18:13 tomiparedes Note Added: 0000961
2019-11-19 18:40 mohamed.kallel Note Added: 0000962
2019-11-19 19:29 tomiparedes Note Added: 0000963
2019-11-21 20:53 tomiparedes Note Added: 0000964
2019-11-25 14:20 mohamed.kallel Note Added: 0000965
2019-11-25 14:21 mohamed.kallel Note Edited: 0000965
2019-11-26 16:14 tomiparedes Note Added: 0000966
2019-11-26 21:52 tomiparedes Note Added: 0000967
2019-12-02 14:40 tomiparedes Note Added: 0000968
2019-12-02 15:16 mohamed.kallel Note Added: 0000969
2019-12-02 16:14 tomiparedes Note Added: 0000970
2019-12-02 16:20 mohamed.kallel Note Added: 0000971
2019-12-03 13:40 tomiparedes Note Added: 0000972
2019-12-06 15:58 mohamed.kallel Note Added: 0000973
2019-12-13 20:15 tomiparedes Note Added: 0000977
2019-12-30 17:12 tomiparedes Note Added: 0000978
2020-02-26 22:06 tomiparedes Note Added: 0000984
2020-03-04 12:30 user13 Note Added: 0000985
2020-03-04 12:31 user13 Note Edited: 0000985