ld-elf.so.1: Shared object "%%LIBCUSE%%" not found

Hello,

I noticed this error message which shows up seven times at boot:

Code:
[...]
Starting devd.
em0: link state changed to UP
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
Configuring vt: keymap.
Autoloading module: uhid
Autoloading module: usbhid
Autoloading module: wmt
ld-elf.so.1: Shared object "%%LIBCUSE%%" not found
usbhid0 on uhub3
usbhid0: <USB Keyboard> on usbus1
hidbus0: <HID bus> on usbhid0
[...]

What does this mean? Any idea how to fix?

I do have cuse_load="YES" in /boot/loader.conf and the module is loaded properly.
 
Check the contents of /usr/local/etc/libmap.d. It looks like some port/package wrote a file there without translating the %%LIBCUSE%% macro/placeholder.
 
The only file in that directory is mesa.conf with the following content:
Code:
libGLX_indirect.so.0 libGLX_mesa.so.0
 
Maybe it got added to /etc/libmap.conf (it shouldn't but the error has to come from somewhere).
 
Nothing special there:

/etc/libmap.conf
Code:
# $FreeBSD$
includedir /usr/local/etc/libmap.d
 
Check the contents of /usr/local/etc/libmap.d. It looks like some port/package wrote a file there without translating the %%LIBCUSE%% macro/placeholder.

# cat /usr/local/etc/devd/uhidd-devd.conf
notify 0 {
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "cdev" "ugen[0-9]+.[0-9]+";
action "env LD_PRELOAD=%%LIBCUSE%% /usr/local/etc/rc.d/uhidd start /dev/$cdev";
};
#

How to translate this %%LIBCUSE%% macr/placeholder in the case of this uhidd-devd.conf file?
 
That depends. What does pkg which /usr/local/etc/devd/uhidd-devd.conf say?
I have to apologize for re-opening this old thread... actually, nothing, what made me recapitulate of an attempt I have done a while ago to set a bluetooth mouse that happened to have its clicks to work but not its finger-touching scrolling, which made me to forget this file in its abandoned 'shelf'.

After removing it, my system no longer shows the same 'ld-elf.so.1: Shared object "%%LIBCUSE%%" not found' message that drove me to this old post.

Thank you
 
Same error ,

pkg which /usr/local/etc/devd/uhidd-devd.conf
/usr/local/etc/devd/uhidd-devd.conf was not found in the database

x@myfreebsd:/etc $ cat /usr/local/etc/devd/uhidd-devd.conf
notify 0 {
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "cdev" "ugen[0-9]+.[0-9]+";
action "env LD_PRELOAD=%%LIBCUSE%% /usr/local/etc/rc.d/uhidd start /dev/$cdev";
};

So it's there but it's not there :)
 
pkg which /usr/local/etc/devd/uhidd-devd.conf
/usr/local/etc/devd/uhidd-devd.conf was not found in the database

x@myfreebsd:/etc $ cat /usr/local/etc/devd/uhidd-devd.conf
[…]

So it's there but it's not there :)
A pkg which /usr/local/etc/devd/uhidd-devd.conf.sample points to sysutils/uhidd, and that port/package defines this file as a so called @sample file. So uhidd-devd.conf is a duplicate of uhidd-devd.conf.sample that has been created by installing this port for the first time (and won't be touched later); The port itself doesn't contain the configuration file, so pkg which doesn't find it.
 
Same error ,

pkg which /usr/local/etc/devd/uhidd-devd.conf
/usr/local/etc/devd/uhidd-devd.conf was not found in the database

x@myfreebsd:/etc $ cat /usr/local/etc/devd/uhidd-devd.conf
notify 0 {
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "cdev" "ugen[0-9]+.[0-9]+";
action "env LD_PRELOAD=%%LIBCUSE%% /usr/local/etc/rc.d/uhidd start /dev/$cdev";
};

So it's there but it's not there :)
I deleted the uhidd package, reinstalled and noticed the message:
The uhidd port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future.

Then I replaced:
action "env LD_PRELOAD=%%LIBCUSE%% /usr/local/etc/rc.d/uhidd start /dev/$cdev";

With:
action "env LD_PRELOAD=/usr/lib/libcuse.so.1 /usr/local/etc/rc.d/uhidd start /dev/$cdev";
 
Back
Top