Gentoo Archives: gentoo-user

From: Dave Nebinger <dnebinger@××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ethereal compile error
Date: Tue, 18 Oct 2005 15:18:57
Message-Id: 200510181110.44961.dnebinger@joat.com
In Reply to: [gentoo-user] Ethereal compile error by Dan
1 > i686-pc-linux-gnu-gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -O
2 > -mcpu=i686 -march=athlon -fomit-frame-pointer -pipe -I/usr/local/include
3 > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
4 > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
5 > -I/usr/lib/glib-2.0/include -o text2pcap text2pcap.o text2pcap-scanner.o
6 > -Wl,--export-dynamic -pthread -L/usr/local/lib /usr/lib/libgmodule-2.0.so
7 > -ldl /usr/lib/libglib-2.0.so -lm -lz collect2: ld returned 1 exit status
8
9 Well the good news is that since you're getting this far, you're almost out of
10 the woods...
11
12 As far as the radius warnings go, I got those also but it installed w/o them.
13
14 There are only minor differences between your command and the one my system
15 issued:
16
17 i686-pc-linux-gnu-gcc "-D_U_=__attribute__((unused))" -Wall -W -O
18 -march=athlon -pipe -fomit-frame-pointer -I/u
19 sr/local/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
20 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I
21 /usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
22 -I/usr/include/freetype2/config -I/usr/i
23 nclude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -o text2pcap
24 text2pcap.o text2pcap-scanner.o -Wl,--e
25 xport-dynamic -pthread -L/usr/local/lib /usr/lib/libgmodule-2.0.so
26 -ldl /usr/lib/libglib-2.0.so -lm -lz
27
28 The first is the INET6, I don't have ipv6 support enabled on my box (the -ipv6
29 use flag). The added defines for threads I'm not sure about, but I've got
30 both nptl and the older thread support enabled (the nptl use flag).
31
32 Also mine didn't emit the -mcpu=686 argument for gcc; is this something you
33 defined in your CFLAGS in /etc/make.conf?
34
35 Basically I would try the following:
36
37 1. Disable ipv6 if you are not using it.
38 2. Check your nptl/nptlonly use flags; if you have nptlonly set, it might be a
39 threads issue.
40 3. Check your CFLAGS and possibly remove the -mcpu definition (as I remember
41 that is supposed to be deprecated anyway).
42
43 Dave
44 --
45 gentoo-user@g.o mailing list