--enable-shared does not work with SunOS-4.1.4
Manfred.Hollstein@ks.sel.alcatel.de
Manfred.Hollstein@ks.sel.alcatel.de
Tue Feb 17 07:07:00 GMT 1998
On , 17 February 1998, 12:50:28, krinke@ips.cs.tu-bs.de wrote:
> Hi,
>
> under SunOS I am not able to use --enable-shared, as the build of
> libstdc++ fails:
>
> ...
> /usr/users/sts3/krinke/Src/egcs/gcc/xgcc -B/usr/users/sts3/krinke/Src/egcs/gcc/
> -g -O2 -fno-implicit-templates -shared -o libstdc++.so.2.8.0 `cat piclist`
> ld: pic/cstrio.o: assert pure-text failed: reference to ostream::flush(void)at f
> 4 in pic/cstrio.o
>
> ld: pic/cstrio.o: assert pure-text failed: reference to istream::_skip_ws(void)a
> t 11c in pic/cstrio.o
>
> ld: pic/cstrio.o: assert pure-text failed: reference to streambuf::sungetc(void)
> at 12c in pic/cstrio.o
> ...
> and around 10000 more lines of error messages.
>
> I have tried it with almost any `egcs-of-the-day' -- always the same.
>
This problem was in egcs until this patch:
Fri Feb 6 01:33:52 1998 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (BASE_FLAGS_TO_PASS): Don't pass PICFLAG and
PICFLAG_FOR_TARGET.
(EXTRA_TARGET_FLAGS): Don't pass PICFLAG_FOR_TARGET.
* configure: Emit a definition for the new macro enable_shared
into each Makefile.
* config/mh-sparcpic (PICFLAG): Define to properly according
to current multilib configuration.
* config/mt-sparcpic (PICFLAG_FOR_TARGET): Define to properly
according to current multilib configuration.
Unfortunately, the hunk for Makefile.in wasn't actually applied, only
mentioned in the ChangeLog :-(
Yesterday I added a patch which finally fixes this:
Mon Feb 16 12:23:53 1998 Manfred Hollstein <Manfred.Hollstein@ks.sel.alcatel.de>
* Makefile.in (BASE_FLAGS_TO_PASS, EXTRA_TARGET_FLAGS): Really add
this change to sync Makefile.in with its ChangeLog entries.
If you have CVS access you should update; if not try the appended
patch, please. If it then still fails, please contact me, because the
problem you are seeing was the reason why I wrote this patch.
Thanks
Manfred Hollstein
diff --context --recursive --show-c-function -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-980214.orig/Makefile.in egcs-980214/Makefile.in
*** egcs-980214.orig/Makefile.in Sun Feb 1 02:41:23 1998
--- egcs-980214/Makefile.in Sun Feb 15 10:42:55 1998
*************** BASE_FLAGS_TO_PASS = \
*** 344,351 ****
"MAKE=$(MAKE)" \
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
- "PICFLAG=$(PICFLAG)" \
- "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
"SHELL=$(SHELL)" \
"EXPECT=$(EXPECT)" \
--- 344,349 ----
*************** EXTRA_TARGET_FLAGS = \
*** 402,408 ****
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
'NM=$$(NM_FOR_TARGET)' \
- 'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
'RANLIB=$$(RANLIB_FOR_TARGET)' \
'WINDRES=$$(WINDRES_FOR_TARGET)'
--- 400,405 ----
More information about the Gcc-bugs
mailing list