Subject: using older gcc
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 06/07/2005 16:19:15
--kORqDWCi7qDJ0mEj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I have a package that I'd like to compile using gcc-2.95.3.  All of the
dependencies are compiled using the native gcc (ie 3.3.3).  If I build
and install gcc-2.95 and then set CC (et al) to point to it, I run into
problems with C++:

configure:10652: g++ -o conftest  -I/usr/X11R6/include  -Wall  -g
-I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/include
-I/usr/pkg/include/freetype2 -w  -Wl,-rpath -Wl,/usr/X11R6/lib
-L/usr/X11R6/lib  -g  -pthread -lX11 -Wl,-R/SCIRun/lib
-L/usr/pkg/gcc-2.95.3/lib/gcc-lib/i386--netbsdelf/2.95.3
-Wl,-R/usr/pkg/gcc-2.95.3/lib/gcc-lib/i386--netbsdelf/2.95.3
-L/usr/pkg/gcc-2.95.3/lib -Wl,-R/usr/pkg/gcc-2.95.3/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib conftest.cc  -lGLU -lGL
-lintl >&5
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetIP'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume_or_Rethrow'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetRegionStart'
/usr/pkgobj/graphics/scirun/work.i386/.x11-buildlink/lib/libGLU.so:
undefined re ference to `_Unwind_Resume'=20
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_DeleteException'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_RaiseException'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_SetIP'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetTextRelBase'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetLanguageSpecifi=
cData
'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_SetGR'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetDataRelBase'
collect2: ld returned 1 exit status

Is there any way I can build this package using gcc-2.95.3 without
having to rebuild all the dependencies with gcc-2.95.3 as well?

-Jan

--=20
http://www.netbsd.org -
         Multiarchitecture OS, no hype required.

--kORqDWCi7qDJ0mEj
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFCpgFDfFtkr68iakwRAtg4AKCDy/bU48E5IuW72SlleNyIAS8+oQCgplC/
QIJfQ/Noe9XIO724sYlb8Hg=
=BkbE
-----END PGP SIGNATURE-----

--kORqDWCi7qDJ0mEj--