Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2016 17:07:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 208797] graphics/devil: linking with static libs does not work
Message-ID:  <bug-208797-6-JiMEN8aNTZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208797-6@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208797-6@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208797

--- Comment #4 from Dmitry Marakasov <amdmi3@FreeBSD.org> ---
This is expected behavior. Static libs do not track dependencies, so while =
with
shared linking all dependent libs are linked automatically, with static lin=
king
that's not the case, and you need to specify all indirectly required librar=
ies
(e.g. ones used by libIL itself) manually. From what I see from the video, =
you
have undefined references to symbols from libjasper, libnvtt, libjbig, and =
you
don't have these in your LIBS.

One solution is to stick to shared linking, another is to use `pkg-config
--libs --static IL` output instead of hardcoded library list, that's also m=
uch
more portable, as the lib list may vary across different OS/distros (and ev=
en
on FreeBSD, if you rebuild devil port with non-default options).

One thing not clear to me is that you've written that the behavior is diffe=
rent
on i386 compared to amd64. That can't be the case.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208797-6-JiMEN8aNTZ>