On 9/23/20 1:39 AM, Marek Belisko wrote:
Hi,

adding zbar as dependency of some binary fails to link with this error:
recipe-sysroot/usr/lib/libzbar.so: undefined reference to `dsprintbuf'

when checked zbar code dsprintbuf is a static method and it's not exported.
Any ideas?

It seems the function is defined only when DEBUG_EAN is set in compiler cmdline, but uses of this function in not appropriately guarded. So a fix would be to find the use of this function within the code and guard it with DEBUG_EAN as well. As a workaround you can try compiling zbar with

CFLAGS += "-DDEBUG_EAN"


Thanks,

marek





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#87219): 
https://lists.openembedded.org/g/openembedded-devel/message/87219
Mute This Topic: https://lists.openembedded.org/mt/77030893/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to