Unable to load an nlm generated using library "traditional libc"

Posted on 2003-11-29
Last Modified: 2012-05-04
I am new to novell netware. I generated an nlm using code warrior tool using library package "libc". When I try to load the nlm on netware, it gives an error-"libd" must be loaded to load the nlm. I dont know what is "libd". Can you suggest me a solution?
Question by:lakshmi_karle
  • 6
  • 2
LVL 35

Expert Comment

ID: 9843091
Have you verified that all of the libraries are available?  There is a section in the Novell Developernet website that has a list of libraries that can be downloaded.  It might also be part of a service pack that you haven't applied to the server.

What version of NetWare are you running this on?  There are some libc calls in older versions if NetWare that required this libd to be loaded because they couldn't be included in the version of libc that could work with that kernel version, IIRC.  If you're writing an NLM using a relatively current NDK, you could be using some of those calls.  Since you are getting that error message, I would guess that is the case.

If you are running NetWare 4.x then you should seriously consider upgrading your NetWare to at least 5.1.  Upgrading to 6.x has more benefits and is actually a better deal, because you change from "server-based" user licensing to "user-based" user licensing, and you can add as many NetWare 6.x servers as you want, simply by downloading a free server license.

If you "can't" upgrade, then make sure you are using the latest available service pack.

Author Comment

ID: 9848716
I have downloaded and included all the necessary libraries.
I am running netware version 6.5. So that is not the problem I suppose. I generated the nlm from code warrior tool. Will it cause any problem? I am using PDK version 5.0

LVL 35

Accepted Solution

ShineOn earned 125 total points
ID: 9850048
The current CodeWarrior is version 8.  The current PDK for CodeWarrior is 5.1.  The libraries for CodeWarrior download page mentions CodeWarrior 7 and PDK 4.  I don't think you should be experiencing a problem related to the PDK, if you're using 5.1.

Perhaps the problem is using "traditional libc" option.  I don't know.  Like I said, last time I remember anything to do with libd it was because of the changes they were making in the libraries for C for the newer kernels.  That was a long time ago.

You might want to check out some of the documentation available about building NLMs at

It's been a few years since I did any NLM programming, so I can't help further than that.
LVL 35

Expert Comment

ID: 9850052
I said "I don't think you should be experiencing a problem related to the PDK, if you're using 5.1."

I meant to say 5.0.  Sorry...
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

LVL 35

Expert Comment

ID: 9850068
By the way, I'm glad you're using NetWare 6.5.  I only made the comments about earlier versions and upgrading because it has been years since I've seen anything related to libd.

Do you perhaps have a line of code that mentions libd instead of libc as a miskey?  Just a thought...

Expert Comment

ID: 9863185
I'm not familiar with CodeWarrior at all so unless LIBD is a tool to run your custom code, I'm going with the miskey as well. I've never run across any references to Netware using LIBD. Double-check your code and look for a reference to LIBD and change it to LIBC and see if your error goes away.
LVL 35

Expert Comment

ID: 9863196
I remember in devnotes a few years back when NetWare 5 was being developed, that certain functions couldn't be included in the c libs for the older kernels.  Maybe I'm mixing things up a tad.  Perhaps it was having both a CLIB.NLM and a LIBC.NLM, or some such.  So much for long-term memory. ;)

Author Comment

ID: 9864914
Hi all,
thanks for ur advice. My problem is resolved. While generating an nlm, codewarrior generates a file called app.def. There was one statement in the command "Module libc.nlm libd.nlm".I commented out this statement. This action served the purpose. The error regarding libd is not there now. But I have new problem. Could you please tell me how to write userdefined shared library? I mean how to handle writing and where to store the library in detail. I am new to novell netware. I am not able to load my nlm again because of a shared library.
Thanks in advance,
LVL 35

Expert Comment

ID: 10012883
lakshmi_karle -

It seems we were able to help with your original quesiton.  Please see for info on how to close a question.

Your new problem should be posted as a new question, even though it may be an offshoot of the original question.


Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
WiFi Networking 3 396
Converting from Novell to Windows authentication 3 981
Groupwise Web Access 4 833
Novell VM migrate to ESXi 4 1 791
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now