Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

nlmconv not working

Posted on 2001-07-03
7
Medium Priority
?
251 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
Industry Leaders: 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 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