Skip to contentSkip to conversation

New: [kmod] Compilation fails with uclibc

Buildroot bugzilla at busybox.net 1 participant 6 messages Jan 6, 2017 – Jan 16, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9566

Bug ID: 9566
Summary: [kmod] Compilation fails with uclibc
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: lipkegu at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---

Reproduce steps:
* use a clean environment
* select ulibc-ng
* use eudev + devtmpfs
* build it...

Quoted 1 line
Quoted 1 line
Quoted 1 line

kmod 23 Building

PATH="/home/guido/buildroot/output/host/bin:/home/guido/buildroot/output/host/sbin:/home/guido/buildroot/output/host/usr/bin:/home/guido/buildroot/output/host/usr/sbin:/home/guido/bin:/home/guido/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
/usr/bin/make -C /home/guido/buildroot/output/build/kmod-23/
make[1]: Verzeichnis ?/home/guido/buildroot/output/build/kmod-23? wird betreten
/usr/bin/make --no-print-directory all-recursive
Making all in .

  GEN      libkmod/libkmod.pc
  CC       libkmod/libkmod.lo
  CC       libkmod/libkmod-list.lo
  CC       libkmod/libkmod-config.lo
  CC       libkmod/libkmod-index.lo
  CC       libkmod/libkmod-module.lo

In file included from libkmod/libkmod-list.c:23:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^

In file included from libkmod/libkmod-config.c:36:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^

In file included from libkmod/libkmod-index.c:33:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^

CC libkmod/libkmod-file.lo
In file included from libkmod/libkmod-module.c:45:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^

In file included from libkmod/libkmod.c:38:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^

In file included from libkmod/libkmod-file.c:39:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^

CC libkmod/libkmod-elf.lo
In file included from libkmod/libkmod-elf.c:29:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^
  CC       libkmod/libkmod-signature.lo
  CC       shared/array.lo
  CC       shared/hash.lo

In file included from libkmod/libkmod-signature.c:29:0:
libkmod/libkmod-internal.h:44:6: Warnung: #warning neither secure_getenv nor __secure_getenv is available [-Wcpp]
# warning neither secure_getenv nor __secure_getenv is available

      ^
  CC       shared/strbuf.lo
  CC       shared/util.lo
  CC       libkmod/python/kmod/libkmod_python_kmod_kmod_la-kmod.lo
  CC       libkmod/python/kmod/libkmod_python_kmod_list_la-list.lo
  CC       libkmod/python/kmod/libkmod_python_kmod_module_la-module.lo
  CC       libkmod/python/kmod/libkmod_python_kmod__util_la-_util.lo
  CCLD     shared/libshared.la
  CCLD     libkmod/libkmod.la
  CCLD     libkmod/libkmod-internal.la

libkmod/.libs/libkmod-module.o: In function `kmod_module_remove_module':
libkmod-module.c:(.text.kmod_module_remove_module+0x20): undefined reference to `delete_module'
libkmod/.libs/libkmod-module.o: In function `kmod_module_insert_module':
libkmod-module.c:(.text.kmod_module_insert_module+0x21c): undefined reference to `init_module'
collect2: error: ld returned 1 exit status
Makefile:1322: die Regel f?r Ziel ?libkmod/libkmod.la? scheiterte make[3]: *** [libkmod/libkmod.la] Fehler 1
make[3]: *** Auf noch nicht beendete Prozesse wird gewartet ? Makefile:2074: die Regel f?r Ziel ?all-recursive? scheiterte make[2]: *** [all-recursive] Fehler 1
Makefile:1151: die Regel f?r Ziel ?all? scheiterte
make[1]: *** [all] Fehler 2
make[1]: Verzeichnis ?/home/guido/buildroot/output/build/kmod-23? wird verlassen
package/pkg-generic.mk:216: die Regel f?r Ziel ?/home/guido/buildroot/output/build/kmod-23/.stamp_built? scheiterte

make: *** [/home/guido/buildroot/output/build/kmod-23/.stamp_built] Fehler
2

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 9566] [kmod] Compilation fails with uclibc

https://bugs.busybox.net/show_bug.cgi?id=9566

--- Comment #1 from mail at waldemar-brodkorb.de --- there is pending patch fixes this:

Waldemar Brodkorb ( 0) [Buildroot] [PATCH] uclibc: add kernel module
syscall wrappers

not sure why t isn't applied, yet.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 9566] [kmod] Compilation fails with uclibc

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9566

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Peter Korsgaard <[email protected]> --- The uClibc-ng patch has now been applied:

commit ffad94e6ddde09c8388bdc0b5f825ddf77702182

Author: Waldemar Brodkorb <[email protected]>
Date:   Wed Dec 28 18:29:01 2016 +0100

uclibc: add kernel module syscall wrappers

Revert the decision to remove the wrappers, but remove the extra Config symbol and add it by default. Required for kmod package.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 9566] [kmod] Compilation fails with uclibc

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9566

mavik30 at yahoo.com changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #3 from mavik30 at yahoo.com ---
Hello,

I got the same error, i followed the patch. But still same error.

Can any one tell how solve this issue.

CCLD libkmod/libkmod.la
libkmod/.libs/libkmod-module.o: In function `kmod_module_remove_module':
libkmod-module.c:(.text.kmod_module_remove_module+0x20): undefined reference to `delete_module'
libkmod/.libs/libkmod-module.o: In function `kmod_module_insert_module':
libkmod-module.c:(.text.kmod_module_insert_module+0x21c): undefined reference to `init_module'
collect2: error: ld returned 1 exit status
make[4]: *** [libkmod/libkmod.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [/home/marvik/buildroot/output/build/kmod-23/.stamp_built] Error 2
make: *** [_all] Error 2

Thanks

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 9566] [kmod] Compilation fails with uclibc

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9566

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Thomas Petazzoni <[email protected]> --- This issue has been fixed by the uClibc-ng change. The original reporter did not provide additional details as to how to reproduce the problem with the fixed uClibc-ng. Therefore, I'm closing this bug.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.