public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98316] New: [11 regression] cc1plus doesn't link on Solaris 11.3
@ 2020-12-16 10:11 ro at gcc dot gnu.org
  2020-12-16 10:12 ` [Bug c++/98316] " ro at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ro at gcc dot gnu.org @ 2020-12-16 10:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98316

            Bug ID: 98316
           Summary: [11 regression] cc1plus doesn't link on Solaris 11.3
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: nathan at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

Even with PR c++/98315 hacked around, Solaris 11.3 (only) bootstrap is still
broken:

Undefined                       first referenced
 symbol                             in file
__xnet_connect                      ../libcody/libcody.a(netclient.o)
__xnet_socket                       ../libcody/libcody.a(netclient.o)
__xnet_getaddrinfo                  ../libcody/libcody.a(netclient.o)
freeaddrinfo                        ../libcody/libcody.a(netclient.o)
gai_strerror                        ../libcody/libcody.a(netclient.o)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
make[3]: *** [/vol/gcc/src/hg/master/local/gcc/cp/Make-lang.in:136: cc1plus]
Error 1

Before Solaris 11.4 folded libsocket and libnsl into libc, one needed to link
with both for the socket functions.  The same issue exists with the other use
of $(LIBCODY) in c++tools/Makefile.in.

We already have 4 instances of the libsocket/libnsl check in the tree:

  gotools/configure.ac
  libcc1/configure.ac
  libgo/configure.ac
  libphobos/m4/druntime/libraries.m4

Instead of adding yet two others, we could make use of the autoconf-archive's
m4/ax_lib_socket_nsl.m4 (AX_LIB_SOCKET_NSL).

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-01-05 13:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 10:11 [Bug c++/98316] New: [11 regression] cc1plus doesn't link on Solaris 11.3 ro at gcc dot gnu.org
2020-12-16 10:12 ` [Bug c++/98316] " ro at gcc dot gnu.org
2020-12-16 10:19 ` ro at CeBiTec dot Uni-Bielefeld.DE
2020-12-16 12:59 ` nathan at gcc dot gnu.org
2020-12-16 13:19 ` ro at gcc dot gnu.org
2020-12-16 14:24 ` nathan at gcc dot gnu.org
2020-12-16 14:32 ` ro at gcc dot gnu.org
2020-12-17 12:23 ` ro at gcc dot gnu.org
2021-01-04 15:28 ` rguenth at gcc dot gnu.org
2021-01-05 10:32 ` cvs-commit at gcc dot gnu.org
2021-01-05 10:33 ` ro at gcc dot gnu.org
2021-01-05 13:37 ` nathan at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).