RE: error compiling nfqnl_test.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add /usr/local/lib to ld.conf or LD_LIBRARY_PATH env variable.
 
-Sietse

________________________________

From: netfilter-bounces@xxxxxxxxxxxxxxxxxxx on behalf of Frank Abel Cancio Bello
Sent: Mon 22-May-06 16:42
To: Sebastien Tricaud; netfilter@xxxxxxxxxxxxxxxxxxx
Subject: Re: error compiling nfqnl_test.c



Thanks Sebastien!

Now the problem is when I try to run the binary, when I put on command line:

./nfqnl_test

the following error happend:

./nfqnl_test: error while loading shared libraries: libnfnetlink.so.0: cannot
open shared object file: No such file or directory

Nevertheless my box have theses files:
/usr/local/lib/libnfnetlink.so.0
/usr/local/lib/libnfnetlink.so.0.0.0

Beside, when I install the libnfnetlink ("./configure;make;make install") I
get a binary of nfqnl_test.c into utils directory and when I run it all is
fine.

Salute
Frank Abel


On Monday 22 May 2006 10:06 am, you wrote:
> Frank Abel Cancio Bello wrote:
> > Hi all!
> >
> > A newbie question:
> > When I try to compile "nfqnl_test.c" putting on command line:
> >
> > "gcc -Wall -o nfqnl_test nfqnl_test.c"
> >
> > the following error occur:
>
> [snip errors]
>
> you forgot to include required library symbols:
>
> gcc -Wall -o nfqnl_test nfqnl_test.c -lnfnetlink -lnetfilter_queue
>
> will do


__________________________________________

XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion






[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux