EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000077easycwmp[All Projects] Helppublic2015-08-24 15:082015-08-26 10:12
Reporterkewal agrawal 
Assigned Tomohamed.kallel 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformlinuxOSubuntuOS Version14.04 LTS
Summary0000077: error with bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice. command
DescriptionI get the following error while running the command

bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice.

flags:WARN getopt: invalid option -- '�'
getopt: invalid option -- '�'
getopt: invalid option -- '�'
getopt: invalid option -- 's'
getopt: invalid option -- 'o'
getopt: invalid option -- 'n'
 -j -- 'get' 'value' 'InternetGatewayDevice.'
flags:FATAL unable to parse provided options with getopt.
Steps To ReproduceI performed all the steps given in http://www.easycwmp.org/index.php/manual [^] and when i tried bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice. I got that message.
Additional InformationAlso when I tried running MAKE inside cd /opt/dev/easycwmp/ folder I got the following output

Making all in bin
make[1]: Entering directory `/opt/dev/easycwmp/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/dev/easycwmp/bin'
make[1]: Entering directory `/opt/dev/easycwmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/dev/easycwmp'


Is this right? I think there is some problem while running the make
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000267)
mohamed.kallel (manager)
2015-08-24 21:03

remove the "--json" from the command. it's useless in the newest version. I have to update the manual.

bash /usr/sbin/easycwmp get value InternetGatewayDevice.
(0000268)
kewal agrawal (reporter)
2015-08-25 07:29

Thanks for such a prompt reply mohamed..it worked..just out of curiosity is the makefile inside easycwmp supposed to give the same output as I mentioned above??
(0000269)
mohamed.kallel (manager)
2015-08-25 11:04
edited on: 2015-08-25 11:05

If the easycwmp is already compiled then yes I get the same output:

user@user /opt/dev/easycwmp $ make
Making all in bin
make[1]: Entering directory `/opt/dev/easycwmp/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/dev/easycwmp/bin'
make[1]: Entering directory `/opt/dev/easycwmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/dev/easycwmp'






If the easycwmp is not already compiled then I get the following output:

user@user /opt/dev/easycwmp $ make clean
Making all in bin
make[1]: Entering directory `/opt/dev/easycwmp/bin'
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-backup.o -MD -MP -MF .deps/easycwmpd-backup.Tpo -c -o easycwmpd-backup.o `test -f '../src/backup.c' || echo './'`../src/backup.c
mv -f .deps/easycwmpd-backup.Tpo .deps/easycwmpd-backup.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-config.o -MD -MP -MF .deps/easycwmpd-config.Tpo -c -o easycwmpd-config.o `test -f '../src/config.c' || echo './'`../src/config.c
mv -f .deps/easycwmpd-config.Tpo .deps/easycwmpd-config.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-cwmp.o -MD -MP -MF .deps/easycwmpd-cwmp.Tpo -c -o easycwmpd-cwmp.o `test -f '../src/cwmp.c' || echo './'`../src/cwmp.c
mv -f .deps/easycwmpd-cwmp.Tpo .deps/easycwmpd-cwmp.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-digestauth.o -MD -MP -MF .deps/easycwmpd-digestauth.Tpo -c -o easycwmpd-digestauth.o `test -f '../src/digestauth.c' || echo './'`../src/digestauth.c
mv -f .deps/easycwmpd-digestauth.Tpo .deps/easycwmpd-digestauth.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-external.o -MD -MP -MF .deps/easycwmpd-external.Tpo -c -o easycwmpd-external.o `test -f '../src/external.c' || echo './'`../src/external.c
mv -f .deps/easycwmpd-external.Tpo .deps/easycwmpd-external.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-easycwmp.o -MD -MP -MF .deps/easycwmpd-easycwmp.Tpo -c -o easycwmpd-easycwmp.o `test -f '../src/easycwmp.c' || echo './'`../src/easycwmp.c
mv -f .deps/easycwmpd-easycwmp.Tpo .deps/easycwmpd-easycwmp.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-http.o -MD -MP -MF .deps/easycwmpd-http.Tpo -c -o easycwmpd-http.o `test -f '../src/http.c' || echo './'`../src/http.c
../src/http.c: In function ‘http_get_response’:
../src/http.c:121:2: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
  DDF("%.*s", size * rxed, buffer);
  ^
../src/http.c:121:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘void *’ [-Wformat=]
mv -f .deps/easycwmpd-http.Tpo .deps/easycwmpd-http.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-json.o -MD -MP -MF .deps/easycwmpd-json.Tpo -c -o easycwmpd-json.o `test -f '../src/json.c' || echo './'`../src/json.c
../src/json.c: In function ‘json_common_get_string’:
../src/json.c:30:2: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:295) [-Wdeprecated-declarations]
  js_tmp = json_object_object_get(js_obj, key);
  ^
mv -f .deps/easycwmpd-json.Tpo .deps/easycwmpd-json.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-log.o -MD -MP -MF .deps/easycwmpd-log.Tpo -c -o easycwmpd-log.o `test -f '../src/log.c' || echo './'`../src/log.c
mv -f .deps/easycwmpd-log.Tpo .deps/easycwmpd-log.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-md5.o -MD -MP -MF .deps/easycwmpd-md5.Tpo -c -o easycwmpd-md5.o `test -f '../src/md5.c' || echo './'`../src/md5.c
mv -f .deps/easycwmpd-md5.Tpo .deps/easycwmpd-md5.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-time.o -MD -MP -MF .deps/easycwmpd-time.Tpo -c -o easycwmpd-time.o `test -f '../src/time.c' || echo './'`../src/time.c
mv -f .deps/easycwmpd-time.Tpo .deps/easycwmpd-time.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-ubus.o -MD -MP -MF .deps/easycwmpd-ubus.Tpo -c -o easycwmpd-ubus.o `test -f '../src/ubus.c' || echo './'`../src/ubus.c
mv -f .deps/easycwmpd-ubus.Tpo .deps/easycwmpd-ubus.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-xml.o -MD -MP -MF .deps/easycwmpd-xml.Tpo -c -o easycwmpd-xml.o `test -f '../src/xml.c' || echo './'`../src/xml.c
mv -f .deps/easycwmpd-xml.Tpo .deps/easycwmpd-xml.Po
gcc -D_THREAD_SAFE -D_REENTRANT -g -O2 -o easycwmpd easycwmpd-backup.o easycwmpd-config.o easycwmpd-cwmp.o easycwmpd-digestauth.o easycwmpd-external.o easycwmpd-easycwmp.o easycwmpd-http.o easycwmpd-json.o easycwmpd-log.o easycwmpd-md5.o easycwmpd-time.o easycwmpd-ubus.o easycwmpd-xml.o -luci -lubox -lubus -lmicroxml -lpthread -lcurl -ljson-c
make[1]: Leaving directory `/opt/dev/easycwmp/bin'
make[1]: Entering directory `/opt/dev/easycwmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/dev/easycwmp'
user@user /opt/dev/easycwmp $

(0000270)
kewal agrawal (reporter)
2015-08-25 14:19

oh yes I had already compiled it...thanks again mohamed..

- Issue History
Date Modified Username Field Change
2015-08-24 15:08 kewal agrawal New Issue
2015-08-24 21:03 mohamed.kallel Note Added: 0000267
2015-08-25 07:29 kewal agrawal Note Added: 0000268
2015-08-25 11:04 mohamed.kallel Note Added: 0000269
2015-08-25 11:05 mohamed.kallel Note Edited: 0000269 View Revisions
2015-08-25 14:19 kewal agrawal Note Added: 0000270
2015-08-26 10:12 mohamed.kallel Status new => resolved
2015-08-26 10:12 mohamed.kallel Resolution open => no change required
2015-08-26 10:12 mohamed.kallel Assigned To => mohamed.kallel


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker