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

libxml2 compile error #456

Closed
mdblack98 opened this issue Dec 5, 2020 · 0 comments
Closed

libxml2 compile error #456

mdblack98 opened this issue Dec 5, 2020 · 0 comments
Labels
bug build critical A problem for common operations with WSJT-X, GPredict, RigPi, etc.

Comments

@mdblack98
Copy link
Contributor

Making all in tests
make[1]: Entering directory '/home/claude/hamlib/tests'
make all-am
make[2]: Entering directory '/home/claude/hamlib/tests'
CC rigmem-memsave.o
memsave.c: In function ‘xml_save’:
memsave.c:64:39: warning: passing argument 2 of ‘rig_get_chan_all_cb’ makes integer from pointer without a cast [-Wint-conversion]
64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
| ^~~~~~~~~~~~~
| |
| int (*)(RIG *, channel_t **, int, const chan_t *, void ) {aka int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void )}
In file included from memsave.c:31:
../include/hamlib/rig.h:2588:42: note: expected ‘vfo_t’ {aka ‘unsigned int’} but argument is of type ‘int (
)(RIG *, channel_t **, int, const chan_t *, void )’ {aka ‘int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void *)’}
2588 | vfo_t vfo,
| ~~~~~~^~~
../include/hamlib/rig.h:74:33: note: in definition of macro ‘HAMLIB_PARAMS’
74 | # define HAMLIB_PARAMS(protos) protos
| ^~~~~~
memsave.c:64:54: warning: passing argument 3 of ‘rig_get_chan_all_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
| ^~~~
| |
| xmlNodePtr {aka struct _xmlNode }
In file included from memsave.c:31:
../include/hamlib/rig.h:2589:46: note: expected ‘chan_cb_t’ {aka ‘int (
)(struct s_rig *, struct channel **, int, const struct chan_list *, void *)’} but argument is of type ‘xmlNodePtr’ {aka ‘struct _xmlNode *’}
2589 | chan_cb_t chan_cb,
| ~~~~~~~~~~^~~~~~~
../include/hamlib/rig.h:74:33: note: in definition of macro ‘HAMLIB_PARAMS’
74 | # define HAMLIB_PARAMS(protos) protos
| ^~~~~~
memsave.c:64:14: error: too few arguments to function ‘rig_get_chan_all_cb’
64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
| ^~~~~~~~~~~~~~~~~~~
In file included from memsave.c:31:
../include/hamlib/rig.h:2587:1: note: declared here
2587 | rig_get_chan_all_cb HAMLIB_PARAMS((RIG *rig,
| ^~~~~~~~~~~~~~~~~~~
memsave.c: In function ‘dump_xml_chan’:
memsave.c:250:29: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘setting_t’ {aka ‘long long unsigned int’} [-Wformat=]
250 | sprintf(attrbuf, "%lx", chan.funcs);
| ~~^ ~~~~~~~~~~
| | |
| | setting_t {aka long long unsigned int}
| long unsigned int
| %llx
make[2]: *** [Makefile:1353: rigmem-memsave.o] Error 1
make[2]: Leaving directory '/home/claude/hamlib/tests'
make[1]: *** [Makefile:856: all] Error 2
make[1]: Leaving directory '/home/claude/hamlib/tests'

@mdblack98 mdblack98 added bug critical A problem for common operations with WSJT-X, GPredict, RigPi, etc. build labels Dec 5, 2020
mdblack98 added a commit that referenced this issue Dec 5, 2020
N0NB pushed a commit that referenced this issue Dec 6, 2020
#456

(cherry picked from commit 99d568d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build critical A problem for common operations with WSJT-X, GPredict, RigPi, etc.
Projects
None yet
Development

No branches or pull requests

1 participant