Subject: 1.6U gcc3/galeon libgcc_s.so (buildlink issue?)
To: Frederick Bruckman <fredb@immanent.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 07/01/2003 14:56:30
	Trying to build galeon on 1.6U using a gcc3 compiled with
	--enable-threads fails on a config test due to it not picking
	up libgcc_s.so:

gcc -o conftest  -O2 -march=pentium4 -O3 -ffast-math -pipe -I/usr/pkg/include -I/usr/X11R6/include -I/usr/pkg/include/mozilla  -I/usr/pkg/include/libglade-1.0 -I/usr/pkg/include/gdk-pixbuf-1.0  -I/usr/pkg/include -I/usr/X11R6/include  -Wl,-R/usr/pkg/lib/mozilla -Wl,-E -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/pkg/lib/mozilla -lnspr4 -lplc4 -lplds4 -lgtkembedmoz -lxpcom -lgtksuperwin conftest.c -lgtkembedmoz   -lintl >&5
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_GetIP'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume_or_Rethrow'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_GetRegionStart'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_DeleteException'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_RaiseException'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_SetIP'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_GetTextRelBase'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_SetGR'
/usr/pkg/gcc-3.3/lib/libstdc++.so.5: undefined reference to `_Unwind_GetDataRelBase'

	Editing .buildlink/bin/gcc and adding -lgcc_s to the end of
	the arguments works around the problem.

# ldd /usr/pkg/gcc-3.3/lib/libstdc++.so.5
/usr/pkg/gcc-3.3/lib/libstdc++.so.5:
         -lm.0 => /usr/lib/libm387.so.0
	 -lm.0 => /usr/lib/libm.so.0

	Is the problem that libstdc++.so is missing its dependency on
	libgcc_s.so?

-- 
		David/absolute          -- www.netbsd.org: No hype required --