dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

wireguard issue

Open Mehran opened this issue 7 years ago • 5 comments

again error After update

Building the wireguard kernel module...
getconf: LFS_CFLAGS: unknown variable
getconf: LFS_LDFLAGS: unknown variable
getconf: LFS_LIBS: unknown variable
  CC [M]  /wireguard/src/main.o
/bin/sh: scripts/basic/fixdep: not found
make[2]: *** [scripts/Makefile.build:334: /wireguard/src/main.o] Error 127
make[1]: *** [Makefile:1552: _module_/wireguard/src] Error 2
make: *** [Makefile:36: module] Error 2

Mehran avatar Dec 12 '18 05:12 Mehran

I don't believe #452 is related and assume this was closed accidentally. I'm still receiving the same error:

/wireguard/src # make module
getconf: LFS_CFLAGS: unknown variable
getconf: LFS_LDFLAGS: unknown variable
getconf: LFS_LIBS: unknown variable
  CC [M]  /wireguard/src/main.o
/bin/sh: scripts/basic/fixdep: not found
make[2]: *** [scripts/Makefile.build:334: /wireguard/src/main.o] Error 127
make[1]: *** [Makefile:1551: _module_/wireguard/src] Error 2
make: *** [Makefile:36: module] Error 2

It looks like this is because fixdep under /usr/src/ on my OS provides a binary linked to a libc with symbols alpine doesn't have.

/wireguard/src # ldd /usr/src/linux-headers-$(uname -r)/scripts/basic/fixdep
        /lib64/ld-linux-x86-64.so.2 (0x7f5932369000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f5932369000)
Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __memcpy_chk: symbol not found
Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __printf_chk: symbol not found
Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __fprintf_chk: symbol not found

Is this a known issue?

natronkeltner avatar Dec 20 '18 04:12 natronkeltner

you need to build your kernel with alpine as well

On Wed, Dec 19, 2018 at 11:52 PM natronkeltner [email protected] wrote:

I don't believe #452 https://github.com/jessfraz/dockerfiles/pull/452 is related and assume this was closed accidentally. I'm still receiving the same error:

/wireguard/src # make module getconf: LFS_CFLAGS: unknown variable getconf: LFS_LDFLAGS: unknown variable getconf: LFS_LIBS: unknown variable CC [M] /wireguard/src/main.o /bin/sh: scripts/basic/fixdep: not found make[2]: *** [scripts/Makefile.build:334: /wireguard/src/main.o] Error 127 make[1]: *** [Makefile:1551: module/wireguard/src] Error 2 make: *** [Makefile:36: module] Error 2

It looks like this is because fixdep under /usr/src/ on my OS provides a binary linked to a libc with symbols alpine doesn't have.

/wireguard/src # ldd /usr/src/linux-headers-$(uname -r)/scripts/basic/fixdep /lib64/ld-linux-x86-64.so.2 (0x7f5932369000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f5932369000) Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __memcpy_chk: symbol not found Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __printf_chk: symbol not found Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __fprintf_chk: symbol not found

Is this a known issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jessfraz/dockerfiles/issues/451#issuecomment-448870522, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYNbOIrcPpx7ZBr2Jl2qDrLPHyjijn-ks5u6xeegaJpZM4ZOw-3 .

--

Jessie Frazelle 4096R / D4C4 DD60 0D66 F65A 8EFC 511E 18F3 685C 0022 BFF3 pgp.mit.edu http://pgp.mit.edu/pks/lookup?op=get&search=0x18F3685C0022BFF3

jessfraz avatar Dec 20 '18 05:12 jessfraz

Sorry, I indeed closed the wrong issue with #452

koep avatar Dec 20 '18 07:12 koep

again error After update

Building the wireguard kernel module...
getconf: LFS_CFLAGS: unknown variable
getconf: LFS_LDFLAGS: unknown variable
getconf: LFS_LIBS: unknown variable
  CC [M]  /wireguard/src/main.o
/bin/sh: scripts/basic/fixdep: not found
make[2]: *** [scripts/Makefile.build:334: /wireguard/src/main.o] Error 127
make[1]: *** [Makefile:1552: _module_/wireguard/src] Error 2
make: *** [Makefile:36: module] Error 2

How did you resolve this problem,I have same issue,thank you

abcdef123ghi avatar Jan 18 '19 08:01 abcdef123ghi

you need to build your kernel with alpine as well … On Wed, Dec 19, 2018 at 11:52 PM natronkeltner @.***> wrote: I don't believe #452 <#452> is related and assume this was closed accidentally. I'm still receiving the same error: /wireguard/src # make module getconf: LFS_CFLAGS: unknown variable getconf: LFS_LDFLAGS: unknown variable getconf: LFS_LIBS: unknown variable CC [M] /wireguard/src/main.o /bin/sh: scripts/basic/fixdep: not found make[2]: *** [scripts/Makefile.build:334: /wireguard/src/main.o] Error 127 make[1]: *** [Makefile:1551: module/wireguard/src] Error 2 make: *** [Makefile:36: module] Error 2 It looks like this is because fixdep under /usr/src/ on my OS provides a binary linked to a libc with symbols alpine doesn't have. /wireguard/src # ldd /usr/src/linux-headers-$(uname -r)/scripts/basic/fixdep /lib64/ld-linux-x86-64.so.2 (0x7f5932369000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f5932369000) Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __memcpy_chk: symbol not found Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __printf_chk: symbol not found Error relocating /usr/src/linux-headers-4.15.0-42-generic/scripts/basic/fixdep: __fprintf_chk: symbol not found Is this a known issue? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#451 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYNbOIrcPpx7ZBr2Jl2qDrLPHyjijn-ks5u6xeegaJpZM4ZOw-3 . -- Jessie Frazelle 4096R / D4C4 DD60 0D66 F65A 8EFC 511E 18F3 685C 0022 BFF3 pgp.mit.edu http://pgp.mit.edu/pks/lookup?op=get&search=0x18F3685C0022BFF3

how do I build the kernel with alpine,any help would be apperciated

abcdef123ghi avatar Jan 18 '19 08:01 abcdef123ghi