Wireshark-dev: Re: [Wireshark-dev] Problems building the SVN version without having an installe

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Mon, 19 Feb 2007 12:56:22 +0100
On Feb 19, 2007, at 12:46 AM, Guy Harris wrote:

Michael Tuexen wrote:

on a Mac OS X 10.4 system make fails with

	...

So why is /usr/local/lib/libwireshark.0.0.1.dylib referenced explicitly?

I don't know - I tried moving my installed (in /usr/local/lib) versions
of libwire* out of the way, checking out a new SVN tree, configuring,
and building, and it worked; the libtool command linked with
"-lwireshark" rather than with an explicit pathname.

Was this with a fresh SVN tree?  If not, what happens if you do "make
maintainerclean" and then start from the beginning, i.e. with
"./autogen.sh" and running "configure" with the appropriate options?
I retried after a
make maintainer-clean
without any difference.

Then I just checked out a new SVN tree. Without any chance. I can
now build again because I did a
sudo make -i install
which installed the lib under /usr/local/lib
but that should not the the solution.

Going into plugins/agentx and doing a make clean and then a make gives

[mbp17:trunk/plugins/agentx] tuexen% make
source='plugin.c' object='plugin.lo' libtool=yes \
depfile='.deps/plugin.Plo' tmpdepfile='.deps/plugin.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. - I../.. -I../.. -I/usr/local/include -I/usr/local/include -I/usr/ include -DINET6 -no-cpp-precomp -D_U_="__attribute__((unused))" - Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -pthreads -I/usr/ local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/ include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 - I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/ local/lib/glib-2.0/include -I/usr/include -c -o plugin.lo `test -f 'plugin.c' || echo './'`plugin.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include -I/ usr/local/include -I/usr/include -DINET6 -no-cpp-precomp "- D_U_=__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/ local/include -pthreads -I/usr/local/include/gtk-2.0 -I/usr/local/lib/ gtk-2.0/include -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/ usr/local/include/pango-1.0 -I/usr/X11R6/include/freetype2 -I/usr/ local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/ include -c plugin.c -MT plugin.lo -MD -MP -MF .deps/plugin.TPlo -fno- common -DPIC -o .libs/plugin.o
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-pthreads'
source='packet-agentx.c' object='packet-agentx.lo' libtool=yes \
depfile='.deps/packet-agentx.Plo' tmpdepfile='.deps/packet- agentx.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. - I../.. -I../.. -I/usr/local/include -I/usr/local/include -I/usr/ include -DINET6 -no-cpp-precomp -D_U_="__attribute__((unused))" - Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -pthreads -I/usr/ local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/ include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 - I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/ local/lib/glib-2.0/include -I/usr/include -c -o packet-agentx.lo `test -f 'packet-agentx.c' || echo './'`packet-agentx.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include -I/ usr/local/include -I/usr/include -DINET6 -no-cpp-precomp "- D_U_=__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/ local/include -pthreads -I/usr/local/include/gtk-2.0 -I/usr/local/lib/ gtk-2.0/include -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/ usr/local/include/pango-1.0 -I/usr/X11R6/include/freetype2 -I/usr/ local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/ include -c packet-agentx.c -MT packet-agentx.lo -MD -MP -MF .deps/ packet-agentx.TPlo -fno-common -DPIC -o .libs/packet-agentx.o
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-pthreads'
packet-agentx.c: In function 'dissect_octet_string':
packet-agentx.c:309: warning: pointer targets in passing argument 4 of 'tvb_get_nstringz' differ in signedness /bin/sh ../../libtool --mode=link gcc -DINET6 -no-cpp-precomp - D_U_="__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/ usr/local/include -pthreads -I/usr/local/include/gtk-2.0 -I/usr/local/ lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/X11R6/include/freetype2 -I/usr/ local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/ include -Wl,-search_paths_first -L/usr/local/lib -L/usr/local/lib - o agentx.la -rpath /usr/local/lib/wireshark/plugins/0.99.6 -module - avoid-version plugin.lo packet-agentx.lo -L../../epan -lwireshark -L/ usr/local/lib -lgmodule-2.0 -lglib-2.0 -lintl -liconv gcc -bundle -flat_namespace -undefined suppress -o .libs/ agentx.so .libs/plugin.o .libs/packet-agentx.o /usr/lib/libc.dylib / usr/lib/libz.dylib /usr/lib/libm.dylib /usr/lib/libresolv.dylib /usr/ lib/libcom_err.dylib /usr/lib/libkrb5support.dylib /usr/lib/ libk5crypto.dylib /usr/lib/libkrb5.dylib -L/usr/lib -L/usr/local/lib - L/Users/tuexen/Documents/wireshark/trunk/epan /usr/local/lib/ libwireshark.0.0.1.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/ local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib /usr/lib/ libiconv.dylib -Wl,-search_paths_first
creating agentx.la
(cd .libs && rm -f agentx.la && ln -s ../agentx.la agentx.la)

The problem seems to be the libtool command.... Anyone else also having this problem?

Best regards
Michael


_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev