bin/101765: ldd is unable to read ELF header?

Nico Schottelius chdscni9 at
Thu Aug 10 16:50:18 UTC 2006

>Number:         101765
>Category:       bin
>Synopsis:       ldd is unable to read ELF header?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 10 16:50:16 GMT 2006
>Originator:     Nico Schottelius
>Release:        FreeBSD 5.5-RELEASE amd64
Netstream AG
System: FreeBSD 5.5-RELEASE FreeBSD 5.5-RELEASE #0: Fri Jul 7 13:21:21 CEST 2006 root at amd64

	It is a AMD64 system. Perhaps this makes a difference.
	ldd is not able to show dependencies, although file is a dynamic executable.

	Use ldd on a dynamic executable:

root at ddba034:/usr/local/netvault/bin > file txtconfig 
txtconfig: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4, dynamically linked (uses shared libs), stripped
root at ddba034:/usr/local/netvault/bin > ldd txtconfig 
ldd: txtconfig: can't read program header
ldd: txtconfig: not a dynamic executable

	Reading the elf header with readelf is possible.




More information about the freebsd-bugs mailing list