Consider adding -I $macrodir

2011-03-13 Thread Jan Engelhardt
Hi, I have seen one project where Makefile.am used ACLOCAL_AMFLAGS = -Im4 and libtool 2.2.6b still threw the warning Consider adding -I m4 to Makefile.am which is because libtool does not seem to handle bundled arguments. Jan ___

rpath encoded in binary linking a .la-.so file

2011-06-17 Thread Jan Engelhardt
-- Forwarded message -- Date: Tue, 24 May 2011 15:16:36 From: Jan Engelhardt To: bug-libt...@gnu.org Cc: Jozsef Kadlecsik, Peter Volkov Subject: rpath encoded in binary linking a .la-.so file On Tuesday 2011-05-24 15:01, Peter Volkov wrote via private mail: > >>>

The case of libkmod's .so versioning attempts, and induced collisions

2012-02-07 Thread Jan Engelhardt
Much to my disappointment, I found that the newly-released libkmod v5 has made the following non-trivial change to its source tree, the latter of which I want to bring to attention: commit e479598b7d19ae7be45bf5329d6e4df32d646c16 diff --git a/Makefile.am b/Makefile.am ind

Re: The case of libkmod's .so versioning attempts, and induced collisions

2012-02-07 Thread Jan Engelhardt
On Wednesday 2012-02-08 03:45, Peter O'Gorman wrote: > On 02/07/2012 07:06 PM, Lucas De Marchi wrote: >> >> Yes. We can always learn. It seems that this is not the case here. >> There are other projects releasing like this and no one pointed out to >> a reasonable argument against it. That means t

[PATCH] doc: fix an orthographic error

2013-01-28 Thread Jan Engelhardt
--- doc/libtool.texi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/libtool.texi b/doc/libtool.texi index f7787f6..c06ddaa 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -1696,7 +1696,7 @@ not libdir='/tmp/usr/local/lib' @end example -@code{inst-prefix} is

Re: [PATCH] doc: fix an orthographic error

2013-01-28 Thread Jan Engelhardt
On Monday 2013-01-28 17:18, Peter Rosin wrote: >On 2013-01-28 14:07, Jan Engelhardt wrote: >> @@ -1696,7 +1696,7 @@ not >> libdir='/tmp/usr/local/lib' >> @end example >> >> -@code{inst-prefix} is also used to insure that if the installed >> +

-export-symbols-regex seems to produce wrong version maps

2014-02-16 Thread Jan Engelhardt
When -export-symbols-regex is passed to libtool (for example in the systems source), it generates a version map that gold does not like: $ make make --no-print-directory all-recursive Making all in . /bin/sh ./libtool --tag=CC --mode=link gcc-4.9 -std=gnu99 -pipe -Wall -Wextra -Wno-inline -Wu

Re: -export-symbols-regex seems to produce wrong version maps

2014-02-18 Thread Jan Engelhardt
On Sunday 2014-02-16 13:26, Jan Engelhardt wrote: > >When -export-symbols-regex is passed to libtool (for example >in the systems source), it generates a version map that gold >does not like: >[...] >$ cat .libs/libgudev-1.0.ver > >{ global: >local: *; }; How to tr

libtool seems to ignore -(all-)static

2014-02-24 Thread Jan Engelhardt
Despite choosing all kinds of -static* options for libtool, it won't pick $old_library iff $installed=yes. Why is this? I have produced the following minimal testcase. Using below's libzz.la, I observe: $ libtool --mode=link --tag=CXX g++ -o foo -static -all-static libzz.la libtool: link: g++ -o

Trailing slash in directory spec confuses libtool

2016-08-12 Thread Jan Engelhardt
Given certain circumstances, libtool 2.4.2 fails to install a library. (a) The target directory spec contains a trailing slash (b) The library to install is linking to another just-built one in a different path. $ cat Makefile AC_INIT([foo], [0]) AM_INIT_AUTOMAKE([foreign]) AC_PROG_CC LT_INIT AC

Use of -fsanitize=address still leads to unresolved symbols on gcc

2022-04-28 Thread Jan Engelhardt
libtool (2.4.7, and earlier versions) pass -nostdlib to the linker command. This would seem to cause ASAN/UBSAN libraries not to be linked, and a situation of unresolved symbols arises. Commit a5c6466528c060cc4660ad0319c00740db0e42ba certainly feels right (hence the "earlier versions"), but app

Bug in the doc?

2005-09-28 Thread Jan Engelhardt
. On Win32, -fPIC is always in effect. Comments please. Jan Engelhardt -- ___ http://lists.gnu.org/mailman/listinfo/libtool

Multiple -rpaths

2008-11-02 Thread Jan Engelhardt
Hi, I have two libraries in paths that are not searched by default (e.g. /opt/foo/lib). So I have this in my pkgconfig files: foo.pc: Libs: -L${libdir} -lfoo bar.pc: Libs: -L${libdir} -lbar The linker will find -lfoo,-lbar and successfully create the output file -- which is an .la library

Re: Multiple -rpaths

2008-11-02 Thread Jan Engelhardt
On Sunday 2008-11-02 20:22, Bob Friesenhahn wrote: > On Sun, 2 Nov 2008, Jan Engelhardt wrote: >> >> I have two libraries in paths that are not searched by default (e.g. >> /opt/foo/lib). So I have this in my pkgconfig files: >> >> foo.pc: Libs:

Re: Multiple -rpaths

2008-11-02 Thread Jan Engelhardt
Hi Ralf, On Sunday 2008-11-02 21:56, Ralf Wildenhues wrote: >* Jan Engelhardt wrote on Sun, Nov 02, 2008 at 05:24:27PM CET: >> >> I have two libraries in paths that are not searched by default (e.g. >> /opt/foo/lib). So I have this in my pkgconfig files: >> >>

Re: Multiple -rpaths

2008-11-03 Thread Jan Engelhardt
On Monday 2008-11-03 22:59, Ralf Wildenhues wrote: >* Ralf Wildenhues wrote on Mon, Nov 03, 2008 at 09:14:31AM CET: >> * Jan Engelhardt wrote on Mon, Nov 03, 2008 at 07:39:56AM CET: >> > Is not that what libtool is supposed to cover up? Maybe not for every >> > make inv

versuffixes for different platforms

2009-01-05 Thread Jan Engelhardt
Hi, I noticed that different platforms get different filenames, e.g. for "-version-info 16:0:2": Linux, libfoo.so.14.2.0 NetBSD, libfoo.so.16.0 FreeBSD, libfoo.so.16 I looked at the libtool source and found freebsd-elf) major=".$current" versuffix=".$curren

Linking just some static

2009-02-14 Thread Jan Engelhardt
Hi, is it somehow possible to specify that only a given set of libraries is supposed to be linked in statically into a program? Something along the lines of... bin_PROGRAMS = foo bar foo_LDADD = libabc.la -( -static libdef.la -) libghi.la bar_LDADD = libdef.la libghi.la (assuming --enable-sha

Re: Linking just some static

2009-02-16 Thread Jan Engelhardt
On Monday 2009-02-16 19:56, Ralf Wildenhues wrote: >> >> is it somehow possible to specify that only a given set of libraries is >> supposed to be linked in statically into a program? Something along the >> lines of... >> >> bin_PROGRAMS = foo bar >> foo_LDADD = libabc.la -( -static libdef.la

Re: Linking just some static

2009-02-16 Thread Jan Engelhardt
Hi Ralf, On Monday 2009-02-16 19:56, Ralf Wildenhues wrote: >> >> is it somehow possible to specify that only a given set of libraries is >> supposed to be linked in statically into a program? Something along the >> lines of... >> >> bin_PROGRAMS = foo bar >> foo_LDADD = libabc.la -( -static

Re: Linking just some static

2009-02-23 Thread Jan Engelhardt
On Monday 2009-02-23 10:45, Ralf Wildenhues wrote: >[...] >So it's back to the drawing and testing board for the patch. One of >the problems is that >- for the "prefer one type of library but not the other" we might have > to drop the switches for libraries which don't match, >- for the "require

Re: Setting shared lib version not functioning

2009-05-03 Thread Jan Engelhardt
On Sunday 2009-05-03 18:58, John Calcote wrote: > >It appears that Libtool is smart enough to detect ridiculous cases, but it >should probably throw an error of some sort, rather than simply generate >code with a different version number. Since libtool is "just" a linker as far as is considered h

Multipurpose binaries with different names

2009-07-24 Thread Jan Engelhardt
Hi, when one has a program that does something like if(strcmp(argv[0], "gunzip") == 0) uncompress(); else compress(); and this program also uses a libtool library, then the - lets use this example - just-built "gzip" file will be around 4 kilobytes only, it is a libtool wrapper sc

Re: Multipurpose binaries with different names

2009-07-24 Thread Jan Engelhardt
On Friday 2009-07-24 13:56, Eric Blake wrote: >> when one has a program that does something like >> >> if(strcmp(argv[0], "gunzip") == 0) >> uncompress(); >> else >> compress(); > >GNU Coding Standards frown on this practice: >http://www.gnu.org/software/automake/manual/standards.html

Grumpy libtool does not copy files

2009-07-28 Thread Jan Engelhardt
Errors are worst when there is no message explaining why it could not copy it. (libtool 2.2.6) # libtoolize --copy --force --verbose libtoolize: putting auxiliary files in `.'. libtoolize: can not copy `/usr/share/libtool/config/ltmain.sh' to `./' libtoolize: Not copying `m4/argz.m4', libltdl no

Re: Grumpy libtool does not copy files

2009-07-29 Thread Jan Engelhardt
On Wednesday 2009-07-29 07:15, Ralf Wildenhues wrote: > >Although, we probably should communicate more clearly that tar is a >prerequisite of libtoolize. I didn't know there existed a distro that >doesn't have tar in its base setup though. Well, it was not a base setup, because qemu, for some re

Dynamic linker relinking guarantee on compatible interface-number changes

2009-08-26 Thread Jan Engelhardt
Hi, A paragraph in libtool's info manual section 7.2 ("Libtool's versioning system") got me thinking: The dynamic linker is guaranteed that if a library supports _every_ interface number between FIRST-INTERFACE and LAST-INTERFACE, then the program can be relinked against

Better soname linking

2009-10-25 Thread Jan Engelhardt
610 Author: Jan Engelhardt Date: Sun Oct 25 13:26:58 2009 +0100 Create symlinks to all API versions and set soname to highest -version-info 23:0:1 will create a libfoo.so.22.1.0 and there is a symlink libfoo.so.22 to it, so that programs originally linked for v22 continue to work with a v23 t

Re: Better soname linking

2009-11-01 Thread Jan Engelhardt
On Sunday 2009-11-01 09:46, Ralf Wildenhues wrote: >> >> -version-info 23:0:1 will create a libfoo.so.22.1.0 and there is a >> symlink libfoo.so.22 to it, so that programs originally linked for >> v22 continue to work with a v23 that implements APIs 22–23. >> >Wow. This would be a heavy change

Re: Better soname linking

2009-11-04 Thread Jan Engelhardt
On Wednesday 2009-11-04 20:22, Kurt Roeckx wrote: >On Sun, Oct 25, 2009 at 03:00:27PM +0100, Jan Engelhardt wrote: >> >> program: unknown symbol api23_function in libfoo.so.22 >> (or similar wording) > >In Debian-based systems there we have 2 solutions for that: &g

Re: Better soname linking

2009-11-04 Thread Jan Engelhardt
On Wednesday 2009-11-04 20:49, Ralf Wildenhues wrote: >* Jan Engelhardt wrote on Wed, Nov 04, 2009 at 08:42:00PM CET: >> What if a symbol has kept its name, yet changed in semantics? >> The Linux Kernel has a number of features that address these >> issues for itself, >

Re: Better soname linking

2009-11-04 Thread Jan Engelhardt
On Wednesday 2009-11-04 21:05, Kurt Roeckx wrote: > >> What if a symbol has kept its name, yet changed in semantics? > >Then you either shouln't say the API is compatible (and change >soname), or provide 2 versions of that symbol, like for instance >libc6 does. Well let's exclude glibc right from