Skip to content

Compilation error with imsg-compat #18

@Narrat

Description

@Narrat

Hello,
when trying to compile telescope with the latest imsg-compat 7.4.0 and --with-imsg I get the following errors:

net.c: In function ‘load_cert’:
net.c:545:19: error: implicit declaration of function ‘imsg_get_fd’; did you mean ‘imsg_get’? [-Wimplicit-function-declaration]
  545 |         if ((fd = imsg_get_fd(imsg)) == -1)
      |                   ^~~~~~~~~~~
      |                   imsg_get
net.c: In function ‘handle_dispatch_imsg’:
net.c:600:25: error: implicit declaration of function ‘imsg_get_type’; did you mean ‘imsg_get’? [-Wimplicit-function-declaration]
  600 |                 switch (imsg_get_type(&imsg)) {
      |                         ^~~~~~~~~~~~~
      |                         imsg_get
net.c:602:29: error: implicit declaration of function ‘imsg_get_data’; did you mean ‘imsg_get’? [-Wimplicit-function-declaration]
  602 |                         if (imsg_get_data(&imsg, &r, sizeof(r)) == -1 ||
      |                             ^~~~~~~~~~~~~
      |                             imsg_get
net.c:619:35: error: implicit declaration of function ‘imsg_get_id’; did you mean ‘imsg_get’? [-Wimplicit-function-declaration]
  619 |                         req->id = imsg_get_id(&imsg);
      |                                   ^~~~~~~~~~~
      |                                   imsg_get
make[2]: *** [Makefile:819: net.o] Error 1
make[2]: Leaving directory '/tmp/makepkg/telescope/src/telescope-0.10.1'
make[1]: *** [Makefile:885: all-recursive] Error 1
make[1]: Leaving directory '/tmp/makepkg/telescope/src/telescope-0.10.1'
make: *** [Makefile:598: all] Error 2

Oddly enough going back to 6.8.2 also throws a compilation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions