[GH-ISSUE #20] CentOS-7 compatibility layer warnings #14

Closed
opened 2026-05-05 04:41:54 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @truatpasteurdotfr on GitHub (Mar 9, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/20

Operating Systems

CentOS-7

Barrier Version

2.0.0-RC2

Steps to reproduce bug

running barrier on CentOS-7 gives this warning message:

$ barrier
*** WARNING *** The program 'barrier' 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=barrier>

when clicking on the [] server checkbox these additionnal lines appears:

*** WARNING *** The program 'barrier' 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=barrier&f=DNSServiceRegister>

list of the avahi packages installed on the machine:

$ rpm -qa \*avahi\*| sort
avahi-0.6.31-17.el7.x86_64
avahi-compat-libdns_sd-0.6.31-17.el7.x86_64
avahi-compat-libdns_sd-devel-0.6.31-17.el7.x86_64
avahi-devel-0.6.31-17.el7.x86_64
avahi-glib-0.6.31-17.el7.x86_64
avahi-gobject-0.6.31-17.el7.x86_64
avahi-libs-0.6.31-17.el7.i686
avahi-libs-0.6.31-17.el7.x86_64
avahi-ui-gtk3-0.6.31-17.el7.x86_64
```
Originally created by @truatpasteurdotfr on GitHub (Mar 9, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/20 ### Operating Systems ### CentOS-7 ### Barrier Version ### 2.0.0-RC2 ### Steps to reproduce bug ### running barrier on CentOS-7 gives this warning message: ``` $ barrier *** WARNING *** The program 'barrier' 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=barrier> ``` when clicking on the [] server checkbox these additionnal lines appears: ``` *** WARNING *** The program 'barrier' 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=barrier&f=DNSServiceRegister> ``` list of the *avahi* packages installed on the machine: ```` $ rpm -qa \*avahi\*| sort avahi-0.6.31-17.el7.x86_64 avahi-compat-libdns_sd-0.6.31-17.el7.x86_64 avahi-compat-libdns_sd-devel-0.6.31-17.el7.x86_64 avahi-devel-0.6.31-17.el7.x86_64 avahi-glib-0.6.31-17.el7.x86_64 avahi-gobject-0.6.31-17.el7.x86_64 avahi-libs-0.6.31-17.el7.i686 avahi-libs-0.6.31-17.el7.x86_64 avahi-ui-gtk3-0.6.31-17.el7.x86_64 ```
Author
Owner

@walker0643 commented on GitHub (Mar 10, 2018):

These warnings seems to be benign. Several other projects using libraries for apple technology have seen them and most seem to disregard them ...

eg:
https://github.com/nfarina/homebridge/blob/master/README.md#errors-on-startup

The question now becomes one of whether or not it is worth it to "fix" code that otherwise works.

<!-- gh-comment-id:372001029 --> @walker0643 commented on GitHub (Mar 10, 2018): These warnings seems to be benign. Several other projects using libraries for apple technology have seen them and most seem to disregard them ... eg: https://github.com/nfarina/homebridge/blob/master/README.md#errors-on-startup The question now becomes one of whether or not it is worth it to "fix" code that otherwise works.
Author
Owner

@truatpasteurdotfr commented on GitHub (Mar 12, 2018):

Either fix, or put an entry for a FAQ, with a better wording than "the cost of removing the issue at the core of the errors isn't worth the effort", imho.

<!-- gh-comment-id:372299373 --> @truatpasteurdotfr commented on GitHub (Mar 12, 2018): Either fix, or put an entry for a FAQ, with a better wording than "the cost of removing the issue at the core of the errors isn't worth the effort", imho.
Author
Owner

@walker0643 commented on GitHub (Mar 13, 2018):

More info:

https://src.fedoraproject.org/rpms/cups/tree/f15

The 5 patches beginning with cups-avahi- are what the cups folks had to do to get this warning to go away. I'm not finding any indication whatsoever of a change in functionality. It seems to be simply an effort to get developers not to use Apple APIs even though they are supported now and have been for > 10 years (this warning is older than that).

<!-- gh-comment-id:372708310 --> @walker0643 commented on GitHub (Mar 13, 2018): More info: https://src.fedoraproject.org/rpms/cups/tree/f15 The 5 patches beginning with cups-avahi- are what the cups folks had to do to get this warning to go away. I'm not finding any indication whatsoever of a change in functionality. It seems to be simply an effort to get developers not to use Apple APIs even though they are supported now and have been for > 10 years (this warning is older than that).
Author
Owner

@walker0643 commented on GitHub (Mar 13, 2018):

Fixed in 921a40c684

<!-- gh-comment-id:372734638 --> @walker0643 commented on GitHub (Mar 13, 2018): Fixed in https://github.com/debauchee/barrier/commit/921a40c6841951fc6b744751f39c1a0dcf1b94ed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#14
No description provided.