Bug 1216892

Summary: /usr/lib64/libm.so is no library but text
Product: [openSUSE] openSUSE Distribution Reporter: H. Kuest <hkuest-g38>
Component: DevelopmentAssignee: Andreas Schwab <schwab>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: 64bit   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description H. Kuest 2023-11-05 17:26:12 UTC
When attempting to scan from a network scanner the journalctl output tells

Nov 05 16:02:47 localhost xsane[12118]: common/utils.c 250: unable to load library libm.so: /usr/lib64/libm.so: Ungültiger ELF-Header
Nov 05 16:02:47 localhost xsane[12118]: common/utils.c 117: unable to open /var/lib/hp/hplip.state: Datei oder Verzeichnis nicht gefunden
Nov 05 16:02:47 localhost xsane[12118]: common/utils.c 167: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Nov 05 16:02:47 localhost xsane[12118]: common/utils.c 211: Plugin version is not matching
Nov 05 16:02:47 localhost xsane[12118]: common/utils.c 282: Invalid Library hanlder pLibHandler = NULL.

An investigation of the library supplied by the glibc-devel package tells

# ls -l /usr/lib64/libm.so
-rw-r--r-- 1 root root 110 Oct  5 13:23 /usr/lib64/libm.so
# cat /usr/lib64/libm.so
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6  AS_NEEDED ( /lib64/libmvec.so.1 ) )

This remains present even after a forced re-installation of glibc-devel.
Comment 1 Andreas Schwab 2023-11-15 10:07:54 UTC
A linker script is a valid library.