Ethereal-dev: [Ethereal-dev] Problem building ethereal 0.10.11

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

From: "Magnus Ljung" <magnus.ljung@xxxxxxxxxx>
Date: Thu, 8 Sep 2005 17:13:05 +0200
Hi all,

I'm trying to compile etheral 0.10.11 on Solaris 10 using gcc 3.3.

I've successfully run ./configure --without-pcap resulting in:

The Ethereal package has been configured with the following options.
                    Build ethereal : yes
                   Build tethereal : yes
                    Build capinfos : yes
                     Build editcap : yes
                    Build mergecap : yes
                   Build text2pcap : yes
                     Build idl2eth : yes
                     Build randpkt : no
                      Build dftest : yes

                    Install setuid : no
                       Use plugins : yes
               Use GTK+ v2 library : yes
                       Use threads : no
            Build profile binaries : no
                  Use pcap library : no
                  Use zlib library : yes
                  Use pcre library : no
              Use kerberos library : no
              Use GNU ADNS library : no
            Use SSL crypto library : no
          Use IPv6 name resolution : no
     Use UCD SNMP/Net-SNMP library : no

Then I've run make and I get the following output:

lisa: ~/proj/ethereal-0.10.11> make
gcc -D_U_="__attribute__((unused))" -Wall -W  -g -O2 -Wno-return-type
-DFUNCPROTO=15 -I/usr/local/include -D_REENTRANT -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/openwin/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-o rdps ./rdps.c
./rdps ./print.ps ps.c
/usr/perl5/5.8.4/bin/perl ./make-version.pl
Version configuration file version.conf not found.  Using defaults.
This is not a SVN build.
svnversion.h has been updated.
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
Making all in tools
Making all in lemon
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I/usr/local/include
-D_U_="__attribute__((unused))" -Wall -W  -g -O2 -Wno-return-type
-DFUNCPROTO=15 -I/usr/local/include -D_REENTRANT -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/openwin/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-MT lemon.o -MD -MP -MF ".deps/lemon.Tpo" -c -o lemon.o lemon.c; \
then mv -f ".deps/lemon.Tpo" ".deps/lemon.Po"; else rm -f ".deps/lemon.Tpo";
exit 1; fi
/bin/bash ../../libtool --mode=link --tag=CC gcc
-D_U_="__attribute__((unused))" -Wall -W  -g -O2 -Wno-return-type
-DFUNCPROTO=15 -I/usr/local/include -D_REENTRANT -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/openwin/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib -o lemon
lemon.o  -lnsl -lz  -R:.
libtool: link: only absolute run-paths are allowed
*** Error code 1
make: Fatal error: Command failed for target `lemon'
Current working directory /home/ljung/proj/ethereal-0.10.11/tools/lemon
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='lemon'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'

It seems to me that the problem is that libtool doesn't like the -R:. flag,
but isn't libtool generated by configure? And the -R flag also?

Does anyone know what the problem might be?

Thanks
/Magnus