About InfoWorld : Advertise : Subscribe : Contact Us : Awards : Events : Store
InfoWorld HomeNewsTest CenterOpinionsProduct GuideTechIndex
 COLUMN ARCHIVE  FORUMS
 

COLUMN

 
The Open Source
Nicholas Petreley

The Linux Development Platform Specification 1.0 is essentially a waste of time

AFTER THREE YEARS of hibernation, LSB has finally produced a deliverable. It is called the Linux Development Platform Specification or LDPS Version 1.0. According to the LDPS 1.0 document, "This specification is designed so that programs developed on a conforming platform are expected to be portable to all generally available Linux distributions as of Oct. 7, 2000."

   ADVERTISEMENT
  

Free IT resource

Open Source Business Conference (OSBC) May 22-23, 2007

Sponsored by OSBC

Free IT resource

TechNet: More ways to know it, share it, and keep it running.

Sponsored by Microsoft

RELATED LINKS
»  Canonical chases deals to ship Ubuntu Server preinstalled
»  Sun delivers first UltraSparc T2-based servers
»  IT trainer offers master's degree for hackers
»  Platforms RSS feed 

IDG ENTERPRISE NETWORK
More Operating Systems News...  (ComputerWorld)
CrossOver Office aims to ease a switch to Linux  (ComputerWorld)

TOP NEWS 


IT SOLUTION SEARCH
Does it meet this goal? Not at all. Let me illustrate through one example: ncurses. The ncurses library provides programmers with a common way to write sophisticated character-mode applications.

In order to be LDPS 1.0 compliant, a distribution must include either ncurses version 4.2 or ncurses version 5.0.

The specification states that applications compiled for one version should run without modifications on the other with some exceptions. Then the specification goes on to list some of those exceptions.

By admitting the exceptions, LDPS 1.0 makes it clear that you can't compile your application for one library version and expect it to run properly without first making sure you haven't used some feature that would cause incompatibilities.

Since the LDPS 1.0 document does not attempt to detail all of the possible incompatibilities, you're basically on your own.

One doesn't need to go any further to conclude that LDPS 1.0 is meaningless with regard to ncurses. Yet it gets worse.

The LDPS document indicates that the following distributions, among others, are LDPS 1.0 compliant: Caldera 2.4, Debian 2.2, Mandrake 7.0, and Red Hat 6.2.

Caldera 2.4 includes ncurses 4.2 and puts the library in the directory /lib. Debian 2.2 seems to have both ncurses 4.2 and ncurses 5.0, and also puts the libraries in the /lib directory.

I don't have a copy of Mandrake 7.0 to check, but Mandrake 7.1 includes several versions of ncurses, including both 4.2 and 5.0. All the libraries go in /usr/lib. Red Hat 6.2 includes a package that is labeled as ncurses 5.0, but if you examine the contents of the package, you will only find libraries for ncurses 4.0.

As far as I can tell, Red Hat does not even create symbolic links to give the impression that ncurses 5.0 libraries are installed. I assume this is a packaging error that may be fixed by an update to 6.2. The 4.0 libraries are installed in the directory /usr/lib.

If your application expects to find the library named libncurses.so.4.2, then it will only run on Caldera and Debian. If it expects to find libncurses.so.4, it will only run on Debian or Mandrake. If it expects to find libncurses.so.4.0, then it will run on Red Hat or Mandrake. If it expects to find libncurses.so.5 then it will only run on Debian or Mandrake.

It is not difficult to modify the above distributions to accommodate all the variations on ncurses 4.2 and 5.0, but this is how you can expect the distributions to behave "out of the box."

LDPS does nothing to encourage distributions to take the simple steps necessary to fix the problem. LSB is simply kow-towing to existing distributions with this specification when it should be pushing distributions to become more compatible. As I have said before, LSB needs more guts than that.

As for ncurses, here is one way the problem of incompatibility could be solved effectively. Require all distributions to produce updates that install both ncurses 4.2 and 5.0, and create the symbolic links necessary to provide every possible library name an application may expect to find.

Then LSB should award the recognition of compliance only to those distributions willing to produce the updates. Then and only then can you use LDPS as a reliable guideline for compatibility.

Granted, developers should be able to expect people to apply updates for their applications in order for them to work. But this is no different than when an application requires service pack 4 or later in order to run on Windows NT 4.0.

Surely if Linux expects to compete with Windows NT, it can work within the same framework as Windows NT.


Nick is the founding editor of LinuxWorld ( www.linuxworld.com ). Reach him at nicholas@petreley.com.




RELATED SUBJECTS

Operating Systems
Software Development
Web Technologies

Discuss this article in our online forums

MORE >


SPONSORED WHITE PAPERS
EMC - Lower costs and improve reliability-Get the EMC CLARiiON white paper!
Ciphertrust - Are you ready for Sobig.G? Learn how to protect your email systems.
CDW - Personal attention. CDW. The Right Technology. Right Away.
EMC - Explore key performance features and capabilities of EMC ControlCenter 5.1.1.
Intel - Free Intel white paper shows you how to deploy a secure wireless LAN
Cisco - FREE WHITE PAPER: BLUEPRINT to design and implement secure VPNs
Verity, Inc. - "Mass Consolidation Hits the Web-Search Market"
McDATA - Download a FREE storage consolidation white paper from McDATA(R).
Lucent Technologies - Overcoming Common Firewall Limitations
Lucent Technologies - Leverage Your Mobile High Speed Data Access. Download Free White Paper!
Nokia - Get the scoop! Mobilizing business white papers & case studies.
BMC Software - Maximize the Potential of Enterprise Data: Free white paper!
Network Associates - Free white paper - Strategies for Optimizing Network Costs and Benefits
Entrust - Manage identities across applications. Improve productivity.
Stalker Software - CommuniGate Pro - Transform your Email and Calendaring
Remedy - A NEW Gartner Research Note:Producing Quality IT Services

Search the IDG White Paper Library:


SPONSORED LINKS

INFOWORLD MARKETPLACE


» Apply BPM and ITIL at your IT Help Desk
ServiceWise brings BPM to complete IT service while eliminating integration cost. Learn more here.
» Find Consulting Jobs
Access Pre-Qualified Projects from Top Businesses. Register Now!
» Virtualization Planning & Analysis White paper
How to analyze workload, business and technical constraints & plan for successful deployments
» SOA Whitepaper Series: Automating Process Exceptions
Register here for this valuable Webinar centering on the automation of process exceptions.




 HOME  NEWS  TEST CENTER  OPINIONS  PRODUCT GUIDE  TECHINDEX   About : Advertise : Subscribe : Contact Us : Awards : Events 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy

All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses, phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

Computerworld :: Network World :: CIO :: PC World :: Darwin :: CMO :: CSO
IT Careers :: JavaWorld :: Macworld :: Mac Central :: Playlist :: GamePro :: GameStar :: Gamerhelp
ITWorld Canada :: Computerwoche :: Techworld UK :: tecChannel :: IDG.se :: IDG.no