1 To: ethereal-dev@zing.org
2 Subject: Re: [ethereal-dev] Ethereal on SGI
3 From: Randall Hopper <aa8vb@yahoo.com>
4 Date: Sat, 18 Sep 1999 12:19:31 -0400
6 |> Just tried to build ethereal on SGI IRIX. configure failed because
7 |> there is no net/bpf.h.
9 Thanks for all the help. I pulled the latest today (0.7.3), and after a
10 few fix-ups, I got it built. Here are the tweaks I needed to build it for
11 SGI IRIX 6.5 using gcc.
17 Ethereal doesn't use RPATH (see ld(1) for shared library linking on all
18 platforms that support it (e.g. SGI IRIX, FreeBSD ELF, etc.), just
19 Solaris it appears. Instead, ethereal recommends use of the
20 LD_LIBRARY_PATH hack which causes all sorts problems.
22 On SGI IRIX this is -rpath to the linker, on Solaris -R, on FreeBSD ELF
25 SOLUTION: Slip in my linker flags when configuring ethereal so it can
26 find libgtk, libgmodule, libsnmp, etc. at run-time without
29 env LDFLAGS="-rpath $HOME/software/gtk+-1.2.3/lib:$HOME/software/glib-1.2.3/lib:/usr/local/lib" configure --prefix=$HOME/software/ethereal-0.7.3 --with-gtk-prefix=$HOME/software/gtk+-1.2.3
31 BETTER SOLUTION: Modify configure to support RPATH for more platforms
38 __P not defined -- packet-snmp.c fails to build
39 (gcc version 2.95.1 19990816 (release), SGI IRIX 6.5.5f)
41 SOLUTION: Include gnuc.h -- it defines it
43 --- ORIG/packet-snmp.c Mon Aug 30 11:10:17 1999
44 +++ packet-snmp.c Sat Sep 18 11:35:45 1999
55 ===============================================================================
59 checking for GTK - version >= 1.2.0... 186062:./conftest: rld: Fatal Error: Cannot Successfully map soname 'libgtk-1.2.so.1' under any of the filenames /usr/lib32/libgtk-1.2.so.1:/usr/lib32/internal/libgtk-1.2.so.1:/lib32/libgtk-1.2.so.1:/opt/lib32/libgtk
61 *** Could not run GTK test program, checking why...
62 *** The test program compiled, but did not run. This usually means
63 *** that the run-time linker is not finding GTK or finding the wrong
64 *** version of GTK. If it is not finding GTK, you'll need to set your
65 *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
66 *** to the installed location Also, make sure you have run ldconfig if that
67 *** is required on your system
69 *** If you have an old version installed, it is best to remove it, although
70 *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
72 *** If you have a RedHat 5.0 system, you should remove the GTK package that
73 *** came with the system with the command
75 *** rpm --erase --nodeps gtk gtk-devel
76 configure: error: GTK+ distribution not found.
78 ==============================================================================
82 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -O2 -Iwiretap -I/home/rhh/software/gtk+-1.2.3/include -I/home/rhh/software/glib-1.2.3/lib/glib/include -I/home/rhh/software/glib-1.2.3/include -c packet-snmp.c
83 In file included from packet-snmp.c:62:
84 /usr/local/include/ucd-snmp/asn1.h:131: parse error before `__P'
85 /usr/local/include/ucd-snmp/asn1.h:132: parse error before `__P'
86 /usr/local/include/ucd-snmp/asn1.h:133: parse error before `__P'
87 /usr/local/include/ucd-snmp/asn1.h:134: parse error before `__P'
88 /usr/local/include/ucd-snmp/asn1.h:135: parse error before `__P'
90 packet-snmp.c: In function `dissect_snmp':
91 packet-snmp.c:344: warning: implicit declaration of function `asn_parse_header'
92 packet-snmp.c:358: warning: implicit declaration of function `snmp_comstr_parse'
93 packet-snmp.c:358: warning: assignment makes pointer from integer without a cast
94 packet-snmp.c:407: warning: assignment makes pointer from integer without a cast
96 packet-snmp.c: In function `proto_register_snmp':
97 packet-snmp.c:869: warning: implicit declaration of function `init_mib'
98 gmake[2]: *** [packet-snmp.o] Error 1
99 gmake[2]: Leaving directory `/home/rhh/software/PKGS/t/ethereal-0.7.3'
100 gmake[1]: *** [all-recursive] Error 1
101 gmake[1]: Leaving directory `/home/rhh/software/PKGS/t/ethereal-0.7.3'
102 gmake: *** [all-recursive-am] Error 2
104 -------------------------------------------------------------------------------
106 Problem #3 (same as Problem #1):
109 189684:./ethereal: rld: Fatal Error: Cannot Successfully map soname 'libsnmp.so' under any of the filenames /home/rhh/software/gtk+-1.2.3/lib/libsnmp.so:/home/rhh/software/glib-1.2.3/lib/libsnmp.so:/usr/lib32/libsnmp.so:/usr/lib32/internal/libsnmp.so:/lib32/libsnmp.so:/opt/lib32/libsnmp.so: