Bug 9566 - [kmod] Compilation fails with uclibc
Summary: [kmod] Compilation fails with uclibc
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-06 08:27 UTC by lipkegu
Modified: 2018-01-16 23:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lipkegu 2017-01-06 08:27:18 UTC
Reproduce steps:
* use a clean environment
* select ulibc-ng
* use eudev + devtmpfs
* build it...


>>> 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
Comment 1 mail 2017-01-06 18:23:49 UTC
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.
Comment 2 Peter Korsgaard 2017-01-06 18:54:30 UTC
The uClibc-ng patch has now been applied:

commit ffad94e6ddde09c8388bdc0b5f825ddf77702182
Author: Waldemar Brodkorb <wbx@openadk.org>
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.

    Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Comment 3 mavik30 2017-07-13 14:08:32 UTC
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
Comment 4 Peter Korsgaard 2017-07-23 07:45:07 UTC
(In reply to mavik30 from comment #3)

Can you provide some more details please? What Buildroot version and what is your (def)config?
Comment 5 Thomas Petazzoni 2018-01-16 23:02:41 UTC
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.