xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* xen 4.4.0 dependency lzo fails to build from source due to fPIC
@ 2014-07-28 21:02 Anthony Wright
  2014-07-29  6:46 ` Jan Beulich
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony Wright @ 2014-07-28 21:02 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

If xen detects lzo, it tries to build tools/xclib/libxenguest.so.4.4.0
with lzo support but fails with the error:

/usr/bin/ld:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib64/liblzo2.a(lzo_init.o):
relocation R_X86_64_PC32 against symbol '_lzo_config_check' can not be
used when making a shared object; recompile with -fPIC

reading around the subject it would seem to be a problem with the lzo
library (2.08) which has been built without using the -fPIC option.
However, when I look at the lzo package there is no standard way to
build it with -fPIC. My workaround has been simply to remove the lzo
package, but I'm not sure this is a good solution, and I don't
understand why this problem doesn't seem to have been encountered before.

Should I be building Xen with LZO support? (does everybody else build
without LZO support?)

Should I be adding fPIC to the LZO options and rebuilding LZO?

Is there something else I'm doing wrong that is causing the problem?

Any suggestions appreciated.

Anthony.

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

end of thread, other threads:[~2014-08-01 11:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 21:02 xen 4.4.0 dependency lzo fails to build from source due to fPIC Anthony Wright
2014-07-29  6:46 ` Jan Beulich
2014-07-29 20:21   ` Don Slutz
2014-07-30  7:01     ` Jan Beulich
2014-07-31  1:36       ` Don Slutz
2014-08-01 11:32         ` Anthony Wright
2014-07-30  9:03   ` Anthony Wright

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).