Solved

nlmconv not working

Posted on 2001-07-03
7
222 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
„dd“ vs „ddrescue“ 28 232
fsstat very high only on nfs client side rhel 10 102
Help with Ubuntu 14.04 LTS 10 135
awk to variable in bash 2 41
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

776 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