Questions tagged [linker]

The tag has no usage guidance.

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
776 views

undefined reference, even when the linked library does exist

I'm trying to compile VTK from source and I received the following error. I'm running Fedora 27, kernel version 4.14.11-300.fc27.x86_64 /usr/lib64/libSM.so: undefined reference to `uuid_generate@...
2
votes
1answer
377 views

De-prioritize ld.conf.so.d library path resolution

From a separate question, and other articles on the subject, it appears that additional library paths defined by ld.so.conf.d will always be resolved (i.e. in the case of a name clash, such as when ...
2
votes
0answers
461 views

libtool: error: relink 'libpocketsphinx.la' with the above command before installing it

When I trying to install pocketsphinx by make install command(after ./autogen.sh , ./configure, make commands) , I get this error message: libtool: error: relink 'libpocketsphinx.la' with the above ...
2
votes
0answers
311 views

cannot find -lm linker error

This question is highly related to cannot find -lm, but the error appears when I'm invoking cross G++ Linker. I'm trying to follow through the documentation provided by Using Eclipse with ARTIK SDK. ...
2
votes
0answers
53 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 ...
2
votes
0answers
879 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 ...
1
vote
0answers
30 views

GNU Linker Colorization

Compiling code with GCC or Clang can result in some colorful error outputs. Linking code, however, doesn't enjoy the same luxury. It seems like the GNU Linker doesn't support colorized error output ...
0
votes
0answers
23 views

how to make build toolchains from debian distro

How can I make building toolchain from old debian distro? I develop the applications on Debian 10. I use arm toolchain (from yocto) to compile applications to the ARM platform. Now I need to compile ...
0
votes
0answers
15 views

get path from all linked shared libraries while linking

I have my own linux distribution for an selfmade arm hardware. Therefor I have to compile diffenent software like nginx and openssl. Every compiled software will packed to an rpm. To reduce size I ...
0
votes
0answers
22 views

How to specify in kernel so that kernel doesn't use a range of physical address?

I am building kernel and I see that that in the system map there are certain addresses where Text Code is available. I don't want a range of physical address to be used by kernel. I want to do this ...
0
votes
2answers
659 views

Creating a link to a shared library

I have a library ( ZendDebugger.so ) which in turn requires the openssl library but it doesn't find a reference to it. Indeed when ZendDebugger.so loads, it prints this error on the error log ( which ...
0
votes
1answer
2k views

Compile Git to use OpenSSL library libssl.so.1.0.1

Running a system that only has full support for OpenSSL version 0.9.8. Installed in parallel is OpenSSL 1.0.1 libraries (Supported by Distro) Git still preferentially uses the 0.9.8 libraries but we ...
0
votes
1answer
85 views

Determine when the platform offers LD_LIBRARY_PATH?

I want to detect when the platform offers LD_LIBRARY_PATH to load libraries from an arbitrary location. The application is a lightweight shell script, so I am looking for a method that does not ...
0
votes
1answer
1k views

Force linker to find stdc++ library in non-standard directory

I've read a lot of guidance that says the LD_LIBRARY_PATH is searched before anything else, but one of my .so libraries is linking with libtdc++.so.6 in /usr/lib64. ldd mylib.so: ... libstdc++.so.6 =&...
0
votes
0answers
886 views

Where are the definitions for the prototype declarations in <bsd/stdlib.h>?

I have a C program on Ubuntu 16.04, in which I would like to use arc4random_uniform. typedef unsigned char u_char; #include <bsd/stdlib.h> int main () { return (int) arc4random_uniform(100); } ...
0
votes
0answers
74 views

Compiling: Scons can't find libav

The compiler errors I keep getting are: error: ‘CODEC_ID_HUFFYUV’ undeclared (first use in this function) if (!codec) codec = avcodec_find_encoder(CODEC_ID_HUFFYUV); ...
0
votes
0answers
164 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 ...
0
votes
0answers
179 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 ...