Why can’t I find the symbol tables in the C libraries in MacOS?

I’ve looked at the hexdump of both libc.dylib and xlib.dylib, and I can’t find the symbols for the C functions in those libraries within those files. I figure they should be in there, because I’ve done hexdumps of executable files and the symbols for variables and functions are stored in the symbol table in plain … Read more

Why (and how) do I have (seemingly!) duplicate symbols in my shared libraries?

I happened to need to work out which symbols were exported by which library from a flat list of exported shared library symbols. There were just enough symbols (20 or so) in the list that I wasn’t going to manually cross-reference each one. I found that nm -A -D -f sysv <library-name> seemed to produce … Read more

Using debuild to build shared libraries .deb [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Unix & Linux Stack Exchange. Closed 5 years ago. Improve this question I’m trying to package a shared library using debuild to build the .deb file. In running dh_make the library option … Read more

Is it safe to just copy shared libraries onto embedded Linux device?

The following is contained in the vendor user manual for its embedded Linux distro on the hardward board they supply Developers can put their program onto X-Linux device via FTP or NFS. Before running it, use ldd command on development workstation to check dependency files. Also put relative files onto X-Linux to ensure program can … Read more

ldconfig not following user-created symbolic link

I’m attempting to run Inkscape 0.48.4-15 (armv7) which is installed via pacman from Arch Linux ARM. $ inkscape inkscape: error while loading shared libraries: libMagick++-6.Q16HDRI.so.3: cannot open shared object file: No such file or directory As expected, the shared object is not available in /usr/lib: $ ll /usr/lib | grep libMagick+ lrwxrwxrwx 1 root root … Read more

Command to list the directories in which to look for shared libraries?

I’ve read which equivalent for shared libraries and Where do executables look for shared objects at runtime, but is there a command to list all the directories in which the shared libraries will be searched? Something like a command that auto-computes all the list explained in the second question. Answer short: no long: The related … Read more

Why does chroot get ENOENT on an existing file?

;TL-DR – Answer: because the dynamic linker ld-linux-x86-64.so.2 was missing. I have mounted a squashfs (shouldn’t matter) filesystem -ro,loop at /mnt/foo. It contains among other things the following (/mnt/foo is the mount point): -rwxr-xr-x 1 root root 110088 jan 17 2013 /mnt/foo/bin/ls -rw-r–r– 1 root root 5212 jul 23 09:35 /mnt/foo/etc/ld.so.cache -rw-r–r– 1 root root … Read more

libGLEW.so.1.11: cannot open shared object file

I am trying to compile an opengl program which results in: error while loading shared libraries: libGLEW.so.1.11: cannot open shared object file: No such file or directory compile: g++ -o triangle triangle.cpp LoadShaders.cpp -I/home/mks/myGL/oglpg/include/ -L/home/mks/myGL/oglpg/lib -L/usr/lib64 -lglut -lGL -lGLU -lGLEW In /home/mks/myGL/oglpg/lib there are all the libraries: libGLEW.so libGLEW.so.1.11.0 libGLEW.a libGLEW.so.1.11 ( I am not … Read more

What does a “failed to map segment from shared object” error mean?

Many answers to other questions help resolve an error of the form “failed to map segment from shared object,” but they usually have very specific answers that I find difficult to apply to other problems. On the other hand, I can’t find anything about this error in general. Can anyone give a basic description of … Read more

Fix hardcoded dynamic linking for executable

I have an executable file called reg with the following shared library dependencies: [terminal]$ ldd ./reg linux-vdso.so.1 => (0x00007ffc40d90000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003be0c00000) /usr/dep/packages/opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_intel_lp64.so => not found When executing the binary I get the following: [terminal]$ ./reg ./reg: error while loading shared libraries: /usr/dep/packages/opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_intel_lp64.so: cannot open shared object file: No such file or directory. The … Read more