Index > Community > FAQ > Building FAQs > Solaris Platform > Errors from libstd++.la on Solaris 10 using the GNU Compiler
On Solaris 10 the libstdc++.la file is empty which causes the build to fail. In order to fix this you must fill in the libstdc++.la file with the correct information. There are two versions, one for 32 bit and one for 64 bit. The following listings show the correct contents of these files respectively.
From Sun Forums
/usr/sfw/lib/libstdc++.la
dlname=‘libstdc++.so.6’
library_names=‘libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’
old_library=‘libstdc++.a’
dependency_libs=‘-lc -lm -L/usr/sfw/lib -lgcc_s’
current=6 age=0 revision=3
installed=yes
dlopen='' dlpreopen=''
libdir=‘/usr/sfw/lib’
/usr/sfw/lib/64/libstdc++.la
dlname=‘libstdc++.so.6’
library_names=‘libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’
old_library=‘libstdc++.a’
dependency_libs=‘-L/lib/64 -lc -lm -L/usr/sfw/lib/64 -lgcc_s’
current=6 age=0 revision=3
installed=yes
dlopen='' dlpreopen=''
libdir=‘/usr/sfw/lib/64’
Note that this doesn‘t seem to get us all the way. For some reason the shared library dependencies can’t seem to all be resolved so you must build only static libraries. This can be accomplished by passing the following to the configure script.
./configure --enable-shared=no