Ethereal-users: Re: [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: Thu, 17 Jan 2002 15:04:02 -0500 (EST)
> From gharris@xxxxxxxxx Thu Jan 17 05:39:08 2002

> > Workaround: Modify all the "Makefile.in" files to add
> > "-I$(srcdir)/epan" to the end of the "DEFS = " lists, and then
> > re-run the configure script and rebuild.
> 
> It should be "-I$(top_srcdir)/epan", instead.
> 
> Or, instead, add them in front of "-I$(includedir)" in the INCLUDES
> macros in all of the "Makefile.in" files that have "INCLUDES = " lines,
> and add the line
> 
> 	INCLUDES = -I$(top_srcdir)/epan
> 
> to the "Makefile.in" files that *don't* have "INCLUDES = " lines, re-run
> the configure script, and rebuild.

Guy,

Wow, you are *good*  :)  I did as you suggested, and the
compilation went very smoothly for most of the time.
I did get some warnings, and although the build still
fails I think we are very very close now.  I append an
edited version of the output from the build (again, we
are using Solaris/SPARC/gcc 3.0).  Any further ideas?

Thanks and Cheerio, Rick Rodgers

nob[root]csh:277>make
make  all-recursive
Making all in tools
Making all in lemon
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../epan  -I/depot/include -I../.. -I../
../wiretap -I../../epan -I/usr/local/include  -Wall -W -Wno-unused -g -O2 -Wno-r
eturn-type -DFUNCPROTO=15 -I../.. -I../../wiretap -I../../epan -I/usr/local/incl
ude -I/depot/package/gtk+_1.2.8/include -I/depot/package/glib_1.2.8/lib/glib/inc
lude -I/depot/package/glib_1.2.8/include -I/usr/openwin/include -c lemon.c
/bin/sh ../../libtool --mode=link gcc  -Wall -W -Wno-unused -g -O2 -Wno-return-t
ype -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 -L/depot/lib -L/usr/loc
al/lib -R/usr/local/lib -o lemon  lemon.o  -lz  -R/depot/package/zlib_1.1.3/lib:
/usr/openwin/lib:/usr/dt/lib:/depot/lib
[...]

gcc -DHAVE_CONFIG_H -I. -I. -I. -I./epan  -I/depot/include -I. -I./wiretap -I./e
pan -I/usr/local/include  -Wall -W -Wno-unused -g -O2 -Wno-return-type -DFUNCPRO
TO=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-prism.c
packet-prism.c:145:9: warning: pasting "." and "msgcode" does not give a valid p
reprocessing token
[... whole bunch more of messages of this form ...]

mkdir .libs
rm -f .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT
creating .libs/etherealS.c
(cd .libs && gcc -c -fno-builtin "etherealS.c")
rm -f .libs/etherealS.c .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT
Output line too long.
Output line too long.
Output line too long.
Output line too long.
gcc -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/packa
ge/glib_1.2.8/lib/glib/include -I/depot/package/glib_1.2.8/include -I/usr/openwi
n/include -L/depot/lib -L/usr/local/lib -o ethereal packet-aarp.o packet-afs.o p
acket-aim.o packet-arp.o packet-ascend.o packet-atalk.o packet-atm.o packet-auto
[... huge honking list of *.o files omitted here for readbility ...]

gtk/libui.a epan/libethereal.a epan/ftypes/libftypes.a epan/dfilter/libd 
-R/usr/local/lib -R/usr/openwin/lib -R/depot/package/zlib_1.1.3/lib:/usr/openwin
/lib:/usr/dt/lib:/depot/lib -R/usr/local/lib -R/usr/openwin/lib -R/depot/package
/zlib_1.1.3/lib:/usr/openwin/lib:/usr/dt/lib:/depot/lib
gcc: epan/dfilter/libd: No such file or directory
rm -f .libs/etherealS.o
*** Error code 1
make: Fatal error: Command failed for target `ethereal'
Current working directory /site5/SOURCE/INSTALL/new/ethereal_0.9.0.dir
*** 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'