Missing libraries - executable compiled under arch

Forum rules
Before you post please read how to get help

Missing libraries - executable compiled under arch

Postby sakishrist on Fri Mar 16, 2012 3:30 am

Hello everyone!

I'm just curious about this error I am given when I try to run an executable in mint, while the executable itself is compiled under arch. What it does is it simply opens some files, edits them while using string objects and then outputs the resulted files somewhere else.

When I run it I get the error:
Code: Select all
[sakishrist@sakis-pc bin]$ ldd ./ter2
        linux-vdso.so.1 =>  (0x00007ffff41ff000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f85a6769000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f85a64e5000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f85a62ce000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f85a5f2d000)
        /lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f85a6a8f000)
My question is, what is linux-vdso and why whould a simple program that accesses files would not work without it.

Thanks in advance. :D
sakishrist
Level 1
Level 1
 
Posts: 2
Joined: Fri Mar 16, 2012 3:17 am

Linux Mint is funded by ads and donations.
 

Re: Missing libraries - executable compiled under arch

Postby sakishrist on Fri Mar 16, 2012 3:57 am

Actually, as far as I understand the first library is not a missing one, is it? Then why whould bash give me this:
Code: Select all
[sakishrist@sakis-pc bin]$ ls
newscript  ter2
[sakishrist@sakis-pc bin]$ ./ter2
bash: ./ter2: No such file or directory
[sakishrist@sakis-pc bin]$
there are no spaces in the name.
sakishrist
Level 1
Level 1
 
Posts: 2
Joined: Fri Mar 16, 2012 3:17 am

Re: Missing libraries - executable compiled under arch

Postby Oscar799 on Fri Mar 16, 2012 7:32 am

Moved here by moderator
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8939
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Missing libraries - executable compiled under arch

Postby xenopeek on Fri Mar 16, 2012 9:24 am

The library linux-vdso.so is a Virtual Dynamically Shared Object, and part of the kernel. You won't find a file for it I think.

Can you share the output of ls -l in that folder where you have ter2?
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15245
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 3 guests