Build Error With ./configure --disable-networking

Open Beginner friendly
#20,108 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
build-system

Research direction

The reported failure is in record/drivers/record_nvenc.c when building with ./configure --disable-networking; start by inspecting record_nvenc_stop and record_nvenc_poll and how their command event declarations are included under that configuration. Reproduce with the stated configure command and check the build without the switch as a comparison. Done means the disabled-networking build compiles successfully.

Written by the indexing model from the issue text.

Description

Is there an existing issue for this?
  • This is a bug in RetroArch frontend
  • I have searched the existing issues
Description

Building for Win64 with ucrt64 using the ./configure --disable-networking switch I get this error:

record/drivers/record_nvenc.c: In function 'record_nvenc_stop':
record/drivers/record_nvenc.c:389:7: error: implicit declaration of function 'command_event' [-Wimplicit-function-declaration]
389 | command_event(CMD_EVENT_RECORD_DEINIT, NULL);
| ^~~~~~~~~~~~~
record/drivers/record_nvenc.c:389:21: error: 'CMD_EVENT_RECORD_DEINIT' undeclared (first use in this function)
389 | command_event(CMD_EVENT_RECORD_DEINIT, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
record/drivers/record_nvenc.c:389:21: note: each undeclared identifier is reported only once for each function it appears in
CC command.c
record/drivers/record_nvenc.c: In function 'record_nvenc_poll':
record/drivers/record_nvenc.c:426:24: error: 'CMD_EVENT_RECORD_INIT' undeclared (first use in this function)
426 | command_event(CMD_EVENT_RECORD_INIT, NULL);
| ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:312: obj-unix/release/record/drivers/record_nvenc.o] Error 1
make: *** Waiting for unfinished jobs....
CC msg_hash.c
Error: Process completed with exit code 2.

Expected behavior

No response

Steps to reproduce the bug

Try to compile the RetroArch frontend with ./configure --disable-networking . It will build fine without that switch.

Version/Commit

0c228a1d0d95f7df6a403bf19dbc01b0b45c50a7

Bisect Results

No response

Present in the nightly version

Yes, this is reproduced in the nightly build

Platform & operating system

Windows 11

Affected Cores

No response

Environment information

No response

Relevant log output

Dominant language
C
Stars
14.6k
Forks
2.4k
Avg merge
2d 5h
Merged PRs (30d)
63

Getting set up

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 libretro/RetroArch

All issues in libretro/RetroArch

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.