Skip to contentSkip to conversation

Buildroot fails on powerpc with busybox login.c

Buildroot Michael Boutte 3 participants 4 messages Sep 10, 2006 – Sep 14, 2006 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,
Ever since approximately version 16076 the initial make of buildroot
fails with errors in the busybox/loginutils/login.c as shown in the snip
below.
CC loginutils/login.o
/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:
In function 'login_main':
/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:143:
warning: implicit declaration of function 'read_or_build_utent' /home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:145:
error: 'utent' undeclared (first use in this function) /home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:145:
error: (Each undeclared identifier is reported only once /home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:145:
error: for each function it appears in.) /home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:204:
warning: implicit declaration of function 'write_utent'
make[2]: *** [/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.o] Error 1
make[1]: *** [_all] Error 2
make[1]: Leaving directory `/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox'
make: *** [/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/busybox] Error 2

Mike

#1 lore raw
Quoted 2 lines · Michael Boutte

Hi,
Ever since approximately version 16076 the initial make of buildroot

Sounds like vda's r16075 change to me.

Quoted 7 lines

fails with errors in the busybox/loginutils/login.c as shown in the snip
below.
CC loginutils/login.o
/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:
In function 'login_main':
/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:143:
warning: implicit declaration of function 'read_or_build_utent'

r16112 has a partial fix to make it build again. We (e.g. vda ;) should provide empty bodies for read_or_build_utent() and write_utent() if UTMP support is disabled. This can go hand in hand with removing the pointless forward decls for said functions.

thanks for pointing this out,
Bernhard

#2 lore raw
Quoted 13 lines · Bernhard Fischer
Quoted 2 lines · Michael Boutte

Hi,
Ever since approximately version 16076 the initial make of buildroot

Sounds like vda's r16075 change to me.

Quoted 3 lines

fails with errors in the busybox/loginutils/login.c as shown in the snip below.
CC loginutils/login.o

/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:

Quoted 1 line

In function 'login_main':

Quoted 8 lines

/home/mike/projects/software/snip875/build-tools/uclibc-4/buildroot/build_powerpc/busybox/loginutils/login.c:143:

Quoted 1 line

warning: implicit declaration of function 'read_or_build_utent'

r16112 has a partial fix to make it build again. We (e.g. vda ;) should provide empty bodies for read_or_build_utent() and write_utent() if UTMP support is disabled. This can go hand in hand with removing the pointless forward decls for said functions.

Stick "ALWAYS_INLINE" on 'em when you do, please.

Rob

Signature · 1 line
Never bet against the cheap plastic solution.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 8 lines · Denis Vlasenko
Quoted 4 lines · Bernhard Fischer

r16112 has a partial fix to make it build again. We (e.g. vda ;) should provide empty bodies for read_or_build_utent() and write_utent() if UTMP support is disabled. This can go hand in hand with removing the pointless forward decls for said functions.

Done ;)

Thanks for taking care of this.
cheers,
Bernhard