Skip to content

[BUG] [FreeBSD] fails to build without libdrm since 2.46.0 #1820

Closed
@pkubaj

Description

@pkubaj

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

I'm building fastfetch 2.46.0 with -DENABLE_DRM=OFF. That fails with:

/tmp/usr/ports/sysutils/fastfetch/work/fastfetch-2.46.0/src/detection/gpu/gpu_bsd.c:217:9: error: call to undeclared function 'detectByDrm'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-funct
ion-declaration]                                                                                                                                                                                                                      
  217 |         detectByDrm(options, gpus);                                                                                                                                                                                           
      |         ^                                                                                                                                                                                                                     

That's because detectByDrm is declared behind FF_HAVE_DRM macro check.
I'm on FreeBSD 14.3-RELEASE.

Version used

2.46.0

Bug prevalence

Always

Regression

Yes

Installation

Built from source

Package manager

FreeBSD ports

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions