This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How do you cross compile wireshark using MontaVista’s tools?

0

I'm wanting to compile wireshark so I can use it on an ARM platform. I keep getting a configuration error "Function 'socket' not found."

I can do a ./configure with no options just fine and make and make install. But when I run the following command, it gives me that error:

CC=/opt/mv_pro_5.0.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc ./configure --host=armv5tl-montavista-linux-gnueabi --prefix=/home/user/workdir

Help would be greatly appreciated!

asked 05 Sep '13, 12:27

sariibunbun's gravatar image

sariibunbun
16114
accept rate: 0%

edited 21 Jan '14, 19:53

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196

What does the config.out file say? (You probably won't be able to paste its entire contents as an answer to the question, so you might have to upload it to a site such as pastebin and post a link here.)

(05 Sep '13, 17:02) Guy Harris ♦♦

Hi Guy,

Did you mean config.log? I have that, but not the config.out. I uploaded it to pastebin like you suggested. config.log

Some errors caught my eye as I've been skimming through the log to try to figure this out on my own:

/opt/mv_pro_5.0.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/../../../../armv5tl-montavista-linux-gnueabi/bin/ld: cannot find -lnl-route-3

I'm not sure if this is what is causing it to fail or if it's something else. I do know I have those libraries, but I'm unsure if it's just looking in the wrong spot? I'm also unsure how to change it to look in the right spot either(I'm a little new to this, so please bare with me).

Thanks again!

this is the third time trying to reply to you-it keeps getting blocked my Akismet

(06 Sep '13, 06:07) sariibunbun

One Answer:

4

Wireshark's configure script has some places where it needs to be fixed in order to support cross-compilation. We'd have to look more at the config.log file (yes, I meant config.log, not config.out) to see all the places where it's failing; the best thing to do here is probably to file a bug on the Wireshark Bugzilla, and attach config.log to the bug.

answered 06 Sep '13, 11:53

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Thank you for your quick response, Guy! I will add the bug :)

(10 Sep '13, 05:39) sariibunbun

I'm having this problem too... Was the bug filed? Was it fixed?

(21 Jan '14, 17:46) Andrew Knutsen

I never entered the bug unfortunately. Work got crazy hectic and I found a way to fix some issues without having to compile Wireshark. Pretty sure I lost all my info for this as well...my apologies!

(22 Jan '14, 05:42) sariibunbun