Bug 127275

Summary: ldd(1) produces uncatchable output
Product: Base System Reporter: kamikaze
Component: amd64Assignee: freebsd-amd64 mailing list <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: unspecified   
Hardware: Any   
OS: Any   

Description kamikaze 2008-09-10 18:40:03 UTC
Ldd produces the output 'ELF binary type "0" not known.' upon encountering binaries that are listed as 'Unix - System V' by readelf -e.

How-To-Repeat: tcsh:
# ldd /usr/local/Adobe/Reader8/ENU/Adobe/HelpViewer/1.0/intellinux/bin/ahv-binary >& /dev/null

sh:
# ldd /usr/local/Adobe/Reader8/ENU/Adobe/HelpViewer/1.0/intellinux/bin/ahv-binary
> /dev/null 2>&1
Comment 1 kamikaze 2008-09-15 18:51:14 UTC
This can be closed, because what I thought were two distinct problems has
turned out to have the same cause. So this can be considered a duplicate of
amd64/127276.

Ldd invokes the binary and in case of a nonsensical elf-brand the kernel (at
least that is my suspect) posts a message on the terminal.

The workaround is to only run ldd on FreeBSD binaries. The safe solution,
would in my opinion, be a check weather the binary uses the FreeBSD linker,
but this discussion can remain in amd64/127276.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2008-09-15 22:45:01 UTC
State Changed
From-To: open->closed

See amd64/127276.