use of undeclared identifier 'VERSION_SHA1'

Open
#340 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c
Domain
build-system

Research direction

Start in src/lib/pci_virtio_net_vpnkit.c at lines 324-325 and trace where VERSION_SHA1 is expected to be declared or generated. Check the surrounding build configuration and compile path; done means the file builds without the undeclared-identifier errors.

Written by the indexing model from the issue text.

Description

src/lib/pci_virtio_net_vpnkit.c:324:16: error: use of undeclared identifier 'VERSION_SHA1'
assert(sizeof(VERSION_SHA1) == sizeof(init_msg.commit) + 1);
^
src/lib/pci_virtio_net_vpnkit.c:325:27: error: use of undeclared identifier 'VERSION_SHA1'
memcpy(&init_msg.commit, VERSION_SHA1, sizeof(init_msg.commit));

Dominant language
C
Stars
3.7k
Forks
336
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moby/hyperkit

All issues in moby/hyperkit

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.