Re: Q: Forcing a -Wl,-rpath arg to static lib users
2022-11-17
Thread
Howard Chu via Discussion list for the GNU libtool shared library maintenance tool
/2020-December/114536.html > > I am thinking that you may be trying to fix something which should already be > working with the original FSF libtool. > > Bob -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
Re: [EXTERNAL] Re: Q: library dependencies
ssfully link due to unresolved symbols. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
Re: z/OS
there; in that case it is easier if you provide pointers and test suggested patches from us). Hope that helps. Cheers, Ralf ___ http://lists.gnu.org/mailman/listinfo/libtool -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director
Re: dlopening the C runtime library
to open? None of this guesswork should be needed. Since the main program already depends on libc, you should be able to lt_dlopen(NULL) and reference the main program to find libc's symbols. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http
Re: libltdl is inefficient and a security hazard
-guessing, and on SVR4/ELF-based platforms it's not even needed. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ___ http
Re: Why is setting LD_LIBRARY_PATH very bad?
, and to provide a tool to rewrite those paths at install time. I suppose you could write a tool using libbfd to rewrite the binaries in a more portable/less kludgy manner. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp
Re: -msg_* flags for cc on osf
an argument, so we do not let through the argument. This results in a link error for Bob. This may be a dumb question, but why can't he use -Wc to pass these flags through as desired? -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp
Re: Windows C++ support impossible?
applies to C++, C works allready in most cases ;o) Such a truism... -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: windows static archive, missing symbols
to know whether you will be using a static or a dynamic version, whenever compiling an app that uses the library. Very braindead, and there's no solution to that problem. The workaround is to never export variables from your libraries, only functions/accessor methods. -- -- Howard Chu Chief
Re: windows static archive, missing symbols
Bob Rossi wrote: On Fri, Jan 19, 2007 at 06:30:19PM -0800, Howard Chu wrote: The next question is, why is it looking for an import symbol instead of using the real symbol. The answer to that must lie in your header files; they probably declare the function to be a DLL export, which causes
Re: windows static archive, missing symbols
, and hasn't been necessary for at least 5 years. http://www.cygwin.com/ml/cygwin/2002-01/msg00236.html -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: MS lib program in msys
, so it would work. On Cygwin //foo is left alone, so it would not work. Please just change everything to use dashes. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp
Re: Support for VC++ toolchain (was Re: Absolute paths generated by libtool.)
PlateformSDK. Neither cccl nor wgcc *should* be setting the environment. That's what .profile is for. Or you could just edit msys.bat to call vcvars32.bat before starting up rxvt. It's not the job of the compiler-driver to set up the environment. It's the job of the *user* to do so. -- -- Howard
Re: -dlopen self and optimizing away symbols
because it seemed to misbehave. Those changes are way back in the mists of time. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: 1.5.22 fails to configure on AIX 5.1
like a corrupted something. Sorry for the trouble. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: 1.5.22 fails to configure on AIX 5.1
fi I was thinking that, or ((set -o posix) /dev/null 2*1); ... Will give it a shot. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: libltdl examples
libltdl from the main executable. servers/slapd/overlays/ppolicy.c is a loadable module that also uses libltdl to load other modules. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp
Re: 1.5.18: suppressing non-C language checks / pass flags to cc in link mode
complaining about libtool-1.5 even checking for those languages -mike This is a more relevant post: http://lists.gnu.org/archive/html/libtool/2005-08/msg00137.html -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP
Re: -dlopen self on AIX
to older releases of AIX, where they really did export everything, and you'd get clashes for stupid things like __init and such that never should have been exported in the first place.) -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp
Re: -dlopen self on AIX
that are not usually compiled as PIC code. It would be a pretty drastic change to get that all working. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: Is it possible to pass different options to static/shared builds?
commandline options for static vs shared, use explicit make rules. Have one rule invoke libtool --tag=disable-static to produce only the shared files, and another with libtool --tag=disable-shared to produce only the static files. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com
SYSROOT/DESTDIR (was Re: static vs. dynamic linking)
build paths to any explicitly provided -R/-rpath options, and I usually comment that bit out of libtool in our builds. It seems like a pretty simple thing to get working, without any negative side effects. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director
Re: use of modules, static vs shared, and dependencies
file that contains an array of references to the entry points of all the static backends. Cheers, and thanks for your explanations and the pointer! Ralf -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP
Re: use of modules, static vs shared, and dependencies
): blah blah blah slapd: $(SLAPD_STATIC_STUFF) blah blah blah dummy2 $(SLAPD_DYNAMIC_STUFF): slapd blah blah blah -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Team
Re: libtool 1.5 -static and installed libraries
the documentation? Considering that 1.4 behavior and doc agreed, I can only view this as a regression since 1.5. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp
Re: how to link with installed libltdl?
Andreas Jellinghaus wrote: Howard Chu wrote: In OpenLDAP's configure.in we use ... so does libltdl never need any libraries linked to it? like -ldl on some systems or something else? all that complexity is usualy hidden in an m4 macro package, a libfoo-config script or a pkgconfig
Re: ITS#3977 libtool 1.5.18 and installed libraries
statically linking them. This patch tweaks prefer_static_libs to distinguish between the -static and -all-static cases so that the link step can actually perform as documented. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com
Re: ITS#3977 libtool 1.5.18 and installed libraries
statically linking them. This patch tweaks prefer_static_libs to distinguish between the -static and -all-static cases so that the link step can actually perform as documented. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com
Re: How to configure libtool so that it doesn't run some tests ?
faster as well (which is a real godsend on some of the ultra slow dev systems we port to). -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp://www.openldap.org/project
Re: libtool 1.5 -static and installed libraries
Ralf Wildenhues wrote: Hi Howard, Alexandre, others, * Howard Chu wrote on Sun, Aug 28, 2005 at 10:19:03PM CEST: We just migrated from libtool-1.4.3 to 1.5.18 in the OpenLDAP CVS HEAD, and are seeing a new linking problem. You've migrated *already*? :-) This was actually our 2nd or 3rd
Re: how to link with installed libltdl?
=-lltdl AC_DEFINE(HAVE_LIBLTDL,1,[define if you have libtool -ltdl]) ]) if test $ac_cv_lib_ltdl_lt_dlinit = no ; then AC_MSG_ERROR([could not locate libtool -lltdl]) fi -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun
libtool 1.5 -static and installed libraries
is, why does linking with -static cause libtool to behave like -all-static was used, why does it ignore the installed status of the libraries? -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Team
libtool AC_ARG_WITH and autoconf 2.59
for specifying external packages, instead of for specifying options, this would seem to be the correct fix. Any thoughts? -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc OpenLDAP Core Teamhttp
Re: solaris 10: [EMAIL PROTECTED]
the GNU linker. This is based on past experience learned the hard way. Agreed. The GNU linker used to be pretty good up to the SunOS 4 days, but we always use the Solaris linker on our builds now. Again, past experience... -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland
Re: MSYS+MSVC for libtool branch-2-0
. Likewise for Cygwin.) -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support
Re: FYI: TODO update
Ralf Wildenhues wrote: Hi Howard, * Howard Chu wrote on Tue, Apr 26, 2005 at 06:40:19PM CEST: Ralf Wildenhues wrote: * Gary V. Vaughan wrote on Tue, Apr 26, 2005 at 05:07:31PM CEST: Nice way of saying we need a bug tracking system. :-))) The OpenLDAP Project uses jitterbugs, which is pretty
Re: Win32 libltdl issue
Charles Wilson wrote: Howard Chu wrote: One other annoying gotcha when building with libtool and Win32 is that libtool (at least in the 1.x line) assumed that any lib*.a was a static library, and refused to link it into a DLL. It didn't account for the possibility that the library was actually
Win32 libltdl issue
this dynamically/automatically at compile time. Since LT_SCOPE is only used for the three lt_*alloc/free function pointers, I suggest removing these declarations completely and using accessor functions to set/get their values. -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun
Re: TODO
, but I find a lot of instances of /home/hyc/BLD/opt/foo that I have to squash by manually relinking. -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support
Re: libltdl and Windows
was requested. -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support ___ Libtool mailing list [EMAIL PROTECTED] http
Re: Convenieve libraries and applications.
to create shared libraries as well. E.g. it now spits out ld -r -o libfoo.lo $(OBJS) ld -G -o libfoo.so libfoo.lo This makes things go a lot faster when you run libtool --mode=install if it needs to relink the target library. -- -- Howard Chu Chief Architect, Symas Corp. Director
Re: Convenieve libraries and applications.
the application with the --whole-archive/--no-whole-archive linker flags around the convenience libraries. But, libtool doesn't let me do that :/ -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas
Re: Porting to OS/390...Need hints
something. I completed a port of libtool 1.4.3 to OS/390 last year: http://lists.gnu.org/archive/html/libtool/2003-04/msg00061.html -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource
Re: Porting to OS/390...Need hints
-- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support ___ Libtool mailing list [EMAIL PROTECTED] http://lists.gnu.org
RE: Linking against indirect dependencies
(thus forcing the PLT or whatever dynamic init code to be present). -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support
list policies
Is this list open to everyone, or subscribers only? It would be nice if the spam was eliminated. Can you moderate new subscribers or something? -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas
RE: Version numbering
: .001 - .999. If you make more than 1000 patches to something you really ought to consider calling it at least a new minor release. For my own use I'd be happy with hexadecimal MM.mm.pp; again if I'm packaging 255 patches to a release I think it deserves to have a new release number. -- Howard
RE: Request for option to disable building of static library
, the second rejected. Supposedly libtool 1.5 supports this now with tags, but 1.5 has proven extremely difficult to use in migrations and I see very little acceptance of it in the projects I work with (OpenLDAP, Cyrus-SASL, Sleepycat BDB, etc.). -- Howard Chu Chief Architect, Symas Corp
RE: How to specify a version script?
been able to work around this by replacing their bundled libtool with libtool 1.4.2 in our own builds, which works a lot better on the variety of platforms we deal with. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http
RE: library relocation
That can only happen because the linker didn't find a libc in your first -L directory. Fix that, that's your real problem. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource
RE: library relocation
I think you've got a good point here. Sorry I don't have time at the moment to write up an appropriate patch. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development
RE: library relocation
, and then to avoid any undesired -L paths from being embedded, I symlink any missing -L dependent libraries into the target directory, cd to the target directory and link from there, using -L. in the final link. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http
RE: Libtool 1.4.3
drop-in replacement for 1.4.2. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support ___ Libtool mailing list
Libtool 1.4.2 and EBCDIC
SP2NL='tr \040 \012' NL2SP='tr \015\012 \040\040' + ;; + esac # NLS nuisances. # Only set LANG and LC_ALL to C if already set. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier
libtool 1.4.2 and MinGW
creates libfoo.dll.a. When I link against libfoo.la, why does it then try to create and link against .libs/libimp-libfoo.dll? It should just look for and use libfoo.dll.a. The second issue is just annoying, the first issue causes an otherwise legitimate build process to fail. -- Howard Chu
RE: building static on AIX
it in a mode it wasn't configured for, I would hope that you change things such that you can make libtool run either way regardless of *the default* mode that you configure into it... -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com
RE: building static on AIX
objects as input, and yes, it's smart enough to extract just the pieces it needs, it won't pull in the entire object file on a static link.) -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier
RE: -lc fix for BSD/OS and FreeBSD
. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave
RE: libtool´Ô ¾È³çÇϼ¼¿ä?
Title: My thoughts exactly, that was most enlightening. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ¿Â¶óÀÎÄÚ¸®¾ÆSent: Wednesday, May 16, 2001 1:09 PMTo: [EMAIL PROTECTED]Subject: libtool´Ô ¾È³çÇϼ¼¿ä? ¢Ä ¿À´ÃÀÇ À¯¸Ó ¢Å ...
RE: [Patch] interlibrary dependency parsing in libltdl from CVS HEAD
That's not a problem, since stat() follows symlinks. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Utz-Uwe
branch 1.3 ltdl.c AIX win32
.) There are also a couple small bugfixes to the win32 support - don't call strchr on NULL filenames, and treat a NULL handle as a reference to the main program. I will try to generate a patch against the HEAD branch next. Howard Chu - Black GTS http://highlandsun.com http://people.we.mediaone.net/hyc
FW: libtool update likely breaks modules...
) that supports tags which supports this functionality, but that doesn't help since the feature is not in the officially released version. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc -Original Message