[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] A possible bug in the configure script of PetaLinux v0.20 rc3 tcpdump application
Yes ! It's working fine.... Thanks a lot :)
Regards,,
Islam
John Williams <jwilliams@xxxxxxxxxxxxxx> wrote: Hi,
Islam Samir wrote:
> I got the following error message during the compilation of petalinux:
>
> `/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user/tcpdump'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/ihhs/petalinux/petalinux-v0.20-rc3/software/petalinux-dist/user'
> make: *** [subdirs] Error 1
>
> The error is clearly a bug ! the application is tcpdump... When I
> removed this application everything went ok !
If you want to build tcpdump, can you please try the attached patch and
let me know if it works for you?
Thanks,
John
Index:
petalinux-dist/vendors/config/microblaze/config.arch
===================================================================
--- petalinux-dist/vendors/config/microblaze/config.arch (revision 2883)
+++ petalinux-dist/vendors/config/microblaze/config.arch (revision 2885)
@@ -91,7 +91,7 @@
# Either configure $(CONFIGURE_OPTS)
# or configure --host=$(TARGETARCH) --build=$(HOSTARCH) --target=$(TARGETARCH)
#
-TARGETARCH := microblaze-elf-uclinux
+TARGETARCH := microblaze-linux
HOSTARCH := $(shell sh $(ROOTDIR)/tools/config.guess)
CONFIGURE_OPTS := --host=$(TARGETARCH) --build=$(HOSTARCH) --target=$(TARGETARCH)
Index: petalinux-dist/user/tcpdump/makefile
===================================================================
--- petalinux-dist/user/tcpdump/makefile (revision 2883)
+++ petalinux-dist/user/tcpdump/makefile (revision 2885)
@@ -6,7 +6,7 @@
build/build: makefile
rm -rf build
mkdir
build
- (cd build; sh ../configure --host=$(CROSS_COMPILE:-=) $(CONFOPTS))
+ (cd build; sh ../configure $(CONFIGURE_OPTS))
touch build/build
clean:
Index: petalinux-dist/user/tcpdump/tcpdump.c
===================================================================
--- petalinux-dist/user/tcpdump/tcpdump.c (revision 2883)
+++ petalinux-dist/user/tcpdump/tcpdump.c (revision 2885)
@@ -40,6 +40,7 @@
#include
+#define PCAP_READ_ALL
#include
#include
#include
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.