This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to modify LD_LIBRARY_PATH


Hi,

My goal is to create a build environment for the kernel modules which
target different kernels in the different distros - Ubuntu, CentOS,
etc.

I am trying to build the kernel modules in a chroot environment based
on CentOS6. The approach works fine for CentOS kernels.
When I am trying to compile a module for the Ubuntu kernel
3.8.0-31-generic all build commands similar to this one fail:

env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE
-uKCONFIG_CONFIG -uINSTALL_PATH -uLD_LIBRARY_PATH
PATH=/usr/bin:/bin:/opt/rh/python27/root/usr/bin:/opt/rh/devtoolset-4/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
make -C //lib/modules/3.8.0-31-generic/build
M=/tmp/stap5IyPLq/typequery_kmod_23 modules CONFIG_DE>

/usr/src/linux-headers-3.8.0-31-generic/arch/x86/Makefile:103:
CONFIG_X86_X32 enabled but no binutils support
  Building modules, stage 2.
  MODPOST 1 modules
scripts/mod/modpost: /lib64/libc.so.6: version `GLIBC_2.14' not found
(required by scripts/mod/modpost)
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

I have GLIBC=2.14 installed in /opt/glibc-2.14/lib

In the function
make_any_make_cmd() I see "Sanitize environment variables for kbuild
invocation" and explicit undef for LD_LIBRARY_PATH
How can I modify LD_LIBRARY_PATH anyway?

Thank you, Arkady.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]