I'm running jails on FreeBSD 8.3 and I can't build ports-mgmt/pkg from within a jail. I'm trying this:
...and it fails with the following error:
Note that pkg builds fine in the host system, it's only in jails that it breaks. I use ezjail to create and update the jails.
# cd /usr/ports/ports-mgmt/pkg
# make clean build
...and it fails with the following error:
Code:
cc -O2 -pipe -fno-strict-aliasing -I/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../libpkg -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -static -o pkg-static add.o audit.o autoremove.o backup.o check.o clean.o create.o delete.o event.o info.o install.o main.o progressmeter.o query.o register.o repo.o rquery.o update.o upgrade.o search.o set.o shlib.o updating.o utils.o version.o which.o fetch.o shell.o stats.o -L/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../libpkg -lpkg -larchive -lutil -lpthread -lsbuf -lfetch -lssl -lcrypto -lmd -lz -lbz2 -llzma -L/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/sqlite -L/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/libyaml -lyaml -lsqlite3 -larchive -lsbuf -lfetch -lpthread -lelf -lssl -lcrypto -lmd -lz -lbz2 -llzma -ledit -lncursesw -ljail
/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/sqlite/libsqlite3.a(shell.o)(.text+0x509d): In function `process_input':
: undefined reference to `readline'
/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/sqlite/libsqlite3.a(shell.o)(.text+0x5299): In function `process_input':
: undefined reference to `add_history'
/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/sqlite/libsqlite3.a(shell.o)(.text+0x5cb5): In function `sqlite3_shell':
: undefined reference to `read_history'
/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/sqlite/libsqlite3.a(shell.o)(.text+0x5cce): In function `sqlite3_shell':
: undefined reference to `stifle_history'
/var/ports/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.0.11/pkg-static/../external/sqlite/libsqlite3.a(shell.o)(.text+0x5cd6): In function `sqlite3_shell':
: undefined reference to `write_history'
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 1
Stop in /basejail/usr/ports/ports-mgmt/pkg.
*** Error code 1
Stop in /basejail/usr/ports/ports-mgmt/pkg.
Note that pkg builds fine in the host system, it's only in jails that it breaks. I use ezjail to create and update the jails.