LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2004, 08:49 PM   #1
spideywebsling
Member
 
Registered: Jun 2004
Posts: 35

Rep: Reputation: 15
make <systype> [options]


anyone please help me with this?
make <systype> [options]
i uhm.. dont know what the hell. i dont recall ever using this before :-\
 
Old 06-30-2004, 09:09 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
What software are you trying to compile?

Here's a breakdown of what it's saying.

You're going to execute the make command. "<systype>" should be replaced with some text that specifies what kind of system you are running. There should be a list of recognized systems somewhere in the documentation. It could be anything: linux, i386, or many others. The angle brackets signify that you must supply this information to the command. "[options]" represents a list of command line items that will influence how make creates/compiles the software. The square brackets indicate that you do not need to include options; they are not required.

In all likelihood, you'll execute something like: make linux

Again, you need to find some kind of list in the documentation that tells you what possible values there are for systype. If you can't find anything, then you might have to paste the contents of the file named "Makefile" in that directory.
 
Old 07-01-2004, 03:56 AM   #3
spideywebsling
Member
 
Registered: Jun 2004
Posts: 35

Original Poster
Rep: Reputation: 15
In function `****':
: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
is what i get now :-\
 
Old 07-01-2004, 04:34 AM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
warnings (for the most part) can be ignored. Unless the make command ended with an "error" or something similar, then you are probably ok.

If it's obvious the make command died horribly, then post the the text it gave starting at the very first error.
 
Old 07-01-2004, 12:21 PM   #5
spideywebsling
Member
 
Registered: Jun 2004
Posts: 35

Original Poster
Rep: Reputation: 15
[root@localhost heh]# make linux
make -e nc XFLAGS='-DLINUX' STATIC=-static
make[1]: Entering directory `/home/heh'
cc -O -s -DLINUX -static -o nc netcat.c
/tmp/ccMYcLrv.o(.text+0x41e): In function `gethostpoop':
: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccMYcLrv.o(.text+0x368): In function `gethostpoop':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccMYcLrv.o(.text+0x61c): In function `getportpoop':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccMYcLrv.o(.text+0x58f): In function `getportpoop':
: warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccMYcLrv.o(.text+0x150c): In function `main':
: undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/heh'
make: *** [linux] Error 2
 
Old 07-01-2004, 01:36 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Ok, the error is this:
Quote:
/tmp/ccMYcLrv.o(.text+0x150c): In function `main':
: undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
Basically, what that is saying is the computer can't find what it's supposed to do when told to "res_init" something. The details are not important. This is a problem stemming from one of two things:

1. The system does not have needed support files installed (usually referred to as libraries)

2. You might have to supply some value on the command line for the "[options]" part above.

What software are you trying to install? I can download it and take a look at the documentation and try to point you in the right direction.
 
Old 07-01-2004, 02:06 PM   #7
spideywebsling
Member
 
Registered: Jun 2004
Posts: 35

Original Poster
Rep: Reputation: 15
heres what the doc for thr pogram says abuot building it
Compiling is fairly straightforward. Examine the Makefile for a SYSTYPE that
matches yours, and do "make <systype>". The executable "nc" should appear.
If there is no relevant SYSTYPE section, try "generic". If you create new
sections for generic.h and Makefile to support another platform, please follow
the given format and mail back the diffs.

There are a couple of other settable #defines in netcat.c, which you can
include as DFLAGS="-DTHIS -DTHAT" to your "make" invocation without having to
edit the Makefile. See the following discussions for what they are and do.

If you want to link against the resolver library on SunOS [recommended] and
you have BIND 4.9.x, you may need to change XLIBS=-lresolv in the Makefile to
XLIBS="-lresolv -l44bsd".
 
Old 07-01-2004, 02:16 PM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Have you tried make generic?

It would still be useful for me to see all the files that came with the source. What is the original filename and where did you download it?
 
Old 07-01-2004, 10:26 PM   #9
spideywebsling
Member
 
Registered: Jun 2004
Posts: 35

Original Poster
Rep: Reputation: 15
yes i have tried make generic

http://www.atstake.com/research/tool...ork_utilities/

btw thanks for your help
 
Old 07-02-2004, 01:34 AM   #10
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Ok, looking at the source code in netcat.c, here's where res_init is used:
Code:
/* can *you* say "cc -yaddayadda netcat.c -lresolv -l44bsd" on SunLOSs? */
  res_init();
It would appear that "res_init" (probably short for resource initialization) is necessary for SunOS or possibly FreeBSD. I commented out the line by changing it to:
Code:
/* can *you* say "cc -yaddayadda netcat.c -lresolv -l44bsd" on SunLOSs? */
/*  res_init(); */
Running make linux ran to completion after doing so. Essentially we're just telling the compiler to ignore that particular part of the program.

So, not being one to lightly make these kinds of changes, a google search using "netcat res_init" returns a few pages where they talk about doing exactly this. So it's a standard "fix". The developers just simply did not test the software on every platform to find this particular problem.

Welcome to your first taste of hacking
 
Old 07-03-2004, 05:05 PM   #11
spideywebsling
Member
 
Registered: Jun 2004
Posts: 35

Original Poster
Rep: Reputation: 15
hey thanks, i appreciate it. this wont be my first time with hacking tho. with linux yes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make architecture options mcirsta Linux - Newbie 2 04-30-2005 08:09 PM
OpenOffice 1.1.4 - Can't make changes to default options pwilkie Linux - Software 3 03-01-2005 12:46 PM
where is wifi options in make menuconfig hotgirl101 Linux - Hardware 3 04-05-2004 07:59 PM
'make mrproper' - make bzImage options. liguorir Linux - Software 4 06-26-2003 07:48 PM
including options in make watashiwaotaku7 Linux - General 0 01-22-2003 08:55 PM


All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration