WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Invalid ELF header?  (Read 6093 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Invalid ELF header?
« 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. :(
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: Invalid ELF header?
« Reply #1 on: August 12, 2010, 06:42:46 AM »
PM me the problematic ones.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Invalid ELF header?
« Reply #2 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?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: Invalid ELF header?
« Reply #3 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. :)
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Invalid ELF header?
« Reply #4 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


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Invalid ELF header?
« Reply #5 on: August 12, 2010, 10:28:54 AM »
bash script was about the only possibility NOT crossing my mind when i suggested 'file'...  :P
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)