Solved

nlmconv not working

Posted on 2001-07-03
7
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

724 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