OS: Debian 5.01 Lenny on x86_64

 

 

When compiling an installing libpfring from userland, I get the
following error:

 

MAKE STEP:

[HOST]:/usr/src/pfring-src/PF_RING/userland/lib# make

gcc -g -Wall -I/lib/modules/2.6.29.3-pfring-1/source/include  -c
pfring.c -o pfring.o

=*= making library libpfring.a =*=

ar rs libpfring.a pfring.o 

ar: creating libpfring.a

ranlib libpfring.a

 

 

INSTALL STEP:

[HOST]:/usr/src/pfring-src/PF_RING/userland/lib# make install

=*= making library libpfring.so =*=

gcc -shared pfring.o -lpthread -o libpfring.so

/usr/bin/ld: pfring.o: relocation R_X86_64_32 against `a local symbol'
can not be used when making a shared object; recompile with -fPIC

pfring.o: could not read symbols: Bad value

collect2: ld returned 1 exit status

make: *** [libpfring.so] Error 1

 

 

Should I just add "-fPIC to the Makefile and recompile/install? I know
that doing this works, but am question if it is what I should do to fix
the issue.

 

Nick

_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to