EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000097easycwmp[All Projects] Bugpublic2015-11-25 14:182015-11-25 16:07
Reportermohamed.kallel 
Assigned Tomohamed.kallel 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0000097: build error: undefined reference to cwmp_add_inform_timer
Descriptionthis bug is issued by Pedro by email:

Hi,

 I've donwloaded last version of easycwmp and i've an error when I try to compile it.

pedro@wm-pp-ubuntu:~/Escritorio/openwrt$ make package/easycwmp/{clean,compile} package/index V=s
...
...
...
mv -f ../src/.deps/easycwmpd-xml.Tpo ../src/.deps/easycwmpd-xml.Po
arm-openwrt-linux-muslgnueabi-gcc -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/lib -L/home/pedro/Escritorio/openwrt/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/usr/lib -L/home/pedro/Escritorio/openwrt/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/lib -znow -zrelro -Wl,-rpath-link=/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -o easycwmpd ../src/easycwmpd-backup.o ../src/easycwmpd-config.o ../src/easycwmpd-cwmp.o ../src/easycwmpd-digestauth.o ../src/easycwmpd-external.o ../src/easycwmpd-easycwmp.o ../src/easycwmpd-http.o ../src/easycwmpd-json.o ../src/easycwmpd-log.o ../src/easycwmpd-md5.o ../src/easycwmpd-time.o ../src/easycwmpd-ubus.o ../src/easycwmpd-xml.o -luci -lubox -lubus -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lmicroxml -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lcurl -ljson-c
../src/easycwmpd-easycwmp.o: In function `netlink_new_msg':
easycwmp.c:(.text+0x228): undefined reference to `cwmp_add_inform_timer'
../src/easycwmpd-easycwmp.o: In function `main':
easycwmp.c:(.text.startup+0x1b8): undefined reference to `cwmp_add_inform_timer'
easycwmp.c:(.text.startup+0x1e0): undefined reference to `cwmp_add_inform_timer'
../src/easycwmpd-backup.o: In function `backup_add_acsurl':
backup.c:(.text+0xdc): undefined reference to `cwmp_add_inform_timer'
../src/easycwmpd-backup.o: In function `backup_load_event':
backup.c:(.text+0x102c): undefined reference to `cwmp_add_inform_timer'
collect2: error: ld returned 1 exit status
make[4]: *** [easycwmpd] Error 1
make[4]: Leaving directory `/home/pedro/Escritorio/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/easycwmp/easycwmp-1.2.1/bin'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pedro/Escritorio/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/easycwmp/easycwmp-1.2.1'
make[2]: *** [/home/pedro/Escritorio/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/easycwmp/easycwmp-1.2.1/.built] Error 2
make[2]: Leaving directory `/home/pedro/Escritorio/openwrt/package/easycwmp'
make[1]: *** [package/easycwmp/compile] Error 2
make[1]: Leaving directory `/home/pedro/Escritorio/openwrt'
make: *** [package/easycwmp/compile] Error 2

I can compile it if i add the following line
void cwmp_add_inform_timer();
before
static void cwmp_periodic_inform(struct uloop_timeout *timeout);
in file cwmp.h

¿Is this the right solution?
¿Does cwmp.h file needs to be updated on next version?

Thanks a lot.
Best Regards,

--
Pedro
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000327)
mohamed.kallel (manager)
2015-11-25 16:07

fixed in EasyCwmp-1.2.2

- Issue History
Date Modified Username Field Change
2015-11-25 14:18 mohamed.kallel New Issue
2015-11-25 14:19 mohamed.kallel Description Updated View Revisions
2015-11-25 14:28 mohamed.kallel Summary build error: undefined reference to `cwmp_add_inform_timer' => build error: undefined reference to cwmp_add_inform_timer
2015-11-25 16:07 mohamed.kallel Note Added: 0000327
2015-11-25 16:07 mohamed.kallel Status new => resolved
2015-11-25 16:07 mohamed.kallel Resolution open => fixed
2015-11-25 16:07 mohamed.kallel Assigned To => mohamed.kallel


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker