Subject: toolchain/27336: cross-building of pax(1) from tools fails
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 10/22/2004 10:16:05
>Number: 27336
>Category: toolchain
>Synopsis: cross-building of pax(1) from tools fails -- fchroot()
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: toolchain-manager
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 22 08:47:06 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Lubomir Sedlacik
>Release: Linux
>Organization:
>Environment:
Architecture: i386
Machine: i386
>Description:
cross-building on (at least) Linux fails in tools stage with:
# link pax/pax
cc -O -I/www/src/obj/tools/compat -I/www/src/obj/tools/compat/include -I/www/src/NetBSD/src/tools/pax/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/www/src/NetBSD/src/usr.sbin/mtree -I/www/src/NetBSD/src/sbin/mknod -I/www/src/NetBSD/src/bin/ls -DHOSTPROG -o pax ar_io.lo ar_subs.lo buf_subs.lo cpio.lo file_subs.lo ftree.lo gen_subs.lo getoldopt.lo options.lo pat_rep.lo pax.lo sel_subs.lo tables.lo tar.lo tty_subs.lo getid.lo spec.lo misc.lo stat_flags.lo pack_dev.lo -L/www/src/obj/tools/compat -lnbcompat -lz
ar_subs.lo: In function `extract':
ar_subs.lo(.text+0x24f): undefined reference to `fchroot'
collect2: ld returned 1 exit status
*** Failed target: pax
*** Failed command: cc -O -I/www/src/obj/tools/compat -I/www/src/obj/tools/compat/include -I/www/src/NetBSD/src/tools/pax/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/www/src/NetBSD/src/usr.sbin/mtree -I/www/src/NetBSD/src/sbin/mknod -I/www/src/NetBSD/src/bin/ls -DHOSTPROG -o pax ar_io.lo ar_subs.lo buf_subs.lo cpio.lo file_subs.lo ftree.lo gen_subs.lo getoldopt.lo options.lo pat_rep.lo pax.lo sel_subs.lo tables.lo tar.lo tty_subs.lo getid.lo spec.lo misc.lo stat_flags.lo pack_dev.lo -L/www/src/obj/tools/compat -lnbcompat -lz
*** Error code 1
see also http://mail-index.netbsd.org/current-users/2004/10/19/0022.html
>How-To-Repeat:
build.sh tools on a Linux machine
>Fix:
n/a
- add fchroot() to libnbcompat?
- remove fchroot() from pax in tools?
>Release-Note:
>Audit-Trail:
>Unformatted: