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

Compiling with -Dtest=true fails with clients/youtube/libtizyoutube/tests/check_tizyoutube.c:121:12: error: too few arguments to function ‘tiz_youtube_init’ #799

Open
dreirund opened this issue Aug 1, 2023 · 0 comments

Comments

@dreirund
Copy link

dreirund commented Aug 1, 2023

When I try to build this software with -Dtest=true passed to meson setup, build fails with:

[4/234] cc -Iclients/youtube/libtizyoutube/tests/check_tizyoutube.p -Iclients/youtube/libtizyoutube/tests -I../tizonia/clients/youtube/libtizyoutube/tests -Iclients/youtube/libtizyoutube/src -I../tizonia/clients/youtube/libtizyoutube/src -I/tmp/makepkg/build/tizonia-all-git/src/build -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DHAVE_CONFIG_H -include/tmp/makepkg/build/tizonia-all-git/src/build/config.h -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -flto=auto -Wno-error=format-security -Wno-error=strict-aliasing -Wno-error=address -pthread -MD -MQ clients/youtube/libtizyoutube/tests/check_tizyoutube.p/check_tizyoutube.c.o -MF clients/youtube/libtizyoutube/tests/check_tizyoutube.p/check_tizyoutube.c.o.d -o clients/youtube/libtizyoutube/tests/check_tizyoutube.p/check_tizyoutube.c.o -c ../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c
samu: job failed: cc -Iclients/youtube/libtizyoutube/tests/check_tizyoutube.p -Iclients/youtube/libtizyoutube/tests -I../tizonia/clients/youtube/libtizyoutube/tests -Iclients/youtube/libtizyoutube/src -I../tizonia/clients/youtube/libtizyoutube/src -I/tmp/makepkg/build/tizonia-all-git/src/build -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DHAVE_CONFIG_H -include/tmp/makepkg/build/tizonia-all-git/src/build/config.h -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -flto=auto -Wno-error=format-security -Wno-error=strict-aliasing -Wno-error=address -pthread -MD -MQ clients/youtube/libtizyoutube/tests/check_tizyoutube.p/check_tizyoutube.c.o -MF clients/youtube/libtizyoutube/tests/check_tizyoutube.p/check_tizyoutube.c.o.d -o clients/youtube/libtizyoutube/tests/check_tizyoutube.p/check_tizyoutube.c.o -c ../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c
../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c: In function ‘test_youtube_play_audio_stream_fn’:
../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c:121:12: error: too few arguments to function ‘tiz_youtube_init’
  121 |   int rc = tiz_youtube_init (&p_youtube);
      |            ^~~~~~~~~~~~~~~~
In file included from ../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c:40:
../tizonia/clients/youtube/libtizyoutube/src/tizyoutube_c.h:77:7: note: declared here
   77 |   int tiz_youtube_init (/*@null@ */ tiz_youtube_ptr_t *app_youtube,
      |       ^~~~~~~~~~~~~~~~
../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c: In function ‘test_youtube_play_audio_playlist_fn’:
../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c:144:12: error: too few arguments to function ‘tiz_youtube_init’
  144 |   int rc = tiz_youtube_init (&p_youtube);
      |            ^~~~~~~~~~~~~~~~
../tizonia/clients/youtube/libtizyoutube/src/tizyoutube_c.h:77:7: note: declared here
   77 |   int tiz_youtube_init (/*@null@ */ tiz_youtube_ptr_t *app_youtube,
      |       ^~~~~~~~~~~~~~~~
../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c: In function ‘test_youtube_play_audio_search_fn’:
../tizonia/clients/youtube/libtizyoutube/tests/check_tizyoutube.c:170:12: error: too few arguments to function ‘tiz_youtube_init’
  170 |   int rc = tiz_youtube_init (&p_youtube);
      |            ^~~~~~~~~~~~~~~~
../tizonia/clients/youtube/libtizyoutube/src/tizyoutube_c.h:77:7: note: declared here
   77 |   int tiz_youtube_init (/*@null@ */ tiz_youtube_ptr_t *app_youtube,
      |       ^~~~~~~~~~~~~~~~
samu: subcommand failed
==> ERROR: A failure occurred in build().

I am on Artix Linux (Arch Linux based, rolling release) with GCC 13.1.1.

Regards!

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

1 participant