LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-10-2003, 12:48 PM   #1
hoffswell
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Rep: Reputation: 0
LaBrea/libnet/libpcap compile woes


Howdy -

I am not a compiler wizard, so I come to the mountain, seeking help:

Installing Labrea, but need libpcap and libnet installed. Labrea does not support thenew libnet, so I am running an older recommended one.

LaBrea2_4/
Libnet-1.0.2a/
libpcap-0.7.2/


Libnet and libpcap seem to install just fine.

But now I get this:

gcc -Wall `libnet-config --defines` -O6 -funroll-loops -frerun-cse-after-loop -finline-functions -mcpu=i686 -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/pcap -c -o LaBrea.o LaBrea.c
In file included from LaBrea.c:47:
GoDaemon.c: In function `GoDaemon':
GoDaemon.c:44: warning: implicit declaration of function `open'
GoDaemon.c:44: `O_RDWR' undeclared (first use in this function)
GoDaemon.c:44: (Each undeclared identifier is reported only once
GoDaemon.c:44: for each function it appears in.)
LaBrea.c: In function `main':
LaBrea.c:105: warning: implicit declaration of function `libnet_seed_prand'
LaBrea.c:193: warning: implicit declaration of function `atoi'
LaBrea.c:394: warning: implicit declaration of function `libnet_name_resolve'
LaBrea.c:405: warning: implicit declaration of function `ntohl'
LaBrea.c:444: warning: implicit declaration of function `libnet_open_link_interface'
LaBrea.c:444: warning: assignment makes pointer from integer without a cast
LaBrea.c:448: dereferencing pointer to incomplete type
LaBrea.c:466: warning: implicit declaration of function `libnet_get_prand'
LaBrea.c:466: `PRu32' undeclared (first use in this function)
LaBrea.c:471: warning: implicit declaration of function `libnet_get_hwaddr'
LaBrea.c:479: warning: implicit declaration of function `libnet_get_ipaddr'
LaBrea.c:483: warning: implicit declaration of function `htonl'
make: *** [LaBrea.o] Error 1
root@pinux:~/LaBrea2_4#


Any idea? I know enough to suspect my library installations, but can't see where I may have gone wrong...

Thanks...


 
  


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
libnet libpcap on linux filomotta Linux - Networking 1 06-01-2005 01:03 PM
problem with libnet/libpcap on Linux filomotta Programming 0 05-31-2005 07:49 AM
Libpcap Compile / Configure: ANSI Ioctl not found Ackmeco Programming 0 06-08-2004 10:29 PM
First-time kernel compile woes... redkazan Slackware 6 01-09-2004 01:13 PM
Libnet gr33ndata Programming 2 10-14-2003 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 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
Open Source Consulting | Domain Registration