HI Stuart, Thanks for your reply!
I don't set PKG_PATH environment. Yes, it seems I installed the current package: $ ls -l /usr/local/bin/egdb -rwxr-xr-x 1 root bin 10040410 Jun 28 19:03 /usr/local/bin/egdb But I can't remember what I have done. I can only remember I modified /etc/installurl before. Thanks! Best Regards Nan Xiao On Sat, Jul 7, 2018 at 8:23 PM, Stuart Henderson <s...@spacehopper.org> wrote: > On 2018-07-07, Nan Xiao <xiaonan830...@gmail.com> wrote: >> Hi Philip, >> >> Thanks very much for your time and effort! >> >> The following is the command output: >> >> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}' >> 88.4844 >> >> The same as yours. > > That is from -current. > >> Honestly, I am not sure whether the package is for -stable or -current. >> >> After installation, I just add following config in /etc/installurl: >> $ cat /etc/installurl >> https://ftp.openbsd.org/pub/OpenBSD >> >> Then I use "pkg_add -u" sometimes. Doesn't >> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct >> packages? Or I miss something? > > Do you have PKG_PATH set in the environment? > > Whatever the reason, it looks like you have a -current version of the > gdb package installed. > > The one in 6.3 should look like this: > > $ ls -l /usr/local/bin/egdb > -rwxr-xr-x 1 root bin 9452688 Mar 28 00:40 /usr/local/bin/egdb > > $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}' > 0.0078125 > >