Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Compilation Error! Help!, rarpd
azul79
post Aug 26 2004, 09:14 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 13
Joined: 18-August 04
Member No.: 3,576



hi!
i've been compiling rarpd .. for a couple of days.. and its always the same error!
PLEASE HELP!!
i'm getting crazy with this.. 'cause i dont know programming..
i 've been compiling rarp1.0 and 1.1,, just in case one was wrog.. but nop.. both give me the same error..
i 've previously compiled libnet 1.1.2.1 and libpcap (just rarp1.1 needs this)
anyway... both of them apparently without mistake..
but when i compile rarp-- this is what happens:

root@dodo:/usr/local/src/rarpd-1.1# ./configure
checking for libnet library in /usr/ng/lib... not found
checking for libnet library in /usr/lib... not found
checking for libnet library in /usr/local/lib... not found

its not finding libnet libraries. and dispite i give it the option of where to find them.. ( ./configure --with-libnet-lib=/usr/lib ... which by the way is where it is looking.. ) same thing happens when i do a "make"

root@dodo:/usr/local/src/rarpd-1.1# make
gcc -g -O2 -I/usr/include -DPACKAGE="" -DVERSION="" -DSTDC_HEADERS=1 -DHAVE_NET_IF_ARP_H=1 -DHAVE_PCAP_NAMEDB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_PATHS_H=1 -c rarpd.c -o rarpd.o
rarpd.c: In function `send_rarpreply':
rarpd.c:289: `ARP_H' undeclared (first use in this function)
rarpd.c:289: (Each undeclared identifier is reported only once
rarpd.c:289: for each function it appears in.)
rarpd.c:289: `ETH_H' undeclared (first use in this function)
rarpd.c: In function `process_arp':
rarpd.c:334: structure has no member named `ar_sha'
rarpd.c:335: structure has no member named `ar_spa'
rarpd.c:336: structure has no member named `ar_tha'
rarpd.c:337: structure has no member named `ar_tpa'
rarpd.c: In function `main':
rarpd.c:449: warning: assignment makes pointer from integer without a cast
make: *** [rarpd.o] Error 1



AHHHHH!! i 'm getting crazy!!
'cause the libraries of libnet (libnet.a) are @/usr/lib/ and rarpd.c is loofing for them there.. but the same it says it doesnt find them!!

ANY HELP??? PLEASE!!


--------------------
bLueX@Neverland
:P
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Hemant
post Sep 13 2004, 09:49 PM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Ok..let's proceed step by step..
step1
Have you installed libnet libraries??
What is the output of command..
$cd /; find .|grep -i libnet
step2

if you have installed libnet libraries and let's say...
libnet.so.x files are in /usr/local/lib and header files of libnet libraries are in /usr/local/include then what i suggest is...
step3
Make soft link for all the libnet.so files from /usr/local/lib to /usr/lib using command.
$cd /usr/lib
$ln -s /usr/local/lib/libnet.so .
$ln -s /usr/local/lib/libnet.so.* .

and after that make links for header files...
$cd /usr/include
$ln -s /usr/local/include/libnet* .

But while making links to header files you have to be careful..first of all check out the content of /usr/local/include and see if all the libnet header files are in a sub-directory or they are in /usr/local/include itself.If they are inside a sub-directory of /usr/local/include then make a link of sub-directory only.Or else follow the earlier command.

And then proceed with configure,make,make install for your rarp package.


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th December 2017 - 11:27 PM