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

WS version 1.02 patched make: *** [all] Error 2

0

Hey im trying to install a version of ws with a patched applied already, but when i get to the MAKE command i get the error below. I am running Ubuntu 11.10 and i believe all have all the dependencies installed. Is there a way to check for the dependencies that are needed? Any help would be great. And the patch is for P25 radio from the op25-dev yahoo group. I do have a current version installed and running. Is that the problem?

read  -L/usr/local/lib wiretap/.libs/libwiretap.so /usr/lib/i386-linux-gnu/libgmodule-2.0.so -lrt /usr/lib/i386-linux-gnu/libglib-2.0.so -lm -lpcap -lz -pthread
wiretap/.libs/libwiretap.so: undefined reference to `g_direct_hash'
wiretap/.libs/libwiretap.so: undefined reference to `g_list_append'
wiretap/.libs/libwiretap.so: undefined reference to `g_malloc'
wiretap/.libs/libwiretap.so: undefined reference to `g_free'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_remove'
wiretap/.libs/libwiretap.so: undefined reference to `g_str_equal'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_lookup'
wiretap/.libs/libwiretap.so: undefined reference to `g_assertion_message_expr'
wiretap/.libs/libwiretap.so: undefined reference to `g_array_new'
wiretap/.libs/libwiretap.so: undefined reference to `g_strup'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_new'
wiretap/.libs/libwiretap.so: undefined reference to `g_array_prepend_vals'
wiretap/.libs/libwiretap.so: undefined reference to `g_direct_equal'
wiretap/.libs/libwiretap.so: undefined reference to `g_ptr_array_add'
wiretap/.libs/libwiretap.so: undefined reference to `g_strdup_printf'
wiretap/.libs/libwiretap.so: undefined reference to `g_ptr_array_new'
wiretap/.libs/libwiretap.so: undefined reference to `g_array_append_vals'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_insert'
wiretap/.libs/libwiretap.so: undefined reference to `g_log'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_destroy'
wiretap/.libs/libwiretap.so: undefined reference to `g_list_free'
wiretap/.libs/libwiretap.so: undefined reference to `g_str_hash'
wiretap/.libs/libwiretap.so: undefined reference to `g_strdown'
wiretap/.libs/libwiretap.so: undefined reference to `g_realloc'
wiretap/.libs/libwiretap.so: undefined reference to `g_memdup'
wiretap/.libs/libwiretap.so: undefined reference to `g_malloc0'
wiretap/.libs/libwiretap.so: undefined reference to `g_strdup'
wiretap/.libs/libwiretap.so: undefined reference to `g_snprintf'
wiretap/.libs/libwiretap.so: undefined reference to `g_ptr_array_free'
wiretap/.libs/libwiretap.so: undefined reference to `g_assertion_message'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_foreach_remove'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_foreach'
wiretap/.libs/libwiretap.so: undefined reference to `g_strndup'
wiretap/.libs/libwiretap.so: undefined reference to `g_list_foreach'
collect2: ld returned 1 exit status
make[2]: *** [randpkt] Error 1
make[2]: Leaving directory `/home/allan/wireshark/1.0.2-patched'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/allan/wireshark/1.0.2-patched'
make: *** [all] Error 2
[email protected]:~/wireshark/1.0.2-patched$

asked 06 Sep '12, 04:15

ajs007's gravatar image

ajs007
1111
accept rate: 0%

edited 06 Sep '12, 04:23

grahamb's gravatar image

grahamb ♦
19.8k330206

1.02 is very old and unsupported, and as you haven't provided the patch it's somewhat hard for others to test.

Could you try a supported version of Wireshark?

(06 Sep '12, 04:25) grahamb ♦

I understand what you're saying about it being an old version. I have tried unsuccessfully to patch a supported version with no success. I tried to follow the instructions on http://op25.osmocom.org/I/wiki/WireSharkPage

The latest patch available is for 1.6.5 at http://op25.osmocom.org/wiki/browser/trunk/wireshark/patches/wireshark-1.6.5.patch

(06 Sep '12, 04:38) ajs007

I would think you'll have more luck with the 1.6.5 patch using a supported version of Wireshark, even if the current version is 1.6.10.

First check you can build the plain 1.6.5 version of Wireshark, then apply the patch and try to build again as per the osmocon instructions.

If that fails then you can post the results here, but you're more likely to get support on the osmocon forums as it's their patch.

(06 Sep '12, 04:47) grahamb ♦

Ok the thanks for that. I have tried the osmocom forums with no answer. haha a real noob question but on the instructions page i dont understand the line (cd wireshark && patch -p1 < ../patches/wireshark-1.6.5.patch)

(06 Sep '12, 04:57) ajs007

It's 2 commands joined into one; cd wireshark means to change into the wireshark sources directory and patch -p1 < ../patches/wireshark-1.6.5.path means that the patch in the file specified is to be applied to the current directory.

If your wireshark source directory, and\or the path to your patch file from that directory are different, then you'll have to adjust the command(s) accordingly. You can separate out the commands into two separate entries if you wish, just lose the && that joins them, e.g.

Prompt>cd path/to/wireshark_sources Prompt>patch -p1 < path/to/patchfile

(06 Sep '12, 05:07) grahamb ♦

ok i shall try that soon. Will a new version interfere with the old one as i have 1.8.2 installed now. How do i un-install that?

(06 Sep '12, 05:49) ajs007

I wouldn't install it just now. Run it from the directory you've built it in. I've never "installed" it on Ubuntu so I can't answer that question but presumably you can use the same method you used to install it.

You can get conflicts between contents of config files and plugin directories between versions.

(06 Sep '12, 07:09) grahamb ♦
showing 5 of 7 show 2 more comments