Solved

nlmconv not working

Posted on 2001-07-03
7
218 Views
Last Modified: 2010-04-21
Hi experts,
When I run the makefile:

CC = gcc
CFLAGS = -Wall -O2 -g -I/usr/include/ -I/usr/nwsdk/include/nlm/ -I/usr/nwsdk/include/ -nostdinc -fno-builtin -fpack-struct

hello.nlm:     hello.o hello.def
     nlmconv --output-target=nlm32-i386 -T hello.def

hello.o:     hello.c
     $(CC) $(CFLAGS) -c hello.c
I get the error:
nlmconv: hello.nlm: invalid bfd target
Can you help?
Thanks
Dkidd

0
Comment
Question by:dkidd
7 Comments
 
LVL 5

Expert Comment

by:garboua
ID: 6255751
:-)  add hello.o to end of line nlmconv --output-target, hello.def is an include file, and you need hello.o to build the netware load modules
0
 

Author Comment

by:dkidd
ID: 6258990
Hi
Thanks for your comment, I (with some help) managed to get nlmconv to work by running configure (for binutils) with the --enable-targets=all. Make then included nlmconv in the compilation process (before we just did make nlmconv).
However I want to sneak in a new problem.
I have created an nlm which copies one file to another using getc, It works on Linux but stops short copying a binary file on the Novell server. getc seems to find the EOF marker to early.
Can you help with this?
Thanks in advance
dkidd

0
 
LVL 5

Expert Comment

by:garboua
ID: 6260607
what kind of files are you copying, because there is a better way to copy a binary file than getc, and even if it is not, if you are just copying, then gets will grab the whole line. one step at a time, what are you copying?
0
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

 

Author Comment

by:dkidd
ID: 6263415
Hi
I just copying one file to another, as a test I am copying an nlm to another file. It only copies the first 23 bytes of the file ie Netware Loadable Module, then stops when it gets to the first non printable character. I fear gets will have the same problem (does it use getc as well?).
Thanks
dkidd
0
 

Author Comment

by:dkidd
ID: 6263641
Hi Experts
Thanks for your comments, I am using read & write functions to copy. This detects EOF ok
Thanks again
dkidd
0
 
LVL 20

Expert Comment

by:jmcg
ID: 9868925
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9917240
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

17 Experts available now in Live!

Get 1:1 Help Now