Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2004 19:00:53 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: gnu/74654: libsupc++.a lacks necessary functions
Message-ID:  <200412031900.iB3J0rfh043021@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/74654; it has been noted by GNATS.

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 déc 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.



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