Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 607702

Summary: =sys-apps/busybox-1.26.2: fails to build as modutils-24.c:(.text.bb_init_module_24+0x13a): undefined reference to `query_module'
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Current packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED DUPLICATE    
Severity: normal CC: blueness
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Sergei Trofimovich (RETIRED) gentoo-dev 2017-01-30 09:33:58 UTC
Created attachment 461894 [details]
build.log

It's an ~arch amd64:

networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x40): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
debianutils/lib.a(mktemp.o): In function `mktemp_main':
mktemp.c:(.text.mktemp_main+0x8b): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xe2): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x12e): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xfd): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x3c): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x70): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
modutils/lib.a(modutils-24.o): In function `bb_init_module_24':
modutils-24.c:(.text.bb_init_module_24+0x13a): undefined reference to `query_module'
modutils-24.c:(.text.bb_init_module_24+0x188): undefined reference to `query_module'
modutils-24.c:(.text.bb_init_module_24+0x295): undefined reference to `query_module'
modutils-24.c:(.text.bb_init_module_24+0x2fa): undefined reference to `query_module'
modutils-24.c:(.text.bb_init_module_24+0x776): undefined reference to `query_module'
modutils-24.c:(.text.bb_init_module_24+0xac6): undefined reference to `create_module'
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-01-30 09:42:39 UTC
It looks like create_module and query_module are both syscalls
for linux-2.4 (dropped in 2.6). And recent glibc (2.23= ?) does
not provide C wrappers around these syscalls.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-01-30 09:44:08 UTC

*** This bug has been marked as a duplicate of bug 607548 ***