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

fix archlinux gcc 14 build failure issue #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hzy199411
Copy link

@hzy199411 hzy199411 commented Sep 5, 2024

  1. add strings.h to fix strcasecmp issue
/home/hzy/build/PXView/libsigrok/strutil.c: In function ‘sr_parse_sizestring’:
/home/hzy/build/PXView/libsigrok/strutil.c:343:19: error: implicit declaration of function ‘strcasecmp’; did you mean ‘g_strcasecmp’? [-Wimplicit-function-declaration]
  343 |         if (*s && strcasecmp(s, "Hz"))
      |                   ^~~~~~~~~~
      |                   g_strcasecmp
  1. add strings.h to fix strcasecmp issue
/home/hzy/build/PXView/libsigrok/input/in_wav.c: In function ‘get_wav_header’:
/home/hzy/build/PXView/libsigrok/input/in_wav.c:47:23: error: implicit declaration of function ‘strcasecmp’; did you mean ‘g_strcasecmp’? [-Wimplicit-function-declaration]
   47 |         if (l <= 4 || strcasecmp(filename + l - 4, ".wav"))
      |                       ^~~~~~~~~~
      |                       g_strcasecmp
  1. add sr_dslogic_option_value_to_code2 declaration to fix implicit function declaration issue
/home/hzy/build/PXView/libsigrok/lib_main.c: In function ‘ds_dsl_option_value_to_code’:
/home/hzy/build/PXView/libsigrok/lib_main.c:1022:24: error: implicit declaration of function ‘sr_dslogic_option_value_to_code2’; did you mean ‘sr_dslogic_option_value_to_code’? [-Wimplicit-function-declaration]
 1022 |                 return sr_dslogic_option_value_to_code2(lib_ctx.actived_device_instance, config_id, value);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        sr_dslogic_option_value_to_code

1. add strings.h to fix strcasecmp issue
/home/hzy/build/PXView/libsigrok/strutil.c: In function ‘sr_parse_sizestring’:
/home/hzy/build/PXView/libsigrok/strutil.c:343:19: error: implicit declaration of function ‘strcasecmp’; did you mean ‘g_strcasecmp’? [-Wimplicit-function-declaration]
  343 |         if (*s && strcasecmp(s, "Hz"))
      |                   ^~~~~~~~~~
      |                   g_strcasecmp

2. add strings.h to fix strcasecmp issue
/home/hzy/build/PXView/libsigrok/input/in_wav.c: In function ‘get_wav_header’:
/home/hzy/build/PXView/libsigrok/input/in_wav.c:47:23: error: implicit declaration of function ‘strcasecmp’; did you mean ‘g_strcasecmp’? [-Wimplicit-function-declaration]
   47 |         if (l <= 4 || strcasecmp(filename + l - 4, ".wav"))
      |                       ^~~~~~~~~~
      |                       g_strcasecmp

3. add sr_dslogic_option_value_to_code2 declaration to fix implicit function declaration issue
/home/hzy/build/PXView/libsigrok/lib_main.c: In function ‘ds_dsl_option_value_to_code’:
/home/hzy/build/PXView/libsigrok/lib_main.c:1022:24: error: implicit declaration of function ‘sr_dslogic_option_value_to_code2’; did you mean ‘sr_dslogic_option_value_to_code’? [-Wimplicit-function-declaration]
 1022 |                 return sr_dslogic_option_value_to_code2(lib_ctx.actived_device_instance, config_id, value);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        sr_dslogic_option_value_to_code
@yjun123
Copy link

yjun123 commented Nov 25, 2024

遇到了相同的报错,在 gcc14.2.1 上.

@yjun123
Copy link

yjun123 commented Nov 27, 2024

hi, 我cherry-pick 了本次 pr,完成了 pxview的打包,已经将脚本上传到了 AUR

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

Successfully merging this pull request may close these issues.

2 participants