Hello all,

I was recently attempting to build the sasl package using the 'with_sasldb' option on a solaris 10 system. I noticed however that configure was failing to find a working Berkeley DB library even though the db package was installed. (This is with OpenPKG 2.3-SOLID)

It would appear that Berkeley DB has recently begun using the 'fdatasync' library function. On solaris this exists only within the realtime library (librt).

Thus anything using Berkeley DB will require to be linked against librt on solaris. I've validated this by adding -lrt to the LIBS environment variable for the sasl build. This resulted in the sasldb functionality being present in the final package (as shown by saslpasswd2 and sasldblistusers2 being built).

Off the top of my head, I can think of two ways to fix this; Either by adding librt to all the packages which build against db, or by fixing the berkeley DB package not to use fdatasync under solaris.

What do you folks think would be preferable? Of course, I could be heading up the wrong garden path.

-djb

(hi ralf! :)
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to