pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/58403: pkgsrc-2024Q2 misc/libreoffice build fails on NetBSD/amd64 10.0



The following reply was made to PR pkg/58403; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: pkg/58403: pkgsrc-2024Q2 misc/libreoffice build fails on NetBSD/amd64
	 10.0
Date: Sat, 6 Jul 2024 22:53:34 +0900

 > >/s/obj.x86_64/pkgsrc/misc/libreoffice/work.x86_64/.buildlink/lib/libboost_system.so, may conflict with libstdc++.so.7
 > 
 > That sounds like there is an older dependency package on the system
 > (libboost?) that was built against a different libstdc++ version.
 > 
 > pbulk produced:
 > 
 > -rw-r--r--  1 root  wheel  476141551 Apr  3 18:56 final-amd64-10.0-2024Q1/All/libreoffice-24.2.1.2.tgz
 > -rw-r--r--  1 root  wheel  476239131 Apr  2 04:18 final-amd64-9.0-2024Q1/All/libreoffice-24.2.1.2.tgz
 
 Hmm. The whole builds have been done after "pkg_delete -r '*'" so
 I believe there is no old stale package binaries.
 
 However this build host have been upgraded from NetBSD
 7.x -> 8.x -> 9.x -> 10.0 so it has follwoing old (compat)
 libstdc++ libraries in /usr/lib:
 
 ---
 optiplex# ls -l /usr/lib/libstdc++*
 -r--r--r--  1 root  wheel   5559482 Mar 28 17:33 /usr/lib/libstdc++.a
 lrwxr-xr-x  1 root  wheel        16 Mar 28 17:33 /usr/lib/libstdc++.so -> libstdc++.so.9.0
 lrwxr-xr-x  1 root  wheel        16 Mar 16  2018 /usr/lib/libstdc++.so.7 -> libstdc++.so.7.3
 -r--r--r--  1 root  wheel   1312257 Mar 16  2018 /usr/lib/libstdc++.so.7.3
 -r--r--r--  1 root  wheel   1459080 May 31  2019 /usr/lib/libstdc++.so.8.0
 lrwxr-xr-x  1 root  wheel        16 Mar 28 17:33 /usr/lib/libstdc++.so.9 -> libstdc++.so.9.0
 -r--r--r--  1 root  wheel   2497616 Mar 28 17:33 /usr/lib/libstdc++.so.9.0
 -r--r--r--  1 root  wheel   5774118 Mar 28 17:33 /usr/lib/libstdc++_p.a
 -r--r--r--  1 root  wheel  16877004 May 31  2019 /usr/lib/libstdc++_pic.a
 optiplex# 
 ---
 
 Note libboost_system.so (and all other /usr/pkg/lib/lib*.so.* libraries)
 links newer libstdc++.so.9 properly:
 ---
 optiplex# ldd /usr/pkg/lib/libboost_system.so.1.85.0 
 /usr/pkg/lib/libboost_system.so.1.85.0:
         -lstdc++.9 => /usr/lib/libstdc++.so.9
         -lm.0 => /usr/lib/libm.so.0
         -lc.12 => /usr/lib/libc.so.12
         -lgcc_s.1 => /usr/lib/libgcc_s.so.1
         -lpthread.1 => /usr/lib/libpthread.so.1
 optiplex# ldd /usr/pkg/lib/lib*.so.*.* | grep 'libstdc++.so.7' | wc -l
        0
 optiplex# ldd /usr/pkg/lib/lib*.so.*.* | grep 'libstdc++.so.9' | wc -l
      314
 optiplex# ldd /usr/pkg/bin/* 2> /dev/null | grep 'libstdc++.so.7' | wc -l
        0
 optiplex# ldd /usr/pkg/bin/* 2> /dev/null | grep 'libstdc++.so.9' | wc -l
      466
 optiplex# 
 ---
 
 How should I check which binaries link the old libstdc++.so.7?
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index