Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable avahi causes build to fail #21

Open
zarniwhoop73 opened this issue Nov 17, 2023 · 0 comments
Open

Disable avahi causes build to fail #21

zarniwhoop73 opened this issue Nov 17, 2023 · 0 comments

Comments

@zarniwhoop73
Copy link

My only printer is an old epson inkject which is locally via usb.

According to configure, '--disable-avahi' allows builds without avahi.

** build details **
configure:

Environment settings:
CFLAGS: -g -O2 -Wall -std=gnu11 -D_GNU_SOURCE
CXXFLAGS: -Wall -D_GNU_SOURCE
LDFLAGS:
Build configuration:
cups-config: system
init directory:
cups dom socket: /run/cups/cups.sock
avahi: no
browsing: dnssd cups
local queue naming for remote CUPS queues: DNS-SD
keep generated queues during shutdown: no
update network interfaces after each found entry: yes
all ipp printer auto-setup: yes
only driverless auto-setup: no
only local auto-setup: no
werror: no

'make' then fails with:
gcc -DHAVE_CONFIG_H -I. -I/usr/include/cupsfilters -I/usr/include/ppd -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread -g -O2 -Wall -std=gnu11 -D_GNU_SOURCE -MT daemon/cups_browsed-cups-browsed.o -MD -MP -MF daemon/.deps/cups_browsed-cups-browsed.Tpo -c -o daemon/cups_browsed-cups-browsed.o test -f 'daemon/cups-browsed.c' || echo './'daemon/cups-browsed.c
daemon/cups-browsed.c:405:3: error: unknown type name 'AvahiIfIndex'
405 | AvahiIfIndex interface;
| ^~~~~~~~~~~~
daemon/cups-browsed.c:406:3: error: unknown type name 'AvahiProtocol'
406 | AvahiProtocol protocol;
| ^~~~~~~~~~~~~
daemon/cups-browsed.c:411:9: error: unknown type name 'AvahiAddress'
411 | const AvahiAddress *address;
| ^~~~~~~~~~~~
(etc)

Expected behavior
Build succeeds without avahi.

System Information:

  • OS: LinuxFromScratch
  • Version 20221113

Additional context
Since I lack a networked printer, installing avahi would be an unnecessary vulnerability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant