mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Link problems with static node-canvas
Date: Sat, 27 Jun 2015 13:18:09 +0200	[thread overview]
Message-ID: <20150627111809.GD7066@port70.net> (raw)
In-Reply-To: <20150627170728.3f15c1da@r2lynx>

* ???????? <lynx@sibserver.ru> [2015-06-27 17:07:28 +0700]:
> There are more undefined symbols than listed on your screenshot, but
> musl reports only one (maybe that's related to dynlinker overhaul), in
> particular from Freetype there are 20 of them, and jinit_arith_encoder,
> also related to jpeg.
> 

what's worse is that it most likely broken with glibc too

just seems to work because the symbols weren't used, but as
soon as they are, the code will crash.. (because lazy binding)

> If you link in static libraries than you should, like with static
> programs, order your dependency list (the order of static libraries).
> Since ld does not generate any link errors when making shared object
> and treat any undefined symbol like it will come later it's hard to do
> that right when you don't know your library internals well (and you're
> not with bigger ones such as jpeg, png and freetype). What's your final
> link command?
> 

this is most likely the issue

whatever the link command was add -ljpeg and -lwhateverwasmissing
to the end


  reply	other threads:[~2015-06-27 11:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26 23:06 piranna
2015-06-27  6:18 ` Рысь
2015-06-27  9:41   ` piranna
2015-06-27 10:07     ` Рысь
2015-06-27 11:18       ` Szabolcs Nagy [this message]
2015-06-27 22:05         ` piranna
     [not found]       ` <CAKfGGh1DvxCjHWYpCENH3mcxDRa9LimHMCPhteoeb+4S0R5Uvg@mail.gmail.com>
2015-06-27 22:20         ` Fwd: " piranna
2015-06-27 22:41           ` Szabolcs Nagy
2015-06-27 23:10             ` piranna
2015-06-28  3:23               ` Рысь
2015-06-28 13:06                 ` piranna
2015-06-28 18:21                   ` piranna
2015-06-28  3:17           ` Рысь
2015-06-28 12:51             ` piranna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150627111809.GD7066@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).