From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D8DE43857036; Wed, 16 Dec 2020 10:11:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8DE43857036 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98316] New: [11 regression] cc1plus doesn't link on Solaris 11.3 Date: Wed, 16 Dec 2020 10:11:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 10:11:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98316 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 li= nk with both for the socket functions. The same issue exists with the other u= se 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).=