Synergy-core: Switch to native Avahi support to solve warnings

Created on 14 May 2015  路  6Comments  路  Source: symless/synergy-core

On Fedora 21, synergy complains with the following:

    *** WARNING *** The program 'qsynergy' uses the Apple Bonjour compatibility layer of Avahi.
    *** WARNING *** Please fix your application to use the native API of Avahi!
    *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=qsynergy>
    *** WARNING *** The program 'qsynergy' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
    *** WARNING *** Please fix your application to use the native API of Avahi!
    *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=qsynergy&f=DNSServiceRegister>

While Fedora ships an old synergy version (1.6.2), #4606 seems to suggest recent version still show this warning. It might be worth adding support for native avahi.

enhancement stale

Most helpful comment

Making a change, which ultimately lead to a system wide loss of functionality is hardly a "fix".

All 6 comments

Same problem on Arch Linux, is there a solution, unofficial workaround now ?

Same problem on Raspbian (Debian Wheezy) on my build from source for the Raspberry Pi see #4764

I have the same problems with Linux Mint - where is the fix ?

The following suppressed the warnings on my installation:
edit the file /etc/avahi/avahi-daemon.conf (you will need elevated privileges) and delete or comment out the lline
rlimit-nproc=3
then reinstall avahi by typing: sudo apt-get install --reinstall avahi-daemon
Eventually I found avahi taking 100% of CPU on my RPi so disabled the avahi-daemon without noticing any problems (however there are no apple computers in my set-up which is what I believe avahi is there to support)

Making a change, which ultimately lead to a system wide loss of functionality is hardly a "fix".

Note: export AVAHI_COMPAT_NOWARN=1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spacepluk picture spacepluk  路  5Comments

johnny-mac picture johnny-mac  路  4Comments

sangwoo-joh picture sangwoo-joh  路  4Comments

xmstspider picture xmstspider  路  4Comments

laur89 picture laur89  路  5Comments