Wireshark-users: Re: [Wireshark-users] Crosscompiling TSHARK to run on embedded linux on ppc440!

From: H Aslam <hassan-aslam@xxxxxxxxxxx>
Date: Thu, 12 Feb 2009 23:00:39 +0100
Ok.. that's what I started with..

and I got and am now getting the same error:

checking for pkg-config... no
checking for GLIB - version >= 2.0.0... no
*** A new enough version of pkg-config was not found.
*** See http://www.freedesktop.org/software/pkgconfig/
configure: error: GLib2 distribution not found.

So we're back where we started  :-S In the previous attempt I installed glib2-devel which of course is for the development machine...

So this is what I did in my first attempt:

yum install bison

yum install flex

yum install pkgconfig

yum install glib2-devel

./configure --disable-wireshark --disable-editcap --disable-capinfos --disable-mergecap --disable-text2pcap --disable-idl2wrs --disable-dftest

--disable-randpkt --disable-rawshark



> From: guy@xxxxxxxxxxxx
> To: wireshark-users@xxxxxxxxxxxxx
> Date: Thu, 12 Feb 2009 12:32:00 -0800
> Subject: Re: [Wireshark-users] Crosscompiling TSHARK to run on embedded linux on ppc440!
>
>
> On Feb 12, 2009, at 12:20 PM, H Aslam wrote:
>
> > /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/
> > bin:/opt/eldk/usr/bin:/opt/eldk/bin
>
> OK, so why is the configure script finding byacc and flex under /opt/
> eldk/ppc_4xx/usr/bin, as that's not in your path? Is /opt/eldk/usr/
> bin a symlink to /opt/eldk/ppc_4xx/usr/bin, or something such as that?
>
> > No not now... I did on my first attempt (yum install flex & yum
> > install bison) but then removed them again to use the ones under
> > eldk..
>
> That was almost certainly a mistake. "The ones under ELDK" are either:
>
> 1) cross-development versions of Flex and Bison, which run on your PC
> and generate code for the embedded platform, which shouldn't be
> necessary
>
> or
>
> 2) versions of Flex and Bison that run *on* the embedded platform,
> which are completely unusable for cross-development (as they won't run
> on your PC, given that they are PPC binaries, not x86 or x86-64
> binaries) and almost certainly not *useful* on the embedded platform
> unless you plan to do compilation on the embedded platform, thus
> wasting space on your ramdisk image for the embedded machine.
>
> From the results of your "file" command, they appear to be the latter.
>
> I suggest that you un-install the ELDK versions of Flex and Bison, re-
> install the native versions with "yum install flex" and "yum install
> bison", and try again.
> ___________________________________________________________________________
> Sent via: Wireshark-users mailing list <wireshark-users@xxxxxxxxxxxxx>
> Archives: http://www.wireshark.org/lists/wireshark-users
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-users
> mailto:wireshark-users-request@xxxxxxxxxxxxx?subject=unsubscribe


Get news, entertainment and everything you care about at Live.com. Check it out!