Ethereal-users: [Ethereal-users] Compilation problems under gcc 3.0/Solaris 2.8/SPARC

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "R. P. Channing Rodgers, M.D." <rodgers@xxxxxxxxxxx>
Date: Tue, 15 Jan 2002 17:18:19 -0500 (EST)
Dear Ethereal Community,

First, my thanks to Guy Harris of this list for correctly, swiftly
(and tactfully! ;^) pointing out that we must not be getting the right
zlib library (there turned out to be *three* on our system!).  We sorted
that out, and now the configure step decides to build using zlib compression.

However, our compilation problems remain.  The make proceeds smoothly up
the point where it creates libethereal.a, then all h*** breaks loose with
multiple error messages of the type appearing in the heavily edited output,
appended below.  We are using gcc 3.0 under Solaris 2.8 on SPARC hardware.
Any ideas?  Has anyone succeeded in building ethereal 0.9.0 using this
combination?

Thanks and Best Regards, Rick Rodgers
--------------------------------------------------------------------------------
csh> make
[...]
rm -f libethereal.a
ar cru libethereal.a atalk-utils.o bitswap.o conversation.o  column-utils.o epan.o except.o filesystem.o frame_data.o int-64bit.o  ipv4.o osi-utils.o packet.o plugins.o proto.o resolv.o sna-utils.o  strutil.o to_str.o tvbuff.o value_string.o inet_aton.o inet_pton.o inet_ntop.o
ranlib libethereal.a
Making all in plugins
Making all in gryphon
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/depot/package/ethereal_0.9.0/include  -I/depot/include -I../.. -I../../wiretap -I../../epan -I/usr/local/include  -Wall -W -Wno-unused -g -O2 -Wno-return-type -DFUNCPROTO=15 -I../.. -I../../wiretap -I../../epan -I/usr/local/include -I/depot/package/gtk+_1.2.8/include -I/depot/package/glib_1.2.8/lib/glib/include -I/depot/package/glib_1.2.8/include -I/usr/openwin/include -c packet-gryphon.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/depot/package/ethereal_0.9.0/include -I/depot/include -I../.. -I../../wiretap -I../../epan -I/usr/local/include -Wall -W -Wno-unused -g -O2 -Wno-return-type -DFUNCPROTO=15 -I../.. -I../../wiretap -I../../epan -I/usr/local/include -I/depot/package/gtk+_1.2.8/include -I/depot/package/glib_1.2.8/lib/glib/include -I/depot/package/glib_1.2.8/include -I/usr/openwin/include -c packet-gryphon.c  -fPIC -DPIC -o .libs/packet-gryphon.lo
In file included from ../../epan/dfilter/dfilter.h:33,
                 from ../../epan/epan.h:34,
                 from ../../epan/packet.h:38,
                 from ../../plugins/plugin_api.h:190,
                 from packet-gryphon.c:31:
/depot/include/proto.h:14: parse error before "PERL_CALLCONV"
/depot/include/proto.h:14: warning: type defaults to `int' in declaration of `perl_alloc'
/depot/include/proto.h:14: warning: data definition has no type or storage class
/depot/include/proto.h:15: syntax error before "void"
/depot/include/proto.h:15: parse error before '*' token
/depot/include/proto.h:16: syntax error before "void"
[lots of other error messages similar to the above]
/depot/include/proto.h:56: parse error before "START_EXTERN_C"
In file included from /depot/include/proto.h:58,
                 from ../../epan/dfilter/dfilter.h:33,
                 from ../../epan/epan.h:34,
                 from ../../epan/packet.h:38,
                 from ../../plugins/plugin_api.h:190,
                 from packet-gryphon.c:31:
/depot/include/pp_proto.h:7: parse error before "PERL_CKDEF"
[lots of other error messages similar to the above]
/depot/include/pp_proto.h:392: parse error before "PERL_PPDEF"
In file included from ../../epan/dfilter/dfilter.h:33,
                 from ../../epan/epan.h:34,
                 from ../../epan/packet.h:38,
                 from ../../plugins/plugin_api.h:190,
                 from packet-gryphon.c:31:
/depot/include/proto.h:59: parse error before "PERL_CALLCONV"
/depot/include/proto.h:59: parse error before "SV"
/depot/include/proto.h:59: warning: type defaults to `int' in declaration of `Perl_amagic_call'
/depot/include/proto.h:59: warning: data definition has no type or storage class
/depot/include/proto.h:60: parse error before "bool"
/depot/include/proto.h:60: parse error before "HV"
[lots of other error messages similar to the above, leading to, finally:]
/depot/include/proto.h:920: warning: parameter names (without types) in function declaration
In file included from ../../epan/epan.h:34,
                 from ../../epan/packet.h:38,
                 from ../../plugins/plugin_api.h:190,
                 from packet-gryphon.c:31:
../../epan/dfilter/dfilter.h:37: syntax error before "void"
*** Error code 1
make: Fatal error: Command failed for target `packet-gryphon.lo'
Current working directory /site5/SOURCE/INSTALL/new/ethereal_0.9.0.dir/plugins/gryphon
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /site5/SOURCE/INSTALL/new/ethereal_0.9.0.dir/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /site5/SOURCE/INSTALL/new/ethereal_0.9.0.dir
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'