LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Libnet (https://www.linuxquestions.org/questions/linux-software-2/installing-libnet-293576/)

Baix 02-22-2005 05:02 PM

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

:confused:

daugau 02-27-2009 08:15 PM

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? :(

germanvargas75 09-29-2009 08:22 AM

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/


All times are GMT -5. The time now is 06:35 AM.