I can't compile and run multi-threaded applications.
Special compile-time flags are required when compiling threaded
applications on IRIX. If you are compiling a threaded application, you
must compile with the _SGI_MP_SOURCE flag:
cc -D_SGI_MP_SOURCE ...
The Berkeley DB library will automatically build with the correct options.