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

build tshark failed on Mac OS X 10.6.7

0

I'm build wireshark souce code with "./configure --disable-wireshark", but I got errors:

Making all in wsutil
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I./.. -I/usr/local/include
'-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.5.2"' -Werror -DINET6 -no-cpp-precomp -D_U_="attribute((unused))" -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security -I/usr/local/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -MT mpeg-audio.lo -MD -MP -MF .deps/mpeg-audio.Tpo -c -o mpeg-audio.lo mpeg-audio.c
mv -f .deps/mpeg-audio.Tpo .deps/mpeg-audio.Plo
mv: rename .deps/mpeg-audio.Tpo to .deps/mpeg-audio.Plo: No such file or directory
make[2]: [mpeg-audio.lo] Error 1
make[1]:
[all-recursive] Error 1
make: *** [all] Error 2

What am I doing wrong?

asked 30 Apr '11, 04:58

huubby's gravatar image

huubby
6113
accept rate: 0%

retagged 30 Apr '11, 18:27

helloworld's gravatar image

helloworld
3.1k42041


One Answer:

2

I just successfully built tshark in OS X 10.6.7 using your configure options. Your problem might have to do with libtool. Check your libtool version with the command: libtool -V

My libtool version is: Apple Computer, Inc. version cctools-782

If you don't have libtool installed, get it from Mac Ports: sudo port install libtool

The commands I used to build and run tshark:

./autogen.sh
./configure --disable-wireshark
make
WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ./tshark

answered 30 Apr '11, 18:26

helloworld's gravatar image

helloworld
3.1k42041
accept rate: 28%

edited 30 Apr '11, 18:32

Than you very much! It worked! I'm so stupid, I have installed another libtool in /usr/local/bin, after uninstalling this libtool, I successfully built tshark. Thanks again!

(30 Apr '11, 19:58) huubby