Makefile:5268: recipe for target 'libhpdiscovery.la' failed

Asked by Nachum Hurvitz on 2021-02-28

Hello, I am usually able to figure my way out of issues by searching for forum answers, but I am not getting any info

Linux Mint 19.3

Any version above 3.17.1 will not compile.

/bin/bash ./libtool --tag=CC --mode=link gcc -DCONFDIR=\"/etc/hp\" -I/usr/include/avahi-client -I/usr/include/avahi-core -I/usr/include/avahi-common -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DCONFDIR=\"/etc/hp\" -version-info 0:1:0 -L/usr/lib/x86_64-linux-gnu -o libhpdiscovery.la -rpath /usr/lib/x86_64-linux-gnu libhpdiscovery_la-avahiDiscovery.lo -lnetsnmp -lcrypto -lavahi-client -lavahi-core -lavahi-common -ldbus-1 -lavahi-common -lavahi-client -lcrypto
libtool: link: gcc -shared -fPIC -DPIC .libs/libhpdiscovery_la-avahiDiscovery.o -L/usr/lib/x86_64-linux-gnu -lnetsnmp -lavahi-core -ldbus-1 -lavahi-common -lavahi-client -lcrypto -Wl,-soname -Wl,libhpdiscovery.so.0 -o .libs/libhpdiscovery.so.0.0.1

/usr/bin/ld: cannot find -lavahi-core
collect2: error: ld returned 1 exit status
Makefile:5268: recipe for target 'libhpdiscovery.la' failed

avahi is installed though, I don't know whart lavahi is and it does not appear in dpkg

ii avahi-autoipd 0.7-3.1ubuntu1.2 amd64 Avahi IPv4LL network address configuration daemon
ii avahi-daemon 0.7-3.1ubuntu1.2 amd64 Avahi mDNS/DNS-SD daemon
ii avahi-discover 0.7-3.1ubuntu1.2 all Service discover user interface for avahi
ii avahi-ui-utils 0.7-3.1ubuntu1.2 amd64 Avahi GTK+ utilities
ii avahi-utils 0.7-3.1ubuntu1.2 amd64 Avahi browsing, publishing and discovery utilities

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Nachum Hurvitz
Solved:
2021-03-01
Last query:
2021-03-01
Last reply:
2021-02-28
Manfred Hampl (m-hampl) said : #1

The linker option "-lavahi-core" means "use the library avahi-core", and for that you probably have to install libavahi-core-dev

Nachum Hurvitz (nachum-l) said : #2

Manfred,

THANK YOU!

That kicked it loose. I appreciate your response, I was really stumped, since I never found a reference for said library.