Questions tagged [libtool]

GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.

Building a shared library differs from one architecture to the other. GNU Libtool is a script that allows package developers to create portable compiled libraries. It is often used in conjunction with GNU Automake and GNU Autoconf.

493 questions
14
votes
2 answers

How can an autotools user specify a combination of static & dynamic linking?

I'm building a program with autoconf, automake, and libtool. My work requires that I statically link (most) libraries. This hasn't been a problem in the past because I could statically link everything with -all-static. Now it's a problem because I…
tprk77
  • 1,151
  • 1
  • 9
  • 22
14
votes
2 answers

How to debug a program wrapped in a libtool script?

I have a project involving shared libraries ie: mylib.so (test) program using these shared libraries ie: test_mylib When I try to run gdb on test_mylib, it prints: "test_mylib": not in executable format: File format not recognized When I use the…
yadutaf
  • 6,840
  • 1
  • 37
  • 48
14
votes
4 answers

Why would autoconf/automake project link against installed library instead of local development library?

I'm creating a library libgdata that has some tests and non-installed programs. I am running into the problem that once I've installed the library once, the programs seem to be linking to the installed version and not the local version in…
Beau Simensen
  • 4,558
  • 3
  • 38
  • 55
13
votes
1 answer

What is `relinking` warning?

While compiling mpich, I got a few relinking warnings... libtool: warning: relinking 'lib/libmpicxx.la' I have not been able to find out what these mean by googling the error message. What is relinking? Why is it caused and how can I get rid of it?
Lord Loh.
  • 2,437
  • 7
  • 39
  • 64
13
votes
1 answer

libtool links with 32-bit version of libstdc++.so on a 64-bit target platform when multiple version of gcc are installed

First, I'd like to let you know that it is my first post on StackOverflow, so I hope that I won't make a fool of myself by asking a very stupid question. I've been googling about this problem for a few days now, and I couldn't find any answer so…
Nicolas
  • 301
  • 3
  • 7
13
votes
3 answers

How to build *.so module in Automake and a libtool-using project?

I have the same problem as others have: I have a *.la file generated by libtool in an Automake project (e.g. module.la), but I need the *.so of it to use it for dlopen() (eg. module.so). But: project is configured and built with --disable-shared…
towi
  • 21,587
  • 28
  • 106
  • 187
12
votes
4 answers

how to create binary and .so using libtool

I have a set of cpp files that I want to compile directly into a binary and also to compile into a shared library. I have bin_PROGRAMS=mybin lib_LTLIBRARIES=libmylib.la COMMON_SOURCES=f1.cpp f2.cpp f3.cpp mybin_SOURCES=main.cpp…
pm100
  • 48,078
  • 23
  • 82
  • 145
12
votes
4 answers

Simple libtool alternative?

Being perfectly satisfied with old-style Makefiles, I am looking for a simple alternative to libtool. I do not want to switch to automake, and I keep running into problems with libtool when I try to use it directly. The latest one is 'unsupported…
Kasper Peeters
  • 1,580
  • 2
  • 18
  • 37
12
votes
2 answers

"Hidden symbol `atexit' is referenced by DSO" when using libtool with gcov

I have a C++ project that uses the GNU Autotools for its build scripts and libtool for linking. Recently I have added code coverage instrumentation with gcov, by ensuring that GCOV_CFLAGS="-fprofile-arcs…
phs
  • 10,687
  • 4
  • 58
  • 84
12
votes
2 answers

Force linking a static library into a shared one with Libtool

I have a library (libfoo) that is compiled using libtool into two objects: libfoo.a and libfoo.so. I have to create, using libtool also, another library (libbar) that will be a single shared library (libbar.so) containing all libfoo's code. In order…
vperron
  • 530
  • 5
  • 7
11
votes
3 answers

Installing apache 2.4 on OS X Mavericks 10.9

I wanted to install apache 2.4 on my OS X Mavericks and having problem with ./configure and make.
Mr. Crowley
  • 3,225
  • 4
  • 25
  • 28
10
votes
2 answers

When in conda, tmux and emacs throw "error while loading shared libraries: libtinfo.so.6"

I've installed and updated tmux and emacs via conda in my default environment, and have these versions in conda list: # packages in environment at /home/maxghenis/miniconda3: # # Name Version Build Channel tmux …
Max Ghenis
  • 14,783
  • 16
  • 84
  • 132
10
votes
2 answers

Libtool prefixes objects but gcov requires them without prefix

I need to perform some test coverage with gcov on a shared library I am working on. The problem is libtool renames the object files from my-name.c to libmylib_la-my-name.lo and gcov is unable to handle that conversion. Everytime I run it, the error…
ntd
  • 7,372
  • 1
  • 27
  • 44
10
votes
3 answers

How to use libtool to create a static library from a bunch of static libraries

I have around 80 static libraries. I would like to create one static library from that. This answer didn't work for me since I get the following error: libtool: unrecognized option `-static' I am also confused as to which mode it needs to be done…
Nikhil
  • 2,168
  • 6
  • 33
  • 51
9
votes
1 answer

Libtool: link: unable to infer tagged configuration

I am trying to cross-compile linphone for ARM. I configure it using ./configure --host=arm-linux-gnueabi --with-gnu-ld --disable-static --disable-glib --with-osip=/home/user/linphone_wheezy --with-readline=/home/user/linphone_wheezy…
Arshan
  • 736
  • 6
  • 19
1
2
3
32 33