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

error: too many Argmuents #96

Open
Klammraute opened this issue Aug 22, 2021 · 1 comment
Open

error: too many Argmuents #96

Klammraute opened this issue Aug 22, 2021 · 1 comment

Comments

@Klammraute
Copy link

Hi, i got this error when i try to make

/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:6: error: too many arguments to function ‘SoapySDRDevice_setupStream’
491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {

:>
root@listen:/home/listen/rx_tools-1.0.3# make
Scanning dependencies of target common
[ 12%] Building C object CMakeFiles/common.dir/src/convenience/convenience.c.o
/home/listen/rx_tools-1.0.3/src/convenience/convenience.c: In function ‘verbose_device_search’:
/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:38: warning: passing argument 2 of ‘SoapySDRDevice_setupStream’ makes integer from pointer without a cast [-Wint-conversion]
491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {
| ^~~~~~~~~
| |
| SoapySDRStream ** {aka struct SoapySDRStream **}
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33,
from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22:
/usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘int’ but argument is of type ‘SoapySDRStream **’ {aka ‘struct SoapySDRStream **’}
306 | SOAPY_SDR_API SoapySDRStream *SoapySDRDevice_setupStream(SoapySDRDevice *device,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:49: warning: passing argument 3 of ‘SoapySDRDevice_setupStream’ makes pointer from integer without a cast [-Wint-conversion]
491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {
| ^~~~~~~~~~~~
| |
| int
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33,
from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22:
/usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘const char *’ but argument is of type ‘int’
306 | SOAPY_SDR_API SoapySDRStream *SoapySDRDevice_setupStream(SoapySDRDevice *device,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:63: warning: passing argument 4 of ‘SoapySDRDevice_setupStream’ from incompatible pointer type [-Wincompatible-pointer-types]
491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {
| ^~~~~~
| |
| const char *
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33,
from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22:
/usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘const size_t *’ {aka ‘const long unsigned int *’} but argument is of type ‘const char *’
306 | SOAPY_SDR_API SoapySDRStream *SoapySDRDevice_setupStream(SoapySDRDevice *device,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:71: warning: passing argument 5 of ‘SoapySDRDevice_setupStream’ makes integer from pointer without a cast [-Wint-conversion]
491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {
| ^~~~
| |
| void *
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33,
from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22:
/usr/local/include/SoapySDR/Device.h:306:31: note: expected ‘size_t’ {aka ‘const long unsigned int’} but argument is of type ‘void *’
306 | SOAPY_SDR_API SoapySDRStream *SoapySDRDevice_setupStream(SoapySDRDevice *device,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/listen/rx_tools-1.0.3/src/convenience/convenience.c:491:6: error: too many arguments to function ‘SoapySDRDevice_setupStream’
491 | if (SoapySDRDevice_setupStream(dev, streamOut, SOAPY_SDR_RX, format, NULL, 0, &stream_args) != 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/listen/rx_tools-1.0.3/src/convenience/convenience.h:33,
from /home/listen/rx_tools-1.0.3/src/convenience/convenience.c:22:
/usr/local/include/SoapySDR/Device.h:306:31: note: declared here
306 | SOAPY_SDR_API SoapySDRStream *SoapySDRDevice_setupStream(SoapySDRDevice *device,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/common.dir/build.make:63: CMakeFiles/common.dir/src/convenience/convenience.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

how can i solve this?

@lachesis
Copy link

Well here I am three years later hitting this same issue when I try to build this package on arch. I am guessing it's related to SoapySDR 0.8 vs 0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants