Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

undefined reference to `bcm_host_init' #736

@ChayMahajj

Description

@ChayMahajj

Helo everyone,

I need help.
I have cross compiled rpi userland source code and install it successfully.
I developed a simple application that used the rpi userland libraries and create its Makefile as following

CFLAGS = -I/opt/vc/include \
	-I/opt/vc/include/interface/vcos/pthreads \
	-I/opt/vc/include/interface/vmcs_host \
	-I/opt/vc/include/interface/vmcs_host/linux
LDFLAGS = -L/opt/vc/lib -rdynamic -lbcm_host -Wl,-rpath,/opt/vc/lib

myapp: myapp.c

The application was being compiled successfully in Debian 10 (Linux Kernel 5.10) but after upgrading to Debian 11 and Linux Kernel 6.1 it fails and all references are undefined.

I checked the difference between Debian 10 and debian 11 but not something related to the issue.
Any idea?

Thank you.

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