Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2003 15:39:51 +0100
From:      Jens Rehsack <rehsack@liwing.de>
To:        "Paul A. Howes" <freebsd-ports@fair-ware.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Sablotron/PHP4 build error...
Message-ID:  <3E5B8037.90901@liwing.de>
References:  <001c01c2dccb$a2a52940$0200a8c0@howesnet>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <rehsack@liwing.de>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E5B8037.90901>