The linking of sh to ksh solved the libarchive issue, but now I get an abort at the following:
gcc -DHAVE_CONFIG_H -DOPSYS_NAME=\"SCO_SV\" -DPKGSRC_MACHINE_ARCH=\"\" -DBINDIR=\"/usr/pkg/sbin\" -I/src/pkgsrc/bootstrap/work/libnbcompat -I/src/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O2 -c main.c
gcc -DHAVE_CONFIG_H -DOPSYS_NAME=\"SCO_SV\" -DPKGSRC_MACHINE_ARCH=\"\" -DBINDIR=\"/usr/pkg/sbin\" -I/src/pkgsrc/bootstrap/work/libnbcompat -I/src/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O2 -c perform.c
perform.c: In function 'copy_data_to_disk':
perform.c:660: warning: passing argument 4 of 'archive_read_data_block' from incompatible pointer type
gcc -L/src/pkgsrc/bootstrap/work/libnbcompat -L../lib -o pkg_add main.o perform.o -linstall /src/pkgsrc/bootstrap/work/libarchive/.libs/libarchive.a -lsocket -lnbcompat
Undefined first referenced
symbol in file
dbopen libinstall.a(pkgdb.o)
UX:i386ld: ERROR: Symbol referencing errors. No output written to pkg_add
collect2: ld returned 1 exit status
*** [pkg_add] Error code 1