From nobody@FreeBSD.org  Fri Dec  3 16:03:07 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AE02416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Dec 2004 16:03:07 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8830743D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Dec 2004 16:03:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iB3G36dB065954
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 3 Dec 2004 16:03:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iB3G36Tx065952;
	Fri, 3 Dec 2004 16:03:06 GMT
	(envelope-from nobody)
Message-Id: <200412031603.iB3G36Tx065952@www.freebsd.org>
Date: Fri, 3 Dec 2004 16:03:06 GMT
From: Andrey Sverdlichenko <fbsd@rudy.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libsupc++.a lacks necessary functions
X-Send-Pr-Version: www-2.3

>Number:         74654
>Category:       gnu
>Synopsis:       libsupc++.a lacks necessary functions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 03 16:10:29 GMT 2004
>Closed-Date:    
>Last-Modified:  Fri Dec  3 19:00:48 GMT 2004
>Originator:     Andrey Sverdlichenko
>Release:        5.3-RELEASE
>Organization:
>Environment:
FreeBSD xen.infosec.ru 5.3-RELEASE FreeBSD 5.3-RELEASE #4: Wed Nov 17 12:54:44 MSK 2004     root@xen.infosec.ru:/usr/src/sys/i386/compile/XEN  i386
>Description:
When compiling C++ programs with non-standard STL library (STLPort), there are some unresolved references.
>How-To-Repeat:
Try to compile any C++ program using exceptions with STLPort and -lsupc++
>Fix:
Add eh_term_handler.cc, eh_unex_handler.cc, vterminate.cc to gnu/lib/libsupc++/Makefile
>Release-Note:
>Audit-Trail:

From: Thierry Thomas <thierry@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: gnu/74654: libsupc++.a lacks necessary functions
Date: Fri, 3 Dec 2004 19:49:20 +0100

 Le Ven  3 dc 04  17:03:06 +0100, Andrey Sverdlichenko <fbsd@rudy.ru>
  crivait:
 > 
 > >Number:         74654
 > >Category:       gnu
 > >Synopsis:       libsupc++.a lacks necessary functions
 
 8<   8<   8<
 
 > >Description:
 > When compiling C++ programs with non-standard STL library (STLPort), there are some unresolved references.
 
 Another problem with libsupc++.a, if someone takes care: it is not PIC
 safe, and ports trying to build shared objects with it fail.
 
 E.g. see the logs of rxvt-unicode / amd64 on pointyhat:
 
 > /bin/sh /usr/local/bin/libtool15 --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H  -D_GNU_SOURCE
 +-D_XOPEN_SOURCE  -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include/freetype2
 +-I/usr/local/include -O -pipe  -I/usr/X11R6/include -I/usr/local/include/freetype2
 +-I/usr/local/include -DDEBUG_STRICT  -I/usr/X11R6/include -I.. -I. -I. -c iom.C
 >  c++ -DHAVE_CONFIG_H -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -I/usr/X11R6/include
 +-I/usr/local/include/freetype2 -I/usr/local/include -O -pipe -I/usr/X11R6/include
 +-I/usr/local/include/freetype2 -I/usr/local/include -DDEBUG_STRICT -I/usr/X11R6/include -I.. -I.
 +-I. -c iom.C  -fPIC -DPIC -o .libs/iom.o
 >  c++ -DHAVE_CONFIG_H -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -I/usr/X11R6/include
 +-I/usr/local/include/freetype2 -I/usr/local/include -O -pipe -I/usr/X11R6/include
 +-I/usr/local/include/freetype2 -I/usr/local/include -DDEBUG_STRICT -I/usr/X11R6/include -I.. -I.
 +-I. -c iom.C -o iom.o >/dev/null 2>&1
 > /bin/sh /usr/local/bin/libtool15 --tag=CXX --mode=link cc -O -pipe  -I/usr/X11R6/include
 +-I/usr/local/include/freetype2 -I/usr/local/include  -rpath /usr/X11R6/lib -version-info 4:0:0
 +command.lo rxvtfont.lo init.lo logging.lo  main.lo menubar.lo misc.lo netdisp.lo ptytty.lo
 +screen.lo  scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo scrollbar-plain.lo
 +strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvttoolkit.lo rxvtutil.lo iom.lo -lXft -lutil
 +-lstdc++ -lsupc++ -lxpg4 -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11
 +-lXext -lfontconfig -o librxvt.la
 > c++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o  .libs/command.o .libs/rxvtfont.o
 +.libs/init.o .libs/logging.o .libs/main.o .libs/menubar.o .libs/misc.o .libs/netdisp.o
 +.libs/ptytty.o .libs/screen.o .libs/scrollbar.o .libs/scrollbar-next.o .libs/scrollbar-rxvt.o
 +.libs/scrollbar-xterm.o .libs/scrollbar-plain.o .libs/strings.o .libs/xdefaults.o .libs/xpm.o
 +.libs/encoding.o .libs/rxvt.o .libs/rxvttoolkit.o .libs/rxvtutil.o .libs/iom.o  -lutil -lsupc++
 +-lxpg4 -L/usr/X11R6/lib -L/usr/local/lib -lXft -lfreetype -lz -lXrender -lX11 -lXext -lfontconfig
 +-L/usr/lib -lstdc++ -lm -lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o  -Wl,-soname -Wl,librxvt.so.4
 +-o .libs/librxvt.so.4
 > /usr/bin/ld: /usr/lib/libsupc++.a(pure.o): relocation R_X86_64_32 can not be used when making a
 +shared object; recompile with -fPIC
 > /usr/lib/libsupc++.a: could not read symbols: Bad value
 > *** Error code 1
 
 Regards,
 -- 
 Th. Thomas.
>Unformatted:
