Gentoo Archives: gentoo-user

From: Rumen Yotov <gentoo@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge mc: undefined reference to `write_socket'
Date: Sun, 22 Jan 2006 18:08:41
Message-Id: 20060122180414.GA5093@mach.qrypto.org
In Reply to: [gentoo-user] emerge mc: undefined reference to `write_socket' by saf@archivum.info (saf)
1 Hi,
2 On (22/01/06 18:11), saf wrote:
3 > Hi all,
4 >
5 > thanks for your support on this mailing list.
6 > Gentoo is a very great Linux distribution.
7 >
8 > I have a question about Midnight Commander:
9 > I can't emerge mc because of a compiler error.
10 > Does somebody knows how to fix it?
11 > I tried already to remove samba in the USE flags, but it changes nothing.
12 >
13 > When I try to emerge mc, I get this error:
14 >
15 > i686-pc-linux-gnu-gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -mar
16 > ch=athlon-xp -O9 -pipe -mfpmath=sse,387 -mmmx -msse -fomit-frame-pointer -funrol
17 > l-loops -m3dnow -I/usr/include/gssapi -Wall -o man2hlp man2hlp.o -lglib-2.0
18 >
19 > ../vfs/libvfs-mc.a(smbfs.o): In function `chkpath':
20 > smbfs.c:(.text+0x5867): undefined reference to `write_socket'
21 > collect2: ld returned 1 exit status
22 > make[2]: *** [mc] Error 1
23 > make[2]: *** Waiting for unfinished jobs....
24 > make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r14/work/mc-4.6.0/src'
25 > make[1]: *** [all-recursive] Error 1
26 > make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r14/work/mc-4.6.0'
27 > make: *** [all] Error 2
28 > ...SKIP...
29 > #
30 > # -mcpu=<cpu-type> means optimize code for the particular type of CPU without
31 > # breaking compatibility with other CPUs.
32 > #
33 > # -march=<cpu-type> means to take full advantage of the ABI and instructions
34 > # for the particular CPU; this will break compatibility with older CPUs (for
35 > # example, -march=athlon-xp code will not run on a regular Athlon, and
36 > # -march=i686 code will not run on a Pentium Classic.
37 > #
38 > # CPU types supported in gcc-3.2 and higher: athlon-xp, athlon-mp,
39 > # athlon-tbird, athlon, k6, k6-2, k6-3, i386, i486, i586 (Pentium), i686
40 > # (PentiumPro), pentium, pentium-mmx, pentiumpro, pentium2 (Celeron),
41 > # pentium3, and pentium4.
42 > #
43 > # Note that Gentoo Linux 1.4 and higher include at least gcc-3.2.
44 > #
45 > # CPU types supported in gcc-2.95*: k6, i386, i486, i586 (Pentium), i686
46 > # (Pentium Pro), pentium, pentiumpro Gentoo Linux 1.2 and below use gcc-2.95*
47 > #
48 > # CRITICAL WARNINGS: ****************************************************** #
49 > # K6 markings are deceptive. Avoid setting -march for them. See Bug #24379. #
50 > # Pentium-M CPU's should not enable sse2 until at least gcc-3.4. Bug 50616. #
51 > # ************************************************************************* #
52 > #
53 > # General CFLAGS variable
54 > #
55 > CFLAGS="-march=athlon-xp -O9 -pipe -mfpmath=sse,387 -mmmx -msse -fomit-frame-pointer -funroll-loops -m3dnow"
56 Try with more sane CFLAGS, at least replace -O9 with -O2, IMHO you could remove -mmmx,-m3dnow,-msse
57 (haven't checked but think some of them are assumed when using -march=athlon-xp). Check the docs.
58 >
59 > # To compile valgrind:
60 > # CFLAGS="-O2 -pipe"
61 >
62 > #CFLAGS="-march=pentium3 -O3 -pipe"
63 >
64 > # If you set a CFLAGS above, then this line will set your default C++ flags to
65 > # the same settings.
66 >
67 > CXXFLAGS="${CFLAGS}"
68 > ...SKIP...
69 > # for parallel makes is CPUs+1.
70 >
71 > MAKEOPTS="-j2"
72 Very rarely but sometimes i had to compile something with "-j1"
73 > ...SKIP...
74 > --
75 > Best regards,
76 > Stephan FERRARO
77 > NOOFS Core Developper - http://www.noofs.org/
78 > GnuPG public key: gpg --keyserver www.keyserver.net --recv-key 94B2664F
79 HTH.Rumen