Ethereal-dev: [Ethereal-dev] RE: installation of ethereal on solaris 2.6

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

From: Harshad Mehta <hmehta@xxxxxxxxx>
Date: Tue, 09 Oct 2001 09:55:44 -0500
Dear Members
I have got following error message while installing Ethereal on my solaris box.
I have installed all packges neccessry for installation begin with glib, gtk, libcap, flex and bison and every thing went fine - till I came to point when you need to run make after running configure when I try to install ethereal.
Please help meout with this problem.
I appreciate any help from your  side.
Thanx in advance
Harshad

After running ./configure command I get config summary as follows:
The Ethereal package has been configured with the following options.
                    Build ethereal : yes
                   Build tethereal : yes
                     Build editcap : yes
                    Build mergecap : yes
                   Build text2pcap : yes
                     Build randpkt : no
                      Build dftest : no

                    Install setuid : no
                  Use pcap library : yes
                  Use zlib library : no
          Use IPv6 name resolution : no
                  Use SNMP library : no

My run down of Make was
make[2]: Entering directory `/opt/ethereal/ethereal-0.8.19/wiretap'
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -Wall -W -Wno-unused -g -O2 -I/usr/local/include -c ascend-grammar.c
In file included from wtap-int.h:39,
                 from ascend-grammar.y:76:
/usr/local/include/glib.h:66: glibconfig.h: No such file or directory
make[2]: *** [ascend-grammar.o] Error 1
make[2]: Leaving directory `/opt/ethereal/ethereal-0.8.19/wiretap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/ethereal/ethereal-0.8.19'
make: *** [all-recursive-am] Error 2

CONFIG.LOG :
ltconfig:2613: warning: implicit declaration of function `exit'
/usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
ltconfig: failed program was:
#line 2571 "ltconfig"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#  define LTDL_LAZY_OR_NOW      RTLD_LAZY
# else
#  ifdef DL_LAZY
#   define LTDL_LAZY_OR_NOW     DL_LAZY
#  else
#   ifdef RTLD_NOW
#    define LTDL_LAZY_OR_NOW    RTLD_NOW
#   else
#    ifdef DL_NOW
#     define LTDL_LAZY_OR_NOW   DL_NOW
#    else
#     define LTDL_LAZY_OR_NOW   0
#    endif
#   endif
#  endif
# endif
#endif

fnord() { int i=42;}
main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
------------------------------------------------------------------------
ltconfig on line 2613:
fnord() { int i=42;}
main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }