START usr.bin/libtool 2024-02-25T11:31:07Z ==== test-compile-0 ==== ==== test-link-0 ==== /usr/bin/libtool --mode=compile cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/a.c cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/a.c -fPIC -DPIC -o .libs/a.o cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/a.c -o a.o /usr/bin/libtool --mode=compile cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/b.c cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/b.c -fPIC -DPIC -o .libs/b.o cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/b.c -o b.o liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba.la -version-info 0:0:0 -rpath /usr/local/lib a.lo b.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba.so.0.0 -O2 -pipe -MD -MP .libs/a.o .libs/b.o -Wl,-soname,liba.so.0.0 libtool: link: ar cru .libs/liba.a a.o b.o libtool: link: ranlib .libs/liba.a ==== test-install-0 ==== mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib /usr/bin/libtool --mode=install cp liba.la /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba.la libtool: install: cp ./.libs/liba.a /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba.a libtool: install: cp ./.libs/liba.so.0.0 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba.so.0.0 libtool: install: cp ./.libs/liba.lai /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba.la ==== test-run-0 ==== /usr/bin/libtool --mode=compile cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/c.c cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/c.c -fPIC -DPIC -o .libs/c.o cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/c.c -o c.o /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o p1 c.lo -la libtool: link: cc -o .libs/p1 -O2 -pipe -MD -MP c.o -L.libs -la -Wl,-rpath-link,/usr/local/lib ./p1 42 ==== test-link-1 ==== ==== test-install-1 ==== mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin /usr/bin/libtool --mode=install cp p1 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin/p1 libtool: install: cp ./.libs/p1 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin/p1 ==== test-run-1 ==== LD_LIBRARY_PATH=/usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin/p1 42 ==== test-link-2 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba0.la -version-info 0:0:0 -rpath /usr/local/lib a.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba0.so.0.0 -O2 -pipe -MD -MP .libs/a.o -Wl,-soname,liba0.so.0.0 libtool: link: ar cru .libs/liba0.a a.o libtool: link: ranlib .libs/liba0.a liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba1.la -version-info 0:0:0 -rpath /usr/local/lib -la0 b.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba1.so.0.0 -O2 -pipe -MD -MP .libs/b.o -L.libs -la0 -Wl,-soname,liba1.so.0.0 libtool: link: ar cru .libs/liba1.a b.o libtool: link: ranlib .libs/liba1.a ==== test-link-3 ==== /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o p2 c.lo -la1 libtool: link: cc -o .libs/p2 -O2 -pipe -MD -MP c.o -L.libs -la1 -la0 -Wl,-rpath-link,/usr/local/lib ==== test-link-4 ==== /usr/bin/libtool --mode=compile cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/e.c cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/e.c -fPIC -DPIC -o .libs/e.o cc -c -O2 -pipe -MD -MP /usr/src/regress/usr.bin/libtool/e.c -o e.o libtool does not allow spaces in -L dir ==== test-link-5 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba4.la -x c -version-info 0:0:0 -rpath /usr/local/lib a.lo b.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba4.so.0.0 -O2 -pipe -MD -MP .libs/a.o .libs/b.o -Wl,-soname,liba4.so.0.0 libtool: link: ar cru .libs/liba4.a a.o b.o libtool: link: ranlib .libs/liba4.a ==== test-link-6 ==== libtool: link: cc -o e -x c e.o ==== test-run-2 ==== ./p2 42 ==== test-run-3 ==== mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib /usr/bin/libtool --mode=install cp liba0.la /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba0.la libtool: install: cp ./.libs/liba0.a /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba0.a libtool: install: cp ./.libs/liba0.so.0.0 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba0.so.0.0 libtool: install: cp ./.libs/liba0.lai /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba0.la mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib /usr/bin/libtool --mode=install cp liba1.la /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba1.la libtool: install: cp ./.libs/liba1.a /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba1.a libtool: install: cp ./.libs/liba1.so.0.0 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba1.so.0.0 libtool: install: cp ./.libs/liba1.lai /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba1.la mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin /usr/bin/libtool --mode=install cp p2 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin/p2 libtool: install: cp ./.libs/p2 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin/p2 LD_LIBRARY_PATH=/usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/bin/p2 42 ==== error-1 ==== /usr/bin/libtool --mode=compile --tag=notatag cc -c -o dummy.lo dummy.c 2>&1|fgrep -q "ignoring unknown tag" ==== error-2 ==== if /usr/bin/libtool --mode=compile --tag=@ cc -c -o dummy.lo dummy.c; then exit 1; fi invalid tag name: @ at /usr/libdata/perl5/LT/Util.pm line 37. ==== error-3 ==== if /usr/bin/libtool --mode=foo cc -c -o dummy.lo dummy.c; then exit 1; fi Mode=foo not implemented yet. ==== test-alternate-0 ==== /usr/bin/libtool compile cc -c -o dummy.lo dummy.c cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o cc -c dummy.c -o dummy.o /usr/bin/libtool comp cc -c -o dummy.lo dummy.c cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o cc -c dummy.c -o dummy.o ==== test-implicit-0 ==== /usr/bin/libtool cc -c -o dummy.lo dummy.c cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o cc -c dummy.c -o dummy.o ==== test-run-4 ==== /usr/bin/libtool --mode=execute ./p2 42 ==== test-implicit-1 ==== mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest2/usr/local/lib /usr/bin/libtool install liba.la /usr/src/regress/usr.bin/libtool/obj/dest2/usr/local/lib/liba.la libtool: install: install -m 644 ./.libs/liba.a /usr/src/regress/usr.bin/libtool/obj/dest2/usr/local/lib/liba.a libtool: install: install -m 644 ./.libs/liba.so.0.0 /usr/src/regress/usr.bin/libtool/obj/dest2/usr/local/lib/liba.so.0.0 libtool: install: install -m 644 ./.libs/liba.lai /usr/src/regress/usr.bin/libtool/obj/dest2/usr/local/lib/liba.la ==== test-help ==== /usr/bin/libtool --help > /dev/null ==== error-4 ==== # libtool -mode=... is an invalid option Unknown option -mode=compile ==== error-6 ==== # implicit mode detection failure: libtool foo no explicit mode, couldn't figure out implicit mode ==== test-bond ==== # one single instance of -o Can't specify -o more than once ==== test-implicit-2 ==== mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest3/usr/local/lib /usr/bin/libtool install -c liba.la /usr/src/regress/usr.bin/libtool/obj/dest3/usr/local/lib/liba.la libtool: install: install -c -m 644 ./.libs/liba.a /usr/src/regress/usr.bin/libtool/obj/dest3/usr/local/lib/liba.a libtool: install: install -c -m 644 ./.libs/liba.so.0.0 /usr/src/regress/usr.bin/libtool/obj/dest3/usr/local/lib/liba.so.0.0 libtool: install: install -c -m 644 ./.libs/liba.lai /usr/src/regress/usr.bin/libtool/obj/dest3/usr/local/lib/liba.la ==== test-Wc ==== /usr/bin/libtool --mode=compile cc -c -Wc,-DA,-DB /usr/src/regress/usr.bin/libtool/d.c cc -c -DA -DB /usr/src/regress/usr.bin/libtool/d.c -fPIC -DPIC -o .libs/d.o cc -c -DA -DB /usr/src/regress/usr.bin/libtool/d.c -o d.o ==== test-Xcompiler ==== /usr/bin/libtool --mode=compile cc -c -Xcompiler -DA -Xcompiler -DB /usr/src/regress/usr.bin/libtool/d.c cc -c -DA -DB /usr/src/regress/usr.bin/libtool/d.c -fPIC -DPIC -o .libs/d.o cc -c -DA -DB /usr/src/regress/usr.bin/libtool/d.c -o d.o ==== stupid-gdb ==== ==== pthread-0 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba2.la -pthread a.lo b.lo libtool: link: ar cru .libs/liba2.a .libs/a.o .libs/b.o libtool: link: ranlib .libs/liba2.a libtool: link: cc -o e -pthread e.o /usr/obj/regress/usr.bin/libtool/.libs/liba2.a ==== pthread-1 ==== libtool: link: cc -o e -pthread e.o /usr/obj/regress/usr.bin/libtool/.libs/liba2.a ==== pthread-2 ==== /usr/bin/libtool --mode=link cc -o e -pthread -pthread e.lo |tee out.15 libtool: link: cc -o e -pthread e.o ==== test-o-0 ==== No output file given. ==== version-override-0 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba9.la -version-info 0:0:0 -rpath /usr/local/lib a.lo b.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba9.so.4.2 -O2 -pipe -MD -MP .libs/a.o .libs/b.o -Wl,-soname,liba9.so.4.2 libtool: link: ar cru .libs/liba9.a a.o b.o libtool: link: ranlib .libs/liba9.a fgrep -q "liba9.so.4.2" liba9.la ==== version-override-1 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba++b.weird.la -version-info 0:0:0 -rpath /usr/local/lib a.lo b.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba++b.weird.so.5.6 -O2 -pipe -MD -MP .libs/a.o .libs/b.o -Wl,-soname,liba++b.weird.so.5.6 libtool: link: ar cru .libs/liba++b.weird.a a.o b.o libtool: link: ranlib .libs/liba++b.weird.a fgrep -q "liba++b.weird.so.5.6" liba++b.weird.la ==== error-5 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o libbad.la --version-info 0:0:0 --rpath /usr/local/lib a.lo b.lo libtool: link: ar cru .libs/libbad.a .libs/a.o .libs/b.o libtool: link: ranlib .libs/libbad.a fgrep -q "library_names=''" libbad.la || exit 1 ==== compile-mode-0 ==== /usr/bin/libtool --mode=compile cc -c dummy.c|tee out0 cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o cc -c dummy.c -o dummy.o ==== compile-mode-1 ==== /usr/bin/libtool --mode=compile --tag=disable-shared cc -c dummy.c|tee out1 cc -c dummy.c -o dummy.o ==== compile-mode-2 ==== /usr/bin/libtool --mode=compile --tag=disable-static cc -c dummy.c|tee out2 cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o ==== compile-mode-3 ==== # can't disable both, will keep static /usr/bin/libtool --mode=compile --tag=disable-static --tag=disable-shared cc -c dummy.c|tee out3 cc -c dummy.c -o dummy.o ==== compile-mode-4 ==== # can't disable both, will keep static /usr/bin/libtool --mode=compile --tag=disable-shared --tag=disable-static cc -c dummy.c|tee out4 cc -c dummy.c -o dummy.o ==== compile-mode-5 ==== /usr/bin/libtool --mode=compile cc -static -c dummy.c|tee out5 cc -c dummy.c -o dummy.o ==== compile-mode-6 ==== /usr/bin/libtool --mode=compile cc -static -prefer-pic -c dummy.c|tee out6 cc -c dummy.c -fPIC -DPIC -o dummy.o ==== compile-mode-7 ==== /usr/bin/libtool --mode=compile cc -static -fpie -c dummy.c|tee out7 cc -c dummy.c -fpie -o dummy.o ==== compile-mode-8 ==== /usr/bin/libtool --mode=compile cc -static -prefer-pic -fpie -c dummy.c|tee out8 cc -c dummy.c -fPIC -DPIC -o dummy.o ==== compile-mode-9 ==== /usr/bin/libtool --mode=compile cc -shared -c dummy.c|tee out9 cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o ==== compile-mode-10 ==== /usr/bin/libtool --mode=compile cc -shared -prefer-non-pic -c dummy.c|tee out10 cc -c dummy.c -fPIC -DPIC -o .libs/dummy.o ==== compile-mode-11 ==== # -shared + -static -> static /usr/bin/libtool --mode=compile cc -shared -static -c dummy.c|tee out11 cc -c dummy.c -o dummy.o ==== compile-mode-12 ==== # -shared + -static -> static /usr/bin/libtool --mode=compile cc -shared -static -prefer-pic -c dummy.c|tee out12 cc -c dummy.c -fPIC -DPIC -o dummy.o ==== compile-mode-13 ==== # -static + -shared -> configuration error if /usr/bin/libtool --mode=compile cc -static -shared -c dummy.c; then exit 1; fi bad configuration: can't build shared library at /usr/libdata/perl5/LT/Util.pm line 37. ==== prefer-static ==== /usr/bin/libtool --mode=compile --tag=disable-shared --tag=disable-static cc -c -o dummy2.lo dummy2.c cc -c dummy2.c -o dummy2.o if fgrep -q .libs/dummy2.o dummy2.lo; then exit 1; fi ==== linkception-0 ==== # check that linking with libX11 works, which is funny to do # since -lX11 brings in -lxcb, BUT -lxcb wants some other stuff # afterwards ! /usr/bin/libtool --mode=link cc -o e -L/usr/X11R6/lib e.lo -lX11 libtool: link: cc -o e e.o -L.libs -lX11 -lxcb -Wl,-rpath-link,/usr/X11R6/lib ==== release-0 ==== liba9_ltversion=4.2 liba__b_weird_ltversion=5.6 /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o liba3.la -version-info 0:0:0 -rpath /usr/local/lib -release 0 a.lo b.lo libtool: link: cc -shared -fPIC -DPIC -o .libs/liba3-0.so.0.0 -O2 -pipe -MD -MP .libs/a.o .libs/b.o -Wl,-soname,liba3-0.so.0.0 libtool: link: ar cru .libs/liba3.a a.o b.o libtool: link: ranlib .libs/liba3.a test -f .libs/liba3-0.so.0.0 || exit 1 ==== release-1 ==== mkdir -p /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib /usr/bin/libtool --mode=install cp liba3.la /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba3.la libtool: install: cp ./.libs/liba3.a /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba3.a libtool: install: cp ./.libs/liba3-0.so.0.0 /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba3-0.so.0.0 libtool: install: cp ./.libs/liba3.lai /usr/src/regress/usr.bin/libtool/obj/dest/usr/local/lib/liba3.la ==== trip-0 ==== rm -f .libs/libtrip.so.10.5 mkdir -p lib1 cc -shared -o lib1/libtrip.so.10.5 dummy.c cc -shared -o lib1/libtrip.so.10.10 dummy.c /usr/bin/libtool --mode=link cc -o libbogus.la -Llib1 -version-info 0:0:0 -rpath /usr/local/lib a.lo b.lo -ltrip libtool: link: cc -shared -fPIC -DPIC -o .libs/libbogus.so.0.0 .libs/a.o .libs/b.o -L.libs -ltrip -Wl,-soname,libbogus.so.0.0 libtool: link: ar cru .libs/libbogus.a a.o b.o libtool: link: ranlib .libs/libbogus.a if test -e .libs/libtrip.so.10.5; then exit 1; fi ==== error-0 ==== # regress target error-0 is know to fail DISABLED ==== test-all-static ==== /usr/bin/libtool --mode=link cc -O2 -pipe -MD -MP -o s1 c.lo -la -all-static libtool: link: cc -o .libs/s1 -O2 -pipe -MD -MP c.o -L.libs -la -Wl,-rpath-link,/usr/local/lib # regress target test-all-static is know to fail DISABLED PASS usr.bin/libtool Duration 0m41.32s