LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-22-2005, 05:02 PM   #1
Baix
Member
 
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203

Rep: Reputation: 30
Installing Libnet


HI all,
I'm trying to install libnet v.1.1.2.1 on Slackware 10. ./Configure goes well but make is just a whole bunch of errors and warnings...
Sorry its so long

Code:
bash-2.05b# make
make -C lib/ lib
make[1]: Entering directory `/home/andrew/libnet/lib'
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/core.o core/core.c
In file included from ../include/libnet.h:124,
                 from core/core.c:12:
../include/libnet/libnet-functions.h:1840: warning: function declaration isn't a prototype
../include/libnet/libnet-functions.h:1862: warning: function declaration isn't a prototype
../include/libnet/libnet-functions.h:1870: warning: function declaration isn't a prototype
../include/libnet/libnet-functions.h:1878: warning: function declaration isn't a prototype
../include/libnet/libnet-functions.h:1886: warning: function declaration isn't a prototype
In file included from core/core.c:13:
include/internal.h:21: error: `NET_MAX_ADDRESS_LENGTH' undeclared here (not in a function)
include/internal.h:22: error: `NET_MAX_ADDRESS_LENGTH' undeclared here (not in a function)
include/internal.h:30: error: `NET_MAX_ADDRESS_LENGTH' undeclared here (not in a function)
include/internal.h:45: error: parse error before '*' token
include/internal.h:45: warning: function declaration isn't a prototype
include/internal.h:46: error: parse error before '*' token
include/internal.h:46: warning: function declaration isn't a prototype
include/internal.h:49: error: parse error before '*' token
include/internal.h:49: warning: function declaration isn't a prototype
include/internal.h:50: error: parse error before '*' token
include/internal.h:50: warning: function declaration isn't a prototype
include/internal.h:52: error: parse error before '*' token
include/internal.h:52: warning: function declaration isn't a prototype
include/internal.h:53: error: parse error before '*' token
include/internal.h:53: warning: function declaration isn't a prototype
include/internal.h:54: error: parse error before '*' token
include/internal.h:54: warning: function declaration isn't a prototype
include/internal.h:55: error: parse error before '*' token
include/internal.h:55: warning: function declaration isn't a prototype
include/internal.h:58: error: parse error before '*' token
include/internal.h:58: warning: function declaration isn't a prototype
include/internal.h:59: error: parse error before '*' token
include/internal.h:59: warning: function declaration isn't a prototype
include/internal.h:61: error: parse error before '*' token
include/internal.h:61: warning: function declaration isn't a prototype
include/internal.h:62: error: parse error before '*' token
include/internal.h:62: warning: function declaration isn't a prototype
include/internal.h:63: error: parse error before '*' token
include/internal.h:63: warning: function declaration isn't a prototype
include/internal.h:64: error: parse error before '*' token
include/internal.h:64: warning: function declaration isn't a prototype
include/internal.h:66: error: parse error before '*' token
include/internal.h:66: warning: function declaration isn't a prototype
include/internal.h:67: error: parse error before '*' token
include/internal.h:67: warning: function declaration isn't a prototype
include/internal.h:68: error: parse error before '*' token
include/internal.h:68: warning: function declaration isn't a prototype
include/internal.h:69: error: parse error before '*' token
include/internal.h:69: warning: function declaration isn't a prototype
include/internal.h:70: error: parse error before '*' token
include/internal.h:70: warning: function declaration isn't a prototype
include/internal.h:72: error: parse error before '*' token
include/internal.h:72: warning: function declaration isn't a prototype
include/internal.h:73: error: parse error before '*' token
include/internal.h:73: warning: function declaration isn't a prototype
include/internal.h:77: error: parse error before "list_t"
include/internal.h:77: warning: type defaults to `int' in declaration of `list_t'
include/internal.h:77: warning: data definition has no type or storage class
include/internal.h:82: error: parse error before "NET_DRIVER"
include/internal.h:82: warning: no semicolon at end of struct or union
include/internal.h:83: error: `NET_MAX_ADDRESS_LENGTH' undeclared here (not in a function)
include/internal.h:86: error: parse error before '}' token
In file included from core/core.c:14:
include/channels.h:17: error: parse error before "NET_CHANNEL"
include/channels.h:17: warning: no semicolon at end of struct or union
include/channels.h:18: warning: type defaults to `int' in declaration of `__libnet_internal__openchannels'
include/channels.h:18: warning: data definition has no type or storage class
In file included from core/core.c:15:
include/conns.h:17: error: parse error before "NET_CONN"
include/conns.h:17: warning: no semicolon at end of struct or union
include/conns.h:18: warning: type defaults to `int' in declaration of `__libnet_internal__openconns'
include/conns.h:18: warning: data definition has no type or storage class
In file included from core/core.c:16:
include/drivers.h:19: error: parse error before '*' token
include/drivers.h:19: warning: type defaults to `int' in declaration of `__libnet_internal__get_driver'
include/drivers.h:19: warning: data definition has no type or storage class
include/drivers.h:20: error: parse error before '*' token
include/drivers.h:20: warning: function declaration isn't a prototype
In file included from core/core.c:17:
include/connhelp.h:9: error: parse error before "__libnet_internal__wrapper_driver"
include/connhelp.h:9: warning: type defaults to `int' in declaration of `__libnet_internal__wrapper_driver'
include/connhelp.h:9: warning: data definition has no type or storage class
core/core.c:23: error: parse error before "detected_drivers"
core/core.c:23: warning: type defaults to `int' in declaration of `detected_drivers'
core/core.c:23: warning: data definition has no type or storage class
core/core.c:24: error: parse error before "initialised_drivers"
core/core.c:24: warning: type defaults to `int' in declaration of `initialised_drivers'
core/core.c:24: warning: data definition has no type or storage class
core/core.c:25: error: parse error before "temp_detected_list"
core/core.c:25: warning: type defaults to `int' in declaration of `temp_detected_list'
core/core.c:25: warning: data definition has no type or storage class
core/core.c:26: error: parse error before "net_drivers_all"
core/core.c:26: warning: type defaults to `int' in declaration of `net_drivers_all'
core/core.c:26: warning: data definition has no type or storage class
core/core.c: In function `exitfunc':
core/core.c:36: warning: implicit declaration of function `net_shutdown'
core/core.c: At top level:
core/core.c:42: warning: no previous prototype for `net_init'
core/core.c: In function `net_init':
core/core.c:47: warning: implicit declaration of function `net_set_mutex_funcs'
core/core.c:49: warning: implicit declaration of function `net_set_timer_func'
core/core.c:52: warning: implicit declaration of function `net_driverlist_create'
core/core.c: In function `detectdrivers_helper':
core/core.c:76: error: `NET_DRIVER' undeclared (first use in this function)
core/core.c:76: error: (Each undeclared identifier is reported only once
core/core.c:76: error: for each function it appears in.)
core/core.c:76: error: `driver' undeclared (first use in this function)
core/core.c:78: warning: implicit declaration of function `net_driverlist_add'
core/core.c: At top level:
core/core.c:88: error: parse error before "net_detectdrivers"
core/core.c:88: error: parse error before "which"
core/core.c:88: warning: return type defaults to `int'
core/core.c:88: warning: function declaration isn't a prototype
core/core.c: In function `net_detectdrivers':
core/core.c:89: warning: implicit declaration of function `net_driverlist_clear'core/core.c:90: warning: implicit declaration of function `net_driverlist_foreach'
core/core.c:90: error: `which' undeclared (first use in this function)
core/core.c: At top level:
core/core.c:98: warning: no previous prototype for `net_detectdriver'
core/core.c: In function `net_detectdriver':
core/core.c:99: error: parse error before "temp"
core/core.c:101: error: `temp' undeclared (first use in this function)
core/core.c:104: error: `detected' undeclared (first use in this function)
core/core.c:105: warning: implicit declaration of function `net_driverlist_destroy'
core/core.c:106: warning: implicit declaration of function `net_driverlist_test'core/core.c: In function `initdrivers_helper':
core/core.c:112: error: `NET_DRIVER' undeclared (first use in this function)
core/core.c:112: error: `driver' undeclared (first use in this function)
core/core.c: At top level:
core/core.c:122: error: parse error before "net_initdrivers"
core/core.c:122: error: parse error before "which"
core/core.c:122: warning: return type defaults to `int'
core/core.c:122: warning: function declaration isn't a prototype
core/core.c: In function `net_initdrivers':
core/core.c:123: error: parse error before "temp1"
core/core.c:124: error: `temp1' undeclared (first use in this function)
core/core.c:125: error: `temp2' undeclared (first use in this function)
core/core.c:126: error: `temp3' undeclared (first use in this function)
core/core.c:130: warning: implicit declaration of function `net_driverlist_add_list'
core/core.c:130: error: `which' undeclared (first use in this function)
core/core.c:135: warning: implicit declaration of function `net_driverlist_remove_list'
core/core.c: At top level:
core/core.c:162: warning: no previous prototype for `net_initdriver'
core/core.c: In function `net_initdriver':
core/core.c:163: error: parse error before "temp"
core/core.c:165: error: `temp' undeclared (first use in this function)
core/core.c:168: error: `inited' undeclared (first use in this function)
core/core.c: In function `exit_all_drivers_helper':
core/core.c:176: error: `NET_DRIVER' undeclared (first use in this function)
core/core.c:176: error: `driver' undeclared (first use in this function)
core/core.c: At top level:
core/core.c:193: warning: no previous prototype for `net_shutdown'
include/internal.h:83: error: storage size of `src' isn't known
make[1]: *** [core/core.o] Error 1
make[1]: Leaving directory `/home/andrew/libnet/lib'
make: *** [lib] Error 2
 
Old 02-27-2009, 08:15 PM   #2
daugau
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Unhappy

I also have a problem with libnet installing, not exactly like yours but it really makes me crazy for a whole day.
I tried to install libnet 1.0.2a in Centos 5. When i ran
Code:
./configure
      make
It's Ok, but in the install step ( when i run
Quote:
make install
)
there is an error report

Quote:
.......
chmod: missing operand after `755'
Try `chmod --help' for more information.
./ensure-dir.sh /usr/bin/ 755
./install-sh lib/libnet.a /usr/lib/
rm -f /usr/lib/libpwrite.a
cd /usr/lib/; ln -f -s libnet.a libpwrite.a
./install-sh include/libnet.h /usr/include/
./install-sh include/libnet/libnet-headers.h /usr/include/libnet
./install-sh include/libnet/libnet-functions.h /usr/include/libnet
./install-sh include/libnet/libnet-structures.h /usr/include/libnet
./install-sh include/libnet/libnet-macros.h /usr/include/libnet
./install-sh include/libnet/libnet-asn1.h /usr/include/libnet
./install-sh include/libnet/libnet-ospf.h /usr/include/libnet
./install-sh doc/libnet.3
install: no destination specified
make: *** [install] Error 1
I have google-ed for whole day but i can't find any useful thing to fix this problem. Is there anyone can help me to resolve it?
 
Old 09-29-2009, 08:22 AM   #3
germanvargas75
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Se debe editar en archivo Makefile en Libnet-1.0.2a.

Y agregar la ruta para el MAN_PREFIX. Por ejemplo /usr/share/doc/
MAN_PREFIX = /usr/share/doc/
 
  


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 problem zaichik Programming 0 08-06-2005 06:30 PM
libnet problems StraitFaced Linux - Software 0 05-21-2005 06:04 PM
Libnet gr33ndata Programming 2 10-14-2003 02:24 PM
Libnet - Libnids Shu Linux - Software 0 07-15-2003 06:42 PM
libnet problems vexer Slackware 4 06-08-2003 08:35 AM


All times are GMT -5. The time now is 05:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration