Shared C++ libs on i386-pc-solaris2.5.1
James Macnicol
J.Macnicol@student.anu.edu.au
Sun Sep 7 05:42:00 GMT 1997
> Has anyone managed to build egcs under Solaris x86 2.5.1?
> I cannot get any shared C++ libraries to link (including the
> libstdc++.so that is built as part of the distribution -- see below),
>
>Looks like this is a bug in the gcc x86/solaris support. The shared library
>support is not completely correct (a common problem). I do not have access
>to such a system, so I can't be sure what the correct fix is. However, just
>comparing against the sparc/solaris support, I am guessing that libgcc.a was
>not compiled PIC.
>
>Does this patch solve your problem?
Sure does. Thanks!
I have now successfully built egcs 970904 on Solaris x86 2.5.1. Some
comments/observations I have are :
- I had problems with compiling a certain file in my current project
since the machine would start thrashing and eventually say "virtual
memory
exhausted". I traced it to a C++ header file which had an inline member
function; moving that out of the header and into the implementation
solved
the problem. On a better note, this project now builds without the
internal
compiler errors it has with gcc 2.7.2.2.
- Doing make -j4 MAKE="make -j4" for the egcs build (i.e. a parallel
build)
still causes problems although it seems better than the previous
releases I
tried to build.
- Tcl 8.0 will not build with egcs-970904 since "__ctype" is not found
by
the linker. Tcl 8.0 compiles fine with gcc 2.7.2.2.
Thanks.
James
--
James Macnicol
J.Macnicol@student.anu.edu.au
http://goblet.anu.edu.au/~m9305357/home.html
More information about the Gcc
mailing list