Files
buildroot/package/sane-airscan/Config.in
Bernd Kuhls b71b14793a package/sane-airscan: needs BR2_TOOLCHAIN_HAS_SYNC_4
Fixes a build error

output/per-package/sane-airscan/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
 libsane-airscan.so.1.p/airscan-http.c.o: in function `http_data_ref':
airscan-http.c:(.text+0x1c88): undefined reference to `__sync_fetch_and_add_4'
output/per-package/sane-airscan/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
 libsane-airscan.so.1.p/airscan-http.c.o: in function `http_data_unref':
airscan-http.c:(.text+0x1cd0): undefined reference to `__sync_sub_and_fetch_4'
output/per-package/sane-airscan/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
 libsane-airscan.so.1.p/airscan-trace.c.o: in function `trace_ref':
airscan-trace.c:(.text+0x32c): undefined reference to `__sync_fetch_and_add_4'
output/per-package/sane-airscan/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
 libsane-airscan.so.1.p/airscan-trace.c.o: in function `trace_unref':
airscan-trace.c:(.text+0x358): undefined reference to `__sync_sub_and_fetch_4'

with this defconfig

BR2_sparc=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_SPARCV8_UCLIBC_STABLE=y
BR2_PACKAGE_SANE_AIRSCAN=y

detected by the Gitlab pipelines while testing to bump of sane-backends
to 1.4.0 in this series.

The build error is caused by an upstream commit added in 2020 to version
0.99.14:
fccd8402a6
so a backport to LTS branches should be considered because the initial
version of the buildroot package was 0.99.33, added with commit
f78280bf26.

An autobuilder error was not recorded yet because it is masked by various
build errors of the sane-backends package which are resolved by its bump
to 1.4.0 in this series.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
2026-06-01 21:44:55 +02:00

33 lines
1.2 KiB
Plaintext

config BR2_PACKAGE_SANE_AIRSCAN
bool "sane-airscan"
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_STATIC_LIBS # avahi, gnutls, sane-backends
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_TOOLCHAIN_HAS_THREADS # avahi, dbus
depends on BR2_USE_WCHAR # avahi, gnutls
depends on BR2_USE_MMU # dbus, sane-backends
select BR2_PACKAGE_AVAHI
select BR2_PACKAGE_AVAHI_DAEMON # needed to get avahi-client
select BR2_PACKAGE_DBUS # needed by avahi to get avahi-client
select BR2_PACKAGE_GNUTLS
select BR2_PACKAGE_JPEG
select BR2_PACKAGE_LIBPNG
select BR2_PACKAGE_LIBXML2
select BR2_PACKAGE_SANE_BACKENDS
select BR2_PACKAGE_TIFF
help
SANE backend for AirScan (eSCL) and WSD document scanners
Similar to how most modern network printers support
"driverless" printing, using the universal vendor-neutral
printing protocol, many modern network scanners and MFPs
support "driverless" scanning.
https://github.com/alexpevzner/sane-airscan
comment "sane-airscan needs a toolchain w/ wchar, dynamic library, threads, C++"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP