tcpdump mailing list archives

Re: build failures on Solaris


From: Dagobert Michelsen via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Tue, 3 Aug 2021 12:35:59 +0200

--- Begin Message --- From: Dagobert Michelsen <dam () opencsw org>
Date: Tue, 3 Aug 2021 12:35:59 +0200
Hi Guy,

Am 03.08.2021 um 09:26 schrieb Guy Harris <gharris () sonic net>:
On Aug 3, 2021, at 12:07 AM, Dagobert Michelsen <dam () opencsw org> wrote:

The /64 suffix in bin/ and lib/ is a symlink to the respective architecture
and simplifies cross-platform build between Sparc and x86.

For whatever reason, /usr/bin/64 isn't present on my Solaris 11.3 (x86-64) VM:

      solaris11$ ls /usr/bin/64
      /usr/bin/64: No such file or directory
      solaris11$ uname -a
      SunOS solaris11 5.11 11.3 i86pc i386 i86pc

The same is true of the directory containing the installed-from-IPS gcc:

      solaris11$ which gcc
      /usr/ccs/bin/gcc
      solaris11$ ls /usr/ccs/bin/64
      /usr/ccs/bin/64: No such file or directory

and Sun/Oracle C:

      solaris11$ which cc
      /opt/developerstudio12.5/bin/cc
      solaris11$ ls /opt/developerstudio12.5/bin/64/cc
      /opt/developerstudio12.5/bin/64/cc: No such file or directory

Sun/Oracle don't appear to have made as vigorous an effort to make this work as OpenCSW have.

The reason is probably that it is usually not important if you use the 32 or 64 bit
binary - you just want the one that is suitable which was historically done by
hardlinking the name to isaexec searching to ISAs from most to least optimal
or linker ISA features nowadays. This is obviously not the case for *-config
where you want exactly 32 or 64 bit depending on your build ISA. To make things
worse Solaris 11 has a mixture of 32 and 64 bit binaries in /bin, but again which
most of the time does not make a difference.


Best regards

  — Dago


-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896


--- End Message ---
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: