From owner-freebsd-ports Tue Feb 25 6:39:57 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2665237B401 for ; Tue, 25 Feb 2003 06:39:56 -0800 (PST) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93C0C43FDD for ; Tue, 25 Feb 2003 06:39:54 -0800 (PST) (envelope-from rehsack@liwing.de) Received: (qmail 76035 invoked from network); 25 Feb 2003 14:39:52 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 25 Feb 2003 14:39:52 -0000 Message-ID: <3E5B8037.90901@liwing.de> Date: Tue, 25 Feb 2003 15:39:51 +0100 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Paul A. Howes" Cc: freebsd-ports@freebsd.org Subject: Re: Sablotron/PHP4 build error... References: <001c01c2dccb$a2a52940$0200a8c0@howesnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Paul A. Howes wrote: > All, > > I updated mod_php4 to 4.3.1 last night and ran into a linker problem. > It seems that the Sablotron XSL shared library does not link against > libstdc++.so by default. There is a PR (45759) against this problem > that dates back to November 2002. There are a few other, related, PRs > in the system that reference both Sablotron and mod_php4. One of the > PRs blamed the cause on a breakage in one of the GCC vendor imports, but > I do not have trouble building other C++ intensive software, such as Qt, > KDE, etc. Hi Paul, other c++ intensive software didn't break, because they're using c++ even for linking. Compiling www/mod_php4 fails, because php is c source which uses cc for compiling and linking. The error that c++ libraries didn't link against c programs without adding the libc++ is at least as old as I can think developing with unix. In my lessons on university it was the same with solaris (I made homework using watcom c++ and rewrote the makefile on solaris, but using cc as link command - using either c++ as link command or adding -lstdc++ fixed it). > I do not mind adding an explicit "-lstdc++" to the Sablotron build, but > I cannot be the only person experiencing this issue. Is this something > that will be fixed in the near future? No, it couldn't be fixed (as far as I know), because link stdc++ it an implicit dependency of c++, but not of cc. Adding explicit dependency does not has any effect while linking with c++ but fixes the missing calls in cc links. So long, Jens -- L i W W W i Jens Rehsack L W W W L i W W W W i nnn gggg LiWing IT-Services L i W W W W i n n g g LLLL i W W i n n g g Friesenstraße 2 gggg 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91 ggg e-Mail: Fax: +49 - 3 45 - 5 17 05 92 http://www.liwing.de/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message