You'll need to add ahmed_pfsend to the "PFPROGS" list or run "make
ahmed_pfsend".
Best Wishes,
Chris
On 01/08/12 18:52, Khan wrote:
> Hi again and thanks for a response,
>
> I just wanted to test, so i only changed the src and dest, ip addresses at
> this point.
>
> I did made the necessary changes in the Makefile but did not create a new one.
> I added this line into the Makefile;
>
> ahmed_pfsend: ahmed_pfsend.o ${LIBPFRING}
> ${CC} ${CFLAGS} ahmed_pfsend.o ${LIBPCAP} ${LIBS} -o $@
> and then
>
> nano Makefile
> ls
> make
>
> BR
> Khan
>
> ________________________________
> From: Chris Wakelin <[email protected]>
> To: [email protected]
> Sent: Wednesday, August 1, 2012 7:17 PM
> Subject: Re: [Ntop-misc] Problem with compiling modified ver. of pfsend
>
> It would probably help if you told us what you changed!
>
> This looks like an error in your additions to me. You may also need to
> include some libs on the command line (look at the Makefile).
>
> For my versions I made a Makefile.cdw and just copied the relevant
> entries to make my own, then ran "make -f Makefile.cdw".
>
> Best Wishes,
> Chris
>
> On 01/08/12 18:10, Khan wrote:
>> Hello,
>>
>> I used pfsend to TX packets via PF_RING and it went well. Now i have
>> modified the pfsend.c version to
>> ahmed_pfsend.c, but the problem is I cannot compile it with gcc. I copied
>> pfsend.c to ahmed_pfsend.c as;
>>
>> cp pfsend.c ahmed_pfsend.c
>> there is no error in the program and i am certain.
>>
>>
>> i get the following error:
>>
>> ahmed@ahmed-Latitude-D620:~/PF_RING/userland/examples$ gcc -o ahmed_pfsend.c
>> ahmed_pfsend
>> ahmed_pfsend: In function `_fini':
>> (.fini+0x0): multiple definition of `_fini'
>> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crti.o:(.fini+0x0):
>> first defined here
>> ahmed_pfsend: In function `__data_start':
>> (.data+0x0): multiple definition of `__data_start'
>> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o:(.data+0x0):
>> first defined here
>> ahmed_pfsend:(.rodata+0x4): multiple definition of `_IO_stdin_used'
>> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o:(.rodata.cst4+0x0):
>> first defined here
>> ahmed_pfsend: In function `_start':
>> (.text+0x1108): multiple definition of `_start'
>> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o:(.text+0x0):
>> first defined here
>> ahmed_pfsend:(.rodata+0x0): multiple definition of `_fp_hw'
>> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o:(.rodata+0x0):
>> first defined here
>> ahmed_pfsend: In function `_init':
>> (.init+0x0): multiple definition of `_init'
>> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crti.o:(.init+0x0):
>> first defined here
>> /usr/lib/gcc/i686-linux-gnu/4.6/crtend.o:(.dtors+0x0): multiple definition
>> of `__DTOR_END__'
>> ahmed_pfsend:(.dtors+0x4): first defined here
>> /usr/bin/ld: error in ahmed_pfsend(.eh_frame); no .eh_frame_hdr table will
>> be created.
>> collect2: ld returned 1 exit status
>>
>>
>> can anyone help me out here//
>>
>>
>> cheers
>>
>>
>>
>> _______________________________________________
>> Ntop-misc mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>
>
>
>
>
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
--
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin, [email protected]
IT Services Centre, The University of Reading, Tel: +44 (0)118 378 2908
Whiteknights, Reading, RG6 6AF, UK Fax: +44 (0)118 975 3094
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc