ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Ethereal 0.9.15 did not build on Solaris 8 and Solaris 9

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

From: Richard Sharpe <rsharpe@xxxxxxxxxxxxxxxxx>
Date: Thu, 18 Sep 2003 09:37:18 -0700 (PDT)
On Thu, 18 Sep 2003 Falk.Hayn@xxxxxx wrote:

> in my enviroment Ethereal 0.9.15 did not build on 
> - Solaris 8  and
> - Solaris 9 platform.
> 
> ( Last version I build on Solaris 8 was 0.9.13)
> ( configure phase of  0.9.13 also completed on Solaris 9 )
> ( I did not test 0.9.14 )
> 
> 
> Ethereal 0.9.15 detailed problem description:
> 
> Configure reports that sprint_realloc_objid is not found in -lsnmp
> and unresolved symbols kstst_.... were reported
> 
> Root cause for thie behaviour is, that on Solaris8 and Solaris 9 
> the lib kstat needs to be called with -lkstat

OK, this might be related to a change I made to have it build properly on 
RH9.0 etc ... let me check on a Solaris machine ...

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
extracted von config.log 
configure line: 13780

configure:13841: checking for ucd-snmp/ucd-snmp-config.h
configure:13848: result: yes
configure:13860: checking for sprint_realloc_objid in -lsnmp
*/

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
Bogus error messages found in config.log
configure:13841: checking for ucd-snmp/ucd-snmp-config.h
configure:13848: result: yes
configure:13860: checking for sprint_realloc_objid in -lsnmp

Undefined                       first referenced
 symbol                             in file
kstat_close                         /usr/local/lib/libsnmp.so
kstat_lookup                        /usr/local/lib/libsnmp.so
kstat_read                          /usr/local/lib/libsnmp.so
kstat_open                          /usr/local/lib/libsnmp.so
kstat_data_lookup                   /usr/local/lib/libsnmp.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status

configure reports that sprint_realloc_objid is not found in -lsnmp

root cause for thie behaviour is, that on Solaris8 and Solris 9 
the lib kstat needs to be called with -lkstat
*/



#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "ethereal"
#define VERSION "0.9.15"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define YYTEXT_POINTER 1
#define HAVE_LIBPCAP 1
#define HAVE_PCAP_VERSION 1
#define HAVE_LIBZ 1
#define STDC_HEADERS 1
#define HAVE_FCNTL_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDARG_H 1
#define HAVE_NETDB_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_SOCKIO_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_UTSNAME_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_STDDEF_H 1
#define HAVE_ARPA_INET_H 1
#define HAVE_ICONV_H 1
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif

/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sprint_realloc_objid ();

int
main ()
{
sprint_realloc_objid ();
  ;
  return 0;
}

CC=gcc

all:	conftest

conftest:	conftest.c
	$(CC) -o conftest -D_U_="__attribute__((unused))" -Wall -W -g -O2 -Wno-return-type -DFUNCPROTO=15 -I$(top_srcdir) -I$(top_srcdir)/wiretap -I/usr/local/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/openwin/include -I/usr/local/include  -I$(top_srcdir) -I$(top_srcdir)/wiretap -I/usr/local/include -I/usr/local/include  -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib conftest.c -lsnmp -lsocket -lnsl  -L/usr/kerberos/lib -lz  -R/usr/local/lib -lkstat

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev