Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ethereal compile error
Date: Tue, 18 Oct 2005 15:33:53
Message-Id: 43550F62.2050609@asmallpond.org
In Reply to: [gentoo-user] Ethereal compile error by Dan
1 Dan wrote:
2
3 > Please help -- I can't emerge ethereal and I would really like to use it.
4 >
5 > i686-pc-linux-gnu-gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W
6 > -O -mcpu=i686 -march=athlon -fomit-frame-pointer -pipe
7 > -I/usr/local/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
8 > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
9 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o text2pcap
10 > text2pcap.o text2pcap-scanner.o -Wl,--export-dynamic -pthread
11 > -L/usr/local/lib /usr/lib/libgmodule-2.0.so -ldl
12 > /usr/lib/libglib-2.0.so -lm -lz
13 > collect2: ld returned 1 exit status
14 > make[2]: *** [text2pcap] Error 1
15 > make[2]: *** Waiting for unfinished jobs....
16 > make[3]: Leaving directory
17 > `/var/tmp/portage/ethereal-0.10.12/work/ethereal-0.10.12/doc'
18 > make[2]: Leaving directory
19 > `/var/tmp/portage/ethereal-0.10.12/work/ethereal-0.10.12'
20 > make[1]: *** [all-recursive] Error 1
21 > make[1]: Leaving directory
22 > `/var/tmp/portage/ethereal-0.10.12/work/ethereal-0.10.12'
23 > make: *** [all] Error 2
24
25
26 When using MAKEOPTS=-j2 or higher, you can expect some builds to simply
27 fail, usually with an error from the linker. This is because the
28 another make process may see an object file that gcc hasn't finished
29 writing yet, and spawn a gcc process to link with that incomplete object
30 file.
31
32 So you have that error, but it also appears that the dependancy rules
33 inside the ethereal makefiles do not account for the radius directory,
34 so one process ends up trying to use it when it hasn't been created yet.
35
36 In either case, the solution is the same: MAKEOPTS=j1 emerge ethereal.
37
38 -Richard
39
40 --
41 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Ethereal compile error Dave Nebinger <dnebinger@××××.com>