|
In computing, DLL hell is a phrase for complications which arise when working with dynamic link libraries, or DLLs. Originally, the word computing was synonymous with counting and calculating, and a science and technology that deals with the original sense of computing mathematical calculations. ...
In computer science, a library is a collection of subprograms used to develop software. ...
DLL hell encompasses the difficulties of managing dynamic-link libraries (DLLs) in Microsoft Windows operating systems. These difficulties include conflicts between DLL versions, difficulty in obtaining required DLLs, and having many unnecessary DLL copies. Microsoft Windows is a family of operating systems by Microsoft. ...
To meet Wikipedias quality standards, this article or section may require cleanup. ...
Problems There are a number of problems commonly encountered with DLLs – especially after numerous applications have been installed and uninstalled on a system. The most common and troublesome problem was overwriting a working system DLL with a version causing some applications to fail. The DLL overwriting problem (referred to as DLL Stomping inside Microsoft) was largely solved with Windows File Protection (WFP) [1] that was introduced in Windows 2000. Before WFP, DLL incompatibility was possible for the following reasons: Windows 2000 (also referred to as Win2K or W2K) is a preemptible and interruptible, graphical, business-oriented operating system that is designed to work with either uniprocessor or symmetric multi-processor (SMP) 32-bit Intel x86 computers. ...
- The lack of enforced standard versioning, naming, and file system location schema for DLLs.
- The lack of an enforced standard method for software installation.
- The lack of a centralized authoritative support for DLL Application Binary Interface management and safeguards allowed incompatible DLLs with the same file name and internal version numbers to be released; and
- The lack of simple management tools prevents the identification of changed or problematic DLLs by users and administrators.
Some preventive measures such as Side-by-Side Component Sharing[2] create redundant copies of DLLs, each to be loaded separately for each application that requires them – effectively eliminating one of the primary benefits of sharing DLLs between applications – reducing memory use. Other benefits such as bug fixes and security updates may be affected, and errant and insecure DLLs may not be updated during automated processes. In computer software, an application binary interface (ABI) describes the low-level interface between an application program and the operating system, between an application and its libraries, or between component parts of the application. ...
Instances DLL hell as described above was a very common phenomenon on pre-Windows 2000 versions of Microsoft operating systems, the primary cause being that the operating system did not restrict DLL installations. Application installers were expected to be good citizens and verify DLL version information before overwriting the existing system DLLs. Standard tools to simplify application deployment (which always involves shipping the dependent operating system DLLs) were provided by Microsoft and other 3rd party tools vendors. Microsoft even required application vendors to use a standard installer and have their installation program certified to work correctly, before being granted use of the Microsoft logo. The good citizen installer approach did not mitigate the problem, as the rise in popularity of the Internet provided more opportunities to obtain non-conforming applications. James Donald, in his 2003 paper titled Improved Portability of Shared Libraries[3] argued that DLL Hell is worse under Linux than Microsoft Windows. Several Linux distributions have had problems with software not packaged for the distribution when updating libraries, since the application programming interfaces of some Open Source libraries are prone to change between releases. When occurring in non-Windows environments, these problems are often referred to as dependency hell. However, it should not be confused with DLL hell, as DLL hell is a specific type of dependency hell. Linux (also known as GNU/Linux) is a Unix-like computer operating system. ...
A Linux distribution is a Unix-like operating system comprising the Linux kernel and other assorted free software/open-source software, and possibly proprietary software. ...
An application programmatic interface (API) is the interface that a computer system, library or application provides in order to allow requests for services to be made of it by other computer programs, and/or to allow data to be exchanged between them. ...
Dependency hell is a colloquial term for the frustration of some software users who have installed software packages which have dependencies on specific versions of other software packages. ...
A modern example of dependency hell on Microsoft Windows, Linux, and Mac OS X is the Gecko Runtime Engine or GRE used by Mozilla projects. Each product released from the Mozilla foundation includes its own version of the complete Gecko Runtime Engine, due to the volatile nature of the programming interfaces used. Thus, if a user installs Thunderbird, Firefox, and Sunbird, there will be three copies of GRE on the machine. These may or may not be compatible, depending on when the GRE source tree was forked. Some external projects like Epiphany depend on specific versions of the Mozilla Suite to use GRE, and break if a different version is installed; while others such as Nvu bring their own copy of GRE. Gecko is the open source web browser layout engine used in all Mozilla-branded software and its derivatives, including later Netscape releases. ...
Mozilla logo Mozilla Firefox is a computer term that has had many different uses, though all of them have been related to Netscape Communications Corporation and its related application software. ...
Mozilla Thunderbird is a free, cross-platform e-mail and news client developed by the Mozilla Foundation. ...
Mozilla Firefox is a free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers. ...
Mozilla Calendar was an open source calendar and personal information manager based on the open iCalendar standard. ...
In software engineering, a project fork or branch happens when a developer (or a group of them) takes a copy of source code from one software package and starts to independently develop a new package. ...
Epiphany is a web browser for the GNOME computer desktop. ...
Mozilla (a. ...
Nvu (pronounced N-view) is a WYSIWYG HTML editor, based on the Composer component of Mozilla Application Suite. ...
Countermeasures There are several countermeasures known to avoid DLL hell, which have to be used simultaneously for optimal results: - Registration-free COM: Windows XP introduced a new mode of COM object registration called "Registration-free COM" that was not well-publicized due to the simultaneous release of information related to .NET. This feature makes it possible for applications that need to install COM objects to store all the required COM registry information in the application's directory, instead of in the global registry, where strictly speaking if only a single application will ever use it is all that is needed. Thus, it provides a mechanism for multiple versions of the same DLL to be present at the same time as needed to cater for multiple applications (Microsoft calls this "Side-by-side Assemblies" [4]). DLL hell can be substantially avoided using Registration-free COM, the only limitation being it requires at least Windows XP or later Windows versions and that it must not be used for EXE COM servers or system-wide components such as MDAC, MSXML, DirectX or Internet Explorer.
- Shipping the operating system with a capable package management system that is able to track the DLL dependencies, encouraging the use of the package manager and discouraging manual installation of DLLs.
- Having a central authority for distributing the library. Changes to the library can be submitted to this authority; thus, it can make sure compatibility is preserved in the developed branches. If some older software is incompatible with the current library, the authority can provide a compatibility interface for it, or bundle the old version as a distinct package.
- If software developers need to customize a library, and if the main library release is unlikely to incorporate the changes that they need, they can ship the customized DLL for the program's private use (commonly by placing it in the program's private directory) or statically link the program against the customized library.
- Proper software design is paramount. DLLs are best for modularizing the system's components and as third-party libraries; their usage is not imperative in all cases. For example, if an application needs a library that will not be used anywhere else, it can be linked statically, with no space penalty and with a speed gain.
Windows XP is a line of operating systems developed by Microsoft for use on general-purpose computer systems, including home and business desktops, notebook computers, and media centers. ...
Windows XP is a line of operating systems developed by Microsoft for use on general-purpose computer systems, including home and business desktops, notebook computers, and media centers. ...
MDAC, or Microsoft Data Access Components is a Microsoft architecture for providing access to information across an enterprise. ...
Microsoft XML Core Services (MSXML) is a set of services that allow applications written in JScript, VBScript and Microsoft Visual Studio 6. ...
DirectX is a collection of APIs for easily handling tasks related to game programming on the Microsoft Windows operating system. ...
To meet Wikipedias quality standards, this article or section may require cleanup. ...
A package management system is a collection of tools to automate the process of installing, upgrading, configuring, and removing software packages from a computer. ...
DLL hell as motivation for .NET In February of 2002, Microsoft publicly unveiled the .NET Framework which included a new version of a package deployment system, called assemblies [5]. This framework also provided support for a common library runtime (essentially moving much DLL code to a base foundation class). This concept, along with file versioning, is often seen as one of the last operating system constructs that had failed to bridge the gap between OpenVMS and Windows NT, which shared a common operating systems architect. The Microsoft . ...
OpenVMS (Open Virtual Memory System or just VMS) is the name of a high-end computer server operating system that runs on the VAX and Alpha family of computers developed by Digital Equipment Corporation of Maynard, Massachusetts (now owned by Hewlett-Packard), and more recently on Hewlett-Packard systems built...
Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993. ...
The systems architect is responsible for: Interfacing with the user(s) and sponsor(s) and all other stakeholders in order to determine their (evolving) needs. ...
External links |