Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: bmarkus on August 12, 2010, 06:01:23 AM

Title: Invalid ELF header?
Post by: bmarkus on August 12, 2010, 06:01:23 AM
Just built an extension which has several executables in /usr/local/bin. These are working fine in the development environment. On a clean TC 3.0 few of them do not start (no any message). Executing ldd on them I get 'Invalid ELF header' message. Other executables are OK after loading dependencies. ldd works es expected on them.

It is strange. Also, doesn't help to identify missing deps. :(
Title: Re: Invalid ELF header?
Post by: curaga on August 12, 2010, 06:42:46 AM
PM me the problematic ones.
Title: Re: Invalid ELF header?
Post by: tinypoodle on August 12, 2010, 07:26:58 AM
Perhaps the output of running
Code: [Select]
file on them (and compare with working executables) could give any clue?
Title: Re: Invalid ELF header?
Post by: curaga on August 12, 2010, 09:23:30 AM
Both are bash scripts.

Usually when a script interpreter is missing, you get an error "file or directory not found" - this threw me off. :)
Title: Re: Invalid ELF header?
Post by: bmarkus on August 12, 2010, 09:37:44 AM
Both are bash scripts.

Usually when a script interpreter is missing, you get an error "file or directory not found" - this threw me off. :)

Shit... I'm really stupid. This is the result if one is doing many thing in parallel, like me at the moment without concentrating on trhe problem  ;D Sorry for that. Hope you were laughing a lot at least which is healthy. I broke my own rules also, post such issues on a forum at least 24 hours later. As a week excuse I'm hunting for a dirty little thing running on my CentOS server hacking SSH port of Columbia University servers :(

Béla

And sorry again


Title: Re: Invalid ELF header?
Post by: tinypoodle on August 12, 2010, 10:28:54 AM
bash script was about the only possibility NOT crossing my mind when i suggested 'file'...  :P