Article 6JV4S [SOLVED] avahi stub library

[SOLVED] avahi stub library

by
elcore
from LinuxQuestions.org on (#6JV4S)
Got no use for avahi over here, no printer, no desktop environments, and I'm getting rid of this ASAP.
I'll use this snippet to fill the potholes caused by removing avahi package.
Thanks to whoever shared this idea in the past, I forgot who it was..
If you want to use it too: make sure /usr/local/lib64 exists in /etc/ld.so.conf
Code:#!/bin/sh
removepkg avahi
#
cd /usr/local/lib64 &&
#
gcc -shared -o libavahi-client.so -x c - < /dev/null
ln -sf libavahi-client.so libavahi-client.so.3
gcc -shared -o libavahi-common.so -x c - < /dev/null
ln -sf libavahi-common.so libavahi-common.so.3
gcc -shared -o libavahi-core.so -x c - < /dev/null
ln -sf libavahi-core.so libavahi-core.so.7
gcc -shared -o libavahi-glib.so -x c - < /dev/null
ln -sf libavahi-glib.so libavahi-glib.so.1
gcc -shared -o libavahi-gobject.so -x c - < /dev/null
ln -sf libavahi-gobject.so libavahi-gobject.so.0
gcc -shared -o libavahi-libevent.so -x c - < /dev/null
ln -sf libavahi-libevent.so libavahi-libevent.so.1
gcc -shared -o libavahi-qt5.so -x c - < /dev/null
ln -sf libavahi-qt5.so libavahi-qt5.so.1
gcc -shared -o libavahi-ui-gtk3.so -x c - < /dev/null
ln -sf libavahi-ui-gtk3.so libavahi-ui-gtk3.so.0
gcc -shared -o libavahi-ui.so -x c - < /dev/null
ln -sf libavahi-ui.so libavahi-ui.so.0
gcc -shared -o libdns_sd.so -x c - < /dev/null
ln -sf libdns_sd.so libdns_sd.so.1
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments