From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 3 19:00:54 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A5F16A4F0 for ; Fri, 3 Dec 2004 19:00:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2879143D53 for ; Fri, 3 Dec 2004 19:00:54 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB3J0rQQ043022 for ; Fri, 3 Dec 2004 19:00:53 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB3J0rfh043021; Fri, 3 Dec 2004 19:00:53 GMT (envelope-from gnats) Date: Fri, 3 Dec 2004 19:00:53 GMT Message-Id: <200412031900.iB3J0rfh043021@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Thierry Thomas Subject: Re: gnu/74654: libsupc++.a lacks necessary functions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thierry Thomas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 19:00:54 -0000 The following reply was made to PR gnu/74654; it has been noted by GNATS. From: Thierry Thomas 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 déc 04 à 17:03:06 +0100, Andrey Sverdlichenko é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.