Subject: toolchain/29170: -current tools cross-build fails on FreeBSD in lib/libc/gen/pw_scan.c
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 01/31/2005 11:14:00
>Number:         29170
>Category:       toolchain
>Synopsis:       -current tools cross-build fails on FreeBSD in lib/libc/gen/pw_scan.c
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 31 11:14:00 +0000 2005
>Originator:     Lubomir Sedlacik
>Release:        FreeBSD 4.11-RELEASE
>Environment:
Architecture: i386
Machine: i386
>Description:
cross-compilation of -current (as of Mon Jan 31 12:11:02 CET 2005) fails on
FreeBSD 4.11-RELEASE machine in tools/compat:

#   compile  compat/pw_scan.lo
cc -O  -I. -I./include -I/www/src/NetBSD/tools/compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o pw_scan.lo.o    /www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c
/www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c: In function `__nbcompat_pw_scan':
/www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c:155: `LOGIN_NAME_MAX' undeclared (first use in this function)
/www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c:155: (Each undeclared identifier is reported only once
/www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c:155: for each function it appears in.)
/www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c:200: warning: passing arg 1 of `gettime' from incompatible pointer type
/www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c:204: warning: passing arg 1 of `gettime' from incompatible pointer type

*** Failed target:  pw_scan.lo
*** Failed command: cc -O -I. -I./include -I/www/src/NetBSD/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o pw_scan.lo.o /www/src/NetBSD/tools/compat/../../lib/libc/gen/pw_scan.c
*** Error code 1

Stop.
nbmake: stopped in /www/src/NetBSD/tools/compat

*** Failed target:  dependall
*** Failed command: cd /www/src/NetBSD/tools/compat; /www/src/tools.i386/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /www/src/NetBSD/tools/compat

*** Failed target:  dependall-compat
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/www/src/NetBSD/tools" ;; *) this="${dir}/"; real="/www/src/NetBSD/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /www/src/tools.i386/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget compat dependall
*** Error code 1

Stop.
nbmake: stopped in /www/src/NetBSD/tools

ERROR: Failed to make tools
*** BUILD ABORTED ***

>How-To-Repeat:
on FreeBSD:
./build.sh -m i386 tools
>Fix:
n/a