The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
12 views

Linker error about -laudio

I'm trying to make rcssmonitor and I get the following error: /usr/bin/ld: cannot find -laudio I've searched it but I haven't find any useful information about it. I'm using Linux Mint 17.2. with ...
2
votes
1answer
23 views

How to deal with conflicting names of two shared libraries?

On my Linux Mint 17.3 system, I installed the packages libglfw2 and libglfw-dev. Since GLFW v3 is not available in repositories, I chose to compile it manually using instructions here. Almost all ...
0
votes
0answers
8 views

choose exported symbols when linking an elf application and shared library [migrated]

when linking an elf application or share library, I want to choose which symbols to export. By default, when linking an application no function symbol is exported and when linking a shared library all ...
2
votes
0answers
38 views

What is the background of the program segmentation?

Each program is separated into several segments like: code segment data segment stack segment heap segment But who was responsible for that progression? The compiler and linker has to support that ...
0
votes
0answers
38 views

How to pass to gcc “-lregex”?

I want to compile a program,bacula under hpux but give me an error about "unsatisfied symbol" i think probably passing the correct lib "-lregex" will solve the problem. But i don't know how to pass to ...
1
vote
1answer
69 views

dynamic linker/loader libs - missing ld.so

Following manual describes dynamic linker/loader libs: The program ld.so handles a.out binaries, a format used long ago; ld-linux.so* handles ELF (/lib/ld-linux.so.1 for libc5, /lib/ld-linux.so.2 ...
0
votes
1answer
134 views

What are the alternatives to GNU ld?

I was curious if it's possible to build Linux kernel without GNU toolchain (gcc+autotools). I found out that it is possible: after applying patches from llvm.linuxfoundation.org, it was possible to ...
0
votes
1answer
45 views

Compiling package for debian 8 - linking issues

I'm trying to recompile my software for debian 8, but i have run into this strange issue of libgssappi refusing to link with anything. >~/torque_github$ gcc test.c -lgssapi /usr/bin/ld: cannot ...
1
vote
2answers
53 views

Specifying local libc does call global libc?

If I run the command foo specifying a a different libc to use as follows: LD_LIBRARY_PATH=$PATH_TO_MY_CUSTOM_LIBC foo Is the globally defined libc used to run any of the command given above? For ...
0
votes
1answer
80 views

Link libraries when compiling g++

This might seem elementary but I am new to Linux and Unix. I am trying to link some libraries my g++ code and I am getting the following error: $ g++ -O myprob.o -o myprob -Wl,-rpath $PATH/lib ...
0
votes
0answers
44 views

Weird G++/AR Compilation issue

I'm working a patch-set to compile dpkg and APT onto Cygwin. I've almost got everything working, but I'm encountering some weird behavior with ar/g++ that I can't explain. APT's stock Makefile uses ...
5
votes
2answers
126 views

Is there a way to check whether a .so has been compiled with -Bsymbolic-functions flag?

My application loads custom code using dlopen on the fly. For common symbols, the global symbol table is used by default. However, I want to provide the functionality where - if the user has linked ...
1
vote
1answer
125 views

Compiling sources with a non-default compiler

I need to implement an authentication scheme on an embedded device and require gmp in order to perform large integer operations. After downloading the sources they must be compiled with a proprietary ...
2
votes
1answer
67 views

Using `ldconfig` while not touching system files

I have compiled a library and now I should run ldconfig. However, I would rather not modify /etc/ld.so.conf, nor any other system file. Is it possible to generate the cache somewhere else and then ...
7
votes
1answer
138 views

Unable to run an executable built with NASM

I am attempting to assemble the assembly source file below using the following NASM command: nasm -f elf -o test.o test.asm This completes without errors and I then try to link an executable with ...
0
votes
0answers
146 views

GCC “__gmpn_invert_limb” compilation error

I'm currently trying to compile GCC 4.9.2 using GCC 4.2. The problem I have run into is that I have a working GMP installation (6.0.0a) but GCC fails to link to it after a while. The error I get is: ...
0
votes
0answers
196 views

/usr/bin/ld: cannot find -lc when compiling netcat

I'm trying to compile external-netcat (first for my system, then I'll try for an external embedded device, hence the 'external-netcat') When trying to compile it for my desktop, by running make ...
0
votes
2answers
794 views

Loading and execution of programs in memory [closed]

While comparing between linking loader and linkage editor I came across a point that in case of linking loader linking and relocation takes place for each execution of the program( and happens at time ...
0
votes
2answers
457 views

what's the name of ubuntu package contains llvm linker lld

Would like to try this lld from LLVM. The doc on apt could be found here, but I don't know which package contains the lld executable. It seems the purpose of lld is to remove the system dependency, ...
4
votes
2answers
118 views

Is there any relationship between linking binaries and symbolic links?

This is almost certainly a very stupid question, so it will be easy to anwser. Is there any relationship between the linking of binaries (as in dynamic or static linking) and symbolic links. Do they ...
0
votes
1answer
13 views

ld cannot find print_insn_big_mips(and few others) despite binutils-multiarch-dev installed

I am trying to compile a program(on Ubuntu 14.04 64 bit) that requires binutils with multiarch support(recommended version 2.20). I have installed binutils-multiarch 2.24 and the dev package from the ...
3
votes
1answer
299 views

Why do some files of working packages return “not found” for some libraries of ldd's output?

I'm finding a bunch of stuff where working packages contain files where ldd returns "not found" for some libraries. For example... /usr/lib64/thunderbird/libprldap60.so libldap60.so => not ...
2
votes
1answer
122 views

How to compile manual files .1

I have .c, .h, and .1 files, how can I compile them together in one executable file. Everything clear with .c and .h files, but I have also .1 as I can see from the content it is used for manual, how ...
0
votes
1answer
247 views

unrecognized --sysroot option.(Eclipse)

I'm trying arm cross compilation using sysroot for the autotools project.The options I'm using for autogen script is as follows. CC=arm-linux-gnueabihf-gcc --with-sysroot=/opt/sysroot/dir \ ...
0
votes
4answers
464 views

Compiling C/C++ code by way of including preprocessor build instructions in an actual C/C++ source file

So here's the thing, and it's really just conceptual so don't let it bug you: I've got reasons for not wanting to rely on a specific build system. I don't mean to dis anybody's favorite, but I really ...
2
votes
1answer
1k views

Understanding SPL & U-Boot Memory Map using bdinfo?

We are using beaglebone black based custom board, I want to write some test results into RAM location from SPL, and read that log and send it via tftpput to the host PC. So far I'm able to do tftpput ...
1
vote
3answers
529 views

GCC: set architecture to pass to linker

GNU C compiler passes the wrong architecture name to the linker. For example gcc helloworld.i throws the error ld: unknown/unsupported architecture name: -arch arm. After some experimenting with LD, ...
2
votes
1answer
14k views

how to specify the libstdc++.so.6 to use

I am trying to compile a program of mine, that needs C++11 features and a newer version of boost than is installed on the target machine. I therefore compiled and installed gcc 4.9 to some local ...
2
votes
3answers
337 views

Placement of kernel binary and sources for kernel module building?

I'm trying to setup an environment for kernel module development in Linux. I've built the kernel in the home folder and would like to place the sources and binaries to the correct place so include ...
0
votes
1answer
10k views

Linking failure [ld cannot find library]

I am trying to configure Linux kernel [Angstrom distribution] via make menuconfig, but I get these errors. make: Warning: File `/usr/src/linux-2.6.32.61/arch/arm/Makefile' has modification time 11511 ...
2
votes
0answers
2k views

How to compile gcc toolchain with special sysroot correctly?

I try to compile a new gcc, including binutils and glibc. Since I can not be root, I want to install it all in ~/local. I set these variables: PREFIX=~/local && export PREFIX ...
2
votes
2answers
272 views

Where is the frame.h located in modern Linux implementations? (ubuntu specifically)

A book I am reading refers to an include file that shows how a stack frame looks on one's UNIX system. In particular: /usr/include/sys/frame.h I am having trouble finding the modern equivalent. ...
15
votes
1answer
440 views

What is AT&T’s Link Editor Command Language?

The man page for ld makes reference to AT&T’s Link Editor Command Language, however a Google search does not offer a satisfactory explanation as to what AT&T’s Link Editor Command Language is ...
5
votes
2answers
10k views

error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

anisha@linux-y3pi:~/> google-earth ./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory anisha@linux-y3pi:~/> locate ...
2
votes
0answers
579 views

How to fix link error under CMake for class QX11Info on Mac OS X

I'm trying to build kxstitch, which is designed for Linux, on OS X. I've gotten most of the way there by installing MacPorts, XCode, KDE, etc. and making minor changes to the build file, but am ...
5
votes
1answer
4k views

Why can't ld find this library?

I'm not very knowledgeable on this topic, and therefore can't figure out why the following command does not work: $ gfortran -o dsimpletest -O dsimpletest.o ../lib/libdmumps.a \ ...
1
vote
1answer
663 views

CUPS compilation fails on Cygwin

I was brave and tried to compile CUPS in a 32-bit Cygwin environment. I used the standard sources from the tarball. All went fine until linking. http://pastebin.com/QSKvLSmT Here's the end of the ...
1
vote
1answer
631 views

Dynamic linker “no version information available”

When I copy over a program and a few libraries it needs to another machine I get the "no version information available" when I run LDD on the program. I know why this is happening, I just want to ...
1
vote
1answer
2k views

Linker errors when compiling against glib…?

I'm having trouble compiling a simple, sample program against glib on Ubunutu. I get these errors. I can get it to compile but not link with the -c flag. Which I believe means I have the glib ...
2
votes
2answers
3k views

Linking issues with libjpeg

I have a game I'm writing which recently required libjpeg. I wrote some code using libjpeg on some-other-machine and it worked as expected. I pulled the code to this machine and tried compiling and ...
5
votes
4answers
2k views

Error while loading shared libraries

My project tree looks something like that: src/ include/ Makefile lib/ lib/3rdparylib/ I didn't code 3rdpartylib, but decided to embed its source code in my project packaging. I compile the ...
11
votes
2answers
10k views

Changing linked library for a given executable (CentOs 6)

I have an executable linked like this: $ ldd a.out libboost_system-mt.so.1.47.0 => /usr/lib64/libboost_system-mt.so.1.47.0 (0x00007f4881f56000) libssl.so.10 => ...
1
vote
2answers
662 views

libxml linker error

I've got an app which won't link, giving error: /usr/lib64/libcroco-0.6.so.3: undefined reference to `xmlGetProp@LIBXML2_2.4.30' /usr/lib64/libcroco-0.6.so.3: undefined reference to ...
10
votes
3answers
6k views

Creating Static Binary

I installed an application [ e.g. fdisk ]. But it required libraries for execution. I am looking for utility/tool which will help me to create a static binary from already installed binaries. So that ...
23
votes
1answer
17k views

What are stripped and not-stripped executables in Unix?

From man file, EXAMPLES $ file file.c file /dev/{wd0a,hda} file.c: C program text file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses ...