compile-problem

Thomas Schäfer tschaefer at t-online.de
Sat May 19 01:41:33 PDT 2012


Hello,


while testing K5005-surfstick I tried to use the newest libqmi-cli.

After checking out, ./autogen.sh and make I have got the following message:

thomas at hpmini:~/lib-qmi/libqmi-glib> LANG=C make
make  all-recursive
make[1]: Entering directory `/home/thomas/lib-qmi/libqmi-glib'
Making all in .
make[2]: Entering directory `/home/thomas/lib-qmi/libqmi-glib'
make[2]: Leaving directory `/home/thomas/lib-qmi/libqmi-glib'
Making all in build-aux
make[2]: Entering directory `/home/thomas/lib-qmi/libqmi-glib/build-aux'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/thomas/lib-qmi/libqmi-glib/build-aux'
Making all in src
make[2]: Entering directory `/home/thomas/lib-qmi/libqmi-glib/src'
  CC     libqmi_glib_la-qmi-message-ctl.lo
qmi-message-ctl.c: In function 'qmi_message_ctl_version_info_reply_parse':
qmi-message-ctl.c:181:60: error: format '%u' expects argument of type 
'unsigned int', but argument 6 has type 'long unsigned int' [-Werror=format]
cc1: all warnings being treated as errors

make[2]: *** [libqmi_glib_la-qmi-message-ctl.lo] Error 1
make[2]: Leaving directory `/home/thomas/lib-qmi/libqmi-glib/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thomas/lib-qmi/libqmi-glib'
make: *** [all] Error 2
thomas at hpmini:~/lib-qmi/libqmi-glib> 

After removing all Werror (ignoring warnings, not treating as erroe) in the 
makefiles it compiles and works.



Regards,

Thomas


More information about the libqmi-devel mailing list