Interesting problems

rafael on 2004-05-12T17:23:25

The Mandrakelinux bug #9127 is a tricky problem. The apache shipped with Mandrakelinux is built with the version 3 of the Berkeley DB. On the other hand, the DB_File perl module is built with version 4. So what happens when one tries to load DB_File in mod_perl with this apache? Yes, DB_File croaks with an error message saying that it needs compatible versions of libdb and db.h. So currently we have a rather severe incompatibility between perl and mod_perl on Mandrakelinux (the development version).

At this point we have several options:

  • Rebuild apache with db 4
  • Rebuild DB_File with db 3
  • Rebuild DB_File or apache with a statically linked libdb. That's ugly.

Of course, the main problem with a major upgrade of the Berkeley DB used by an application is that it can break some code written by users using this application, or mess up their data. I need to investigate what's the proper way to handle this kind of upgrades and how it has been done in the past.