HARDWARE Y SISTEMAS OPERATIVOS, GNU/Linux, Windows, Mac > GNU/Linux, Unix, *BSD and Free Software, Android

Compilando rpcapd para Linux

(1/2) > >>

Alfon:
Hola a todos,

Estoy tratando de compilar rpcapd para linux y no hay manera, la verdad es que no creo que sea tan complicado, así que debo ser yo el inútil. Esto es lo que, en teoría, se debe hacer:

wget http://www.winpcap.org/install/bin/WpcapSrc_4_1_2.zip
unzip WpcapSrc_4_1_2.zip
cd winpcap/wpcap/libpcap
chmod +x configure runlex.sh
CFLAGS=-static ./configure
make
cd rpcapd/

Luego hay que editar el archivo Makefile y añadir -static a CFLAGS. yo lo dejo de est manera:

CFLAGS = pthread -DHAVE_REMOTE -DHAVE_SNPRINTF -static

y para terminar:

make

Pues no, esto es lo que me sale:


--- Código: ---www@wwwserver:~/winpcap/wpcap/libpcap/rpcapd$ sudo make
gcc -pthread -DHAVE_REMOTE -DHAVE_SNPRINTF -static -I../ -o rpcapd rpcapd.o daemon.o utils.o fileconf.o pcap-remote.o sockutils.o pcap-new.o -L../ -lpcap -lcrypt
daemon.o: In function `daemon_AuthUserPwd':
daemon.c:(.text+0xfea): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
pcap-remote.o: In function `rpcap_remoteact_getsock':
pcap-remote.c:(.text+0x39b6): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
daemon.o: In function `daemon_AuthUserPwd':
daemon.c:(.text+0x1024): warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
..//libpcap.a(nametoaddr.o): In function `pcap_nametoaddr':
nametoaddr.c:(.text+0x4da): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
..//libpcap.a(nametoaddr.o): In function `pcap_nametonetaddr':
nametoaddr.c:(.text+0x4a9): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
..//libpcap.a(nametoaddr.o): In function `pcap_nametoproto':
nametoaddr.c:(.text+0x289): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
..//libpcap.a(nametoaddr.o): In function `pcap_nametoport':
nametoaddr.c:(.text+0x2e0): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

--- Fin del código ---

y por su puesto cuando llamo al programa rpcapd, me dice que el comando no existe.

En que estoy fallando ?

Saluditos y gracias,






shicefgo:
Hola.
Lo primero y más simple que se me ocurre:
¿No hay que hacer un make install como root ni nada parecido? ¿No dice nada sobre esto en el README? Es que el mensaje de que el comando no existe se emite cuando ese comando no se encuentra donde se supone que debería estar (en algún lugar del PATH). Como lo que posteas son simples warnings que, en teoría, no deberían interrumpir la compilación...

Si no es eso, pues seguiremos intentándolo.  :)

Saludos.

Alfon:
Gracias shicefgo. Pues si, es lógico lo que comentas. todos esos comandos los realicé como root. Lo rar oes que en el readme no dice nada de make install:


--- Código: ---******************** COMPILE LIBPCAP WITH RPCAP SUPPORT UNDER UNIX ********************

First, you must unpack all text files according to the UNIX standard. For this, you may use
"unzip -a" (it extracts the files using the platform-native format for text files) or the
dos2unix conversion utility.

Second, you have to type '/.configure' in order to create the makefile.
In case this step fails, you should re-create the configure by launching 'autoconf'
(version 2.50 or higher) in the libpcap folder.

Finally, you have to compile the project by typing 'make'.
In case some error occurs, let's try to delete all the config.* files from the 'libpcap'
folder and restart this process from scratch.

These steps are able to compile the libpcap library; now you have to compile the rpcapd daemon.
For this, you have to type 'make' in the 'rpcapd' folder.
--- Fin del código ---

shicefgo:
Deduzco que sigue sin ir.
Entra a la carpeta rpcapd y prueba con la siguiente instrucción:
./rpcapd

Si sigue sin ir seguiremos intentándolo, que para algo me lo he descargado del enlace que has puesto. ;-)

Alfon:
Gracias rpcapd. Lo probaré mañana, no tengo aquí la instalación, y ya te cuento que tal fue.

Saludos,

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa