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

Linux compilation error in ykpers-json.c #188

Open
RogueScholar opened this issue Feb 26, 2024 · 0 comments
Open

Linux compilation error in ykpers-json.c #188

RogueScholar opened this issue Feb 26, 2024 · 0 comments

Comments

@RogueScholar
Copy link

Attempting to compile from source on Kubuntu 23.10 using GCC 13.2.0 resulted in the following error:

ykpers-json.c: In function 'set_json_value':
ykpers-json.c:53:27: error: 'TRUE' undeclared (first use in this function)
   53 |                 if(ret == TRUE && json_object_get_type(joption) == json_type_boolean) {
      |                           ^~~~
ykpers-json.c:53:27: note: each undeclared identifier is reported only once for each function it appears in
ykpers-json.c: In function '_ykp_json_import_cfg':
ykpers-json.c:230:85: error: 'FALSE' undeclared (first use in this function)
  230 |                 if(yk_json_object_object_get(jobj, "yubiProdConfig", yprod_json) == FALSE) {
      |                                                                                     ^~~~~
ykpers-json.c:243:86: error: 'TRUE' undeclared (first use in this function)
  243 |                 if(yk_json_object_object_get(yprod_json, "targetConfig", jtarget) == TRUE) {
      |                                                                                      ^~~~
make[1]: *** [Makefile:789: ykpers-json.lo] Error 1

The build was configured using the following flags on a clean environment:

$ ./configure --sysconfdir=/etc --sharedstatedir=/var/lib --localstatedir=/var --runstatedir=/run --libdir=/usr/local/lib/x86_64-linux-gnu --includedir=/usr/local/include/x86_64-linux-gnu --with-backend=libusb-1.0 --with-udevrulesdir=/usr/lib/udev/rules.d
  ...
  configure: summary of build options:

  version:           1.19.0 shared 20:0:19 major 1 minor 19 patch 0 number 0x011300
  Host type:         x86_64-pc-linux-gnu
  Install prefix:    /usr/local
  Compiler:          gcc
  Library types:     Shared=yes, Static=yes
  USB backend:       libusb-1.0
  JSON library:      yes
    CFLAGS:          -I/usr/include/json-c
    LIBS:            -ljson-c
    pretty printing: yes
  udev rules dir:    /usr/lib/udev/rules.d
  udev rules file:   69-yubikey.rules

Relevant installed dependency versions are as follows:

  • GCC C compiler collection: 13.2.0
  • pkgconf: 2.0.3
  • libyubikey0: 1.13
  • libusb-1.0: 1.0.26
  • libjson-c5: 0.17
  • libudev1: 253.5
  • valgrind: 3.21.0

Please advise.

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

No branches or pull requests

1 participant