I tried to build a simple shared object on Solaris 8 as follows. There's nothing remotely complex in mylib.cpp
g++ -fPIC -shared -o mylib.so mylib.cpp
and got several error messages all of the same form, as follows.
/opt/gnu/bin/ld: fde encoding in /var/tmp//ccJnUCJ3.o(.eh_frame) prevents .eh_frame_hdr table being created
What do I need to do to get the build to work?