Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Misc

PF_RING FTBFS

 

 

NTop misc RSS feed   Index | Next | Previous | View Threaded


zinosat at tiscali

Oct 7, 2009, 5:54 AM

Post #1 of 5 (1076 views)
Permalink
PF_RING FTBFS

I tried to compile latest version of PF_RING in trunk (r3939) from [1]
which fails to build from source.

I had to apply the attached patch to get compilation done (I commented
out "lib_c++" which still fails and needs to be fixed)

please review the patch since it was just a quick and dirty way to fix
things

regards,
Davide


[1] https://svn.ntop.org/svn/ntop/trunk/PF_RING
Attachments: r3939_ftbfs.patch (1.46 KB)


deri at ntop

Oct 7, 2009, 7:40 AM

Post #2 of 5 (1017 views)
Permalink
Re: PF_RING FTBFS [In reply to]

Davide
thanks for your email. Please resync from svn anche check if it works
now

Thanks Luca

On Oct 7, 2009, at 2:54 PM, Davide Viti wrote:

> I tried to compile latest version of PF_RING in trunk (r3939) from [1]
> which fails to build from source.
>
> I had to apply the attached patch to get compilation done (I commented
> out "lib_c++" which still fails and needs to be fixed)
>
> please review the patch since it was just a quick and dirty way to fix
> things
>
> regards,
> Davide
>
>
> [1] https://svn.ntop.org/svn/ntop/trunk/PF_RING
>
> <r3939_ftbfs.patch>_______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

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


zinosat at tiscali

Oct 8, 2009, 12:40 AM

Post #3 of 5 (1007 views)
Permalink
Re: PF_RING FTBFS [In reply to]

Hi Luca,

Il giorno mer, 07/10/2009 alle 16.40 +0200, Luca Deri ha scritto:
> Davide
> thanks for your email. Please resync from svn anche check if it works
> now

two minor problems:
in PF_RING/userland/examples it still fails with

make: *** No rule to make target `pfcount_luca.o', needed by
`pfcount_luca'. Stop.

the obvious fix is to remove pfcount_luca from the list of targets; you
might consider something like this in case you want to avoid remembering
to remove "pfcount_luca" every time you commit a change in the
repository

ifeq (1, $(shell [ -f pfcount_luca.c ] ) )
PF_COUNT_LUCA = pfcount_luca
endif
PFPROGS = ringc rings ringm pcaps pfcount ${PF_COUNT_LUCA} pfmap
forwarder alldevs

the other problem is in PF_RING/userland/lib:

vt [at] cavi:~/PF_RING/userland/lib$ sudo make install
=*= making library libpfring.so =*=
gcc -shared -fPIC Makefile -lpthread -o libpfring.so
Makefile: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [libpfring.so] Error 1

DYNAMICLIB is commented out in the list of targets but is not commented
in "install" rule so it can be fixed either commenting the "cp
${DYNAMICLIB} ${INSTDIR}/lib/" line, or removing the comment in

TARGETS = ${STATICLIB} #${DYNAMICLIB}

and changing this
${DYNAMICLIB}: Makefile ${OBJS}
pfring.h ../../kernel/include/linux/ring.h

into this

${DYNAMICLIB}: ${OBJS} pfring.h ../../kernel/include/linux/ring.h
Makefile

regards,
Davide
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


deri at ntop

Oct 8, 2009, 12:45 AM

Post #4 of 5 (1020 views)
Permalink
Re: PF_RING FTBFS [In reply to]

Davide
thanks: I have made some changes are you requested. Can you please check them?

Thanks Luca

Davide Viti wrote:
Hi Luca, Il giorno mer, 07/10/2009 alle 16.40 +0200, Luca Deri ha scritto:
Davide thanks for your email. Please resync from svn anche check if it works now
two minor problems: in PF_RING/userland/examples it still fails with make: *** No rule to make target `pfcount_luca.o', needed by `pfcount_luca'. Stop. the obvious fix is to remove pfcount_luca from the list of targets; you might consider something like this in case you want to avoid remembering to remove "pfcount_luca" every time you commit a change in the repository ifeq (1, $(shell [ -f pfcount_luca.c ] ) ) PF_COUNT_LUCA = pfcount_luca endif PFPROGS = ringc rings ringm pcaps pfcount ${PF_COUNT_LUCA} pfmap forwarder alldevs the other problem is in PF_RING/userland/lib: vt [at] cavi:~/PF_RING/userland/lib$ sudo make install =*= making library libpfring.so =*= gcc -shared -fPIC Makefile -lpthread -o libpfring.so Makefile: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [libpfring.so] Error 1 DYNAMICLIB is commented out in the list of targets but is not commented in "install" rule so it can be fixed either commenting the "cp ${DYNAMICLIB} ${INSTDIR}/lib/" line, or removing the comment in TARGETS = ${STATICLIB} #${DYNAMICLIB} and changing this ${DYNAMICLIB}: Makefile ${OBJS} pfring.h ../../kernel/include/linux/ring.h into this ${DYNAMICLIB}: ${OBJS} pfring.h ../../kernel/include/linux/ring.h Makefile regards, Davide _______________________________________________ Ntop-misc mailing list Ntop-misc [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop-misc"]http://listgateway.unipi.it/mailman/listinfo/ntop-misc


zinosat at tiscali

Oct 8, 2009, 1:12 AM

Post #5 of 5 (1012 views)
Permalink
Re: PF_RING FTBFS [In reply to]

Hi Luca,

Il giorno gio, 08/10/2009 alle 09.45 +0200, Luca Deri ha scritto:
> Davide
> thanks: I have made some changes are you requested. Can you please
> check them?

thanx for the quick response and fixes.
Still had to move Makefile at the end to the DYNAMICLIB target:

Index: userland/lib/Makefile
===================================================================
--- userland/lib/Makefile (revision 3941)
+++ userland/lib/Makefile (working copy)
@@ -62,7 +62,7 @@
ar rs $@ ${OBJS}
ranlib $@

-${DYNAMICLIB}: Makefile ${OBJS}
pfring.h ../../kernel/include/linux/ring.h
+${DYNAMICLIB}: ${OBJS} pfring.h ../../kernel/include/linux/ring.h
Makefile
@echo "=*= making library $@ =*="
${CC} ${LDFLAGS} $< ${SYSLIBS} -o $@

other than that it works great
Davide

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

NTop misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.