root@generic:/home/freebsd # ls.cshrc .login_conf .mailrc .shrc pkg-1.17.5_1.pkg.login .mail_aliases .profile .sshroot@generic:/home/freebsd # pkg install --force pkg-1.17.5_1.pkgThe package management tool is not yet installed on your system.Do you want to fetch and install it now? [y/N]: yBootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:aarch64/quarterly, please wait...Verifying signature with trusted certificate pkg.freebsd.org.2013102301... doneInstalling pkg-1.18.3...Extracting pkg-1.18.3: 100%Updating FreeBSD repository catalogue...Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.pkg: 100% 6 MiB 6.3MB/s 00:01 Processing entries: 100%FreeBSD repository update completed. 30551 packages processed.All repositories are up to date.Updating database digests format: 100%Checking integrity... done (0 conflicting)The following 1 package(s) will be affected (of 0 checked):Installed packages to be DOWNGRADED: pkg: 1.18.3 -> 1.17.5_1Number of packages to be downgraded: 1The operation will free 2 MiB.Proceed with this action? [y/N]: y[1/1] Downgrading pkg from 1.18.3 to 1.17.5_1...Extracting pkg-1.17.5_1: 100%root@generic:/home/freebsd # pkg install gitUpdating FreeBSD repository catalogue...FreeBSD repository is up to date.All repositories are up to date.pkg: warning: database version 36 is newer than libpkg(3) version 35, but still compatiblepkg: sqlite error while executing INSERT OR IGNORE INTO mtree(content) VALUES(?1) in file pkgdb.c:115: no such table: mtreeroot@generic:/home/freebsd #
#pkg search pkg
Invoked as: ./configureTclsh: /usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.17.5/jimsh0Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:4:7: error: use of undeclared identifier 'F_CLOSEM'(void)F_CLOSEM; ^1 error generated.============The failed code was:#include <fcntl.h>int main(void) {#ifndef F_CLOSEM(void)F_CLOSEM;#endifreturn 0;}============Failed: cc -g -O2 conftest__.c -o conftest__ld: error: undefined symbol: arc4random_stir>>> referenced by conftest__.c:3>>> /tmp/conftest__-1765d9.o:(main)>>> did you mean: arc4random_stir@FBSD_1.0>>> defined in: /lib/libc.so.7cc: error: linker command failed with exit code 1 (use -v to see invocation)============The failed code was:extern void arc4random_stir(void);int main(void) {arc4random_stir();return 0;}============Failed: cc -g -O2 conftest__.c -o conftest__ld: error: undefined symbol: basename_r>>> referenced by conftest__.c:3>>> /tmp/conftest__-813738.o:(main)>>> did you mean: basename_r@FBSD_1.2>>> defined in: /lib/libc.so.7cc: error: linker command failed with exit code 1 (use -v to see invocation)============The failed code was:extern void basename_r(void);int main(void) {basename_r();return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'sys/statfs.h' file not found#include <sys/statfs.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <sys/statfs.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'endian.h' file not found#include <endian.h> ^~~~~~~~~~1 error generated.============The failed code was:#include <endian.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.o -lelfcc: warning: -lelf: 'linker' input unused [-Wunused-command-line-argument]conftest__.c:2:1: error: use of undeclared identifier 'Elf_Note'Elf_Note _x;^1 error generated.============The failed code was:int main(void) {Elf_Note _x;return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/err.h' file not found#include <bsd/err.h> ^~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/err.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/libutil.h' file not found#include <bsd/libutil.h> ^~~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/libutil.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/readpassphrase.h' file not found#include <bsd/readpassphrase.h> ^~~~~~~~~~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/readpassphrase.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/stdio.h' file not found#include <bsd/stdio.h> ^~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/stdio.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/stdlib.h' file not found#include <bsd/stdlib.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/stdlib.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/strlib.h' file not found#include <bsd/strlib.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/strlib.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/string.h' file not found#include <bsd/string.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/string.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/sys/cdefs.h' file not found#include <bsd/sys/cdefs.h> ^~~~~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/sys/cdefs.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/unistd.h' file not found#include <bsd/unistd.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/unistd.h>int main(void) {return 0;}============pkg-config --modversion atf-c : Package atf-c was not found in the pkg-config search path.Perhaps you should add the directory containing `atf-c.pc'to the PKG_CONFIG_PATH environment variablePackage 'atf-c', required by 'virtual:world', not foundroot@freebsd:/usr/tools #root@freebsd:/usr/tools #root@freebsd:/usr/tools #root@freebsd:/usr/tools # cat /usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.17.5/config.logInvoked as: ./configureTclsh: /usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.17.5/jimsh0Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:4:7: error: use of undeclared identifier 'F_CLOSEM'(void)F_CLOSEM; ^1 error generated.============The failed code was:#include <fcntl.h>int main(void) {#ifndef F_CLOSEM(void)F_CLOSEM;#endifreturn 0;}============Failed: cc -g -O2 conftest__.c -o conftest__ld: error: undefined symbol: arc4random_stir>>> referenced by conftest__.c:3>>> /tmp/conftest__-1765d9.o:(main)>>> did you mean: arc4random_stir@FBSD_1.0>>> defined in: /lib/libc.so.7cc: error: linker command failed with exit code 1 (use -v to see invocation)============The failed code was:extern void arc4random_stir(void);int main(void) {arc4random_stir();return 0;}============Failed: cc -g -O2 conftest__.c -o conftest__ld: error: undefined symbol: basename_r>>> referenced by conftest__.c:3>>> /tmp/conftest__-813738.o:(main)>>> did you mean: basename_r@FBSD_1.2>>> defined in: /lib/libc.so.7cc: error: linker command failed with exit code 1 (use -v to see invocation)============The failed code was:extern void basename_r(void);int main(void) {basename_r();return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'sys/statfs.h' file not found#include <sys/statfs.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <sys/statfs.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'endian.h' file not found#include <endian.h> ^~~~~~~~~~1 error generated.============The failed code was:#include <endian.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.o -lelfcc: warning: -lelf: 'linker' input unused [-Wunused-command-line-argument]conftest__.c:2:1: error: use of undeclared identifier 'Elf_Note'Elf_Note _x;^1 error generated.============The failed code was:int main(void) {Elf_Note _x;return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/err.h' file not found#include <bsd/err.h> ^~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/err.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/libutil.h' file not found#include <bsd/libutil.h> ^~~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/libutil.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/readpassphrase.h' file not found#include <bsd/readpassphrase.h> ^~~~~~~~~~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/readpassphrase.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/stdio.h' file not found#include <bsd/stdio.h> ^~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/stdio.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/stdlib.h' file not found#include <bsd/stdlib.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/stdlib.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/strlib.h' file not found#include <bsd/strlib.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/strlib.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/string.h' file not found#include <bsd/string.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/string.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/sys/cdefs.h' file not found#include <bsd/sys/cdefs.h> ^~~~~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/sys/cdefs.h>int main(void) {return 0;}============Failed: cc -g -O2 -c conftest__.c -o conftest__.oconftest__.c:1:10: fatal error: 'bsd/unistd.h' file not found#include <bsd/unistd.h> ^~~~~~~~~~~~~~1 error generated.============The failed code was:#include <bsd/unistd.h>int main(void) {return 0;}============pkg-config --modversion atf-c : Package atf-c was not found in the pkg-config search path.Perhaps you should add the directory containing `atf-c.pc'to the PKG_CONFIG_PATH environment variablePackage 'atf-c', required by 'virtual:world', not found