mailing list of musl libc
 help / color / mirror / code / Atom feed
* Linking issues
@ 2019-07-29 14:01 Ismael Luceno
  2019-07-29 17:23 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Ismael Luceno @ 2019-07-29 14:01 UTC (permalink / raw)
  To: musl

I've started a port of the Source Mage distribution [0] to musl, but
I'm having issues in cases like this:

app --explicit--> libA --implicit--> libB.

I've an almost identical system with glibc which works fine.

I've opened a bug report for binutils [1], but it's possible that the
bug is in gcc (in collect2 maybe?).

Maybe someone else ran into this before...


[0] https://sourcemage.org/
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=24815


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linking issues
  2019-07-29 14:01 Linking issues Ismael Luceno
@ 2019-07-29 17:23 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2019-07-29 17:23 UTC (permalink / raw)
  To: musl

On Mon, Jul 29, 2019 at 04:01:32PM +0200, Ismael Luceno wrote:
> I've started a port of the Source Mage distribution [0] to musl, but
> I'm having issues in cases like this:
> 
> app --explicit--> libA --implicit--> libB.
> 
> I've an almost identical system with glibc which works fine.
> 
> I've opened a bug report for binutils [1], but it's possible that the
> bug is in gcc (in collect2 maybe?).
> 
> Maybe someone else ran into this before...
> 
> 
> [0] https://sourcemage.org/
> [1] https://sourceware.org/bugzilla/show_bug.cgi?id=24815

I don't entirely understand your problem, but if it's that ld fails to
resolve references from app to a symbol that's only defined in libB
when you just passed -lA, this is a known/intentional binutils change
(I would call it a regression -- it broke -lcurses API with ncurses)
from something like a decade or two ago. Unless you want to fight with
it, the solution is just "don't do that". I believe pkgconf and/or
libtool stuff works around this if you're using them. In any case your
problem probably has more to do with versions or configuration of
tooling than with musl.

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-29 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29 14:01 Linking issues Ismael Luceno
2019-07-29 17:23 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).