Gentoo Archives: gentoo-dev

From: Ken <ken@×××××××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] postfix-2.0.3, mysql, and base system issues
Date: Mon, 10 Feb 2003 17:12:16
Message-Id: 200302100901.56336.ken@kickasskungfu.com
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hey all,
5
6 I'm a bit stumped by this issue. I'm hoping one of you will have some insight.
7 Yesterday I upgraded from postfix-1.1.x to postfix-2.0.3. Everything seemed
8 fine, same use flags as before and all that. However, I cannot for the life o
9 me get it to build with mysql support. I've tried changing use flags, doing
10 it manually, using an older version, updating other things on my system and
11 then trying to build it and no luck with any of it.
12
13 I've updated gcc, gcc-config, glibc, texinfo, pam, cyrus-sasl, mysql, and
14 postfix. The only other thing I can think of is that this has something to do
15 with the gcc-2.95.3 -> gcc-3.2.1-r6 update I.
16
17 root@×××××××××××××.com > emerge info
18 Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r4,2.3.1-r2)
19 =================================================================
20 System uname: 2.4.19-gentoo-r7 i586 AMD-K6(tm) 3D processor
21 GENTOO_MIRRORS="http://gentoo.oregonstate.edu
22 http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
23 CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
24 /usr/X11R6/lib/X11/xkb /usr/kde/3/share/config /usr/share/config"
25 CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
26 PORTDIR="/usr/portage"
27 DISTDIR="/mnt/win_c/distfiles"
28 PKGDIR="/usr/portage/packages"
29 PORTAGE_TMPDIR="/mnt/win_c"
30 PORTDIR_OVERLAY="/usr/portage.local/"
31 USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde gnome libg++ mikmod
32 mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv
33 zlib gtkhtml alsa gdbm berkdb slang readline arts bonobo svga java guile sdl
34 gpm tcpd libwww perl python esd imlib oggvorbis gtk qt motif opengl mozilla
35 snmp X tcltk ssl sasl pam mysql maildir imap -kerberos -ldap"
36 COMPILER="gcc3"
37 CHOST="i586-pc-linux-gnu"
38 CFLAGS="-march=k6-2 -O2 -pipe"
39 CXXFLAGS="-march=k6-2 -O2 -pipe"
40 ACCEPT_KEYWORDS="x86"
41 MAKEOPTS="-j3"
42 AUTOCLEAN="yes"
43 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
44 FEATURES="sandbox ccache buildpkg"
45
46
47 Postfix is being compiled with mysql use flags. I see it compile the
48 dict_mysql.c code, as well as watch the mysql compiler flags scroll by during
49 the build. An when doing a strace, I see the program load the
50 libmysqlclient.so:
51
52 open("/usr/lib/libmysqlclient.so.10", O_RDONLY) = 3
53 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\201"..., 1024) =
54 1024
55 fstat64(3, {st_mode=S_IFREG|0755, st_size=244048, ...}) = 0
56 mmap2(NULL, 222752, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4011c000
57 mprotect(0x4013a000, 99872, PROT_NONE) = 0
58 mmap2(0x4013a000, 102400, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
59 0x1d) = 0x4013a000
60 close(3) = 0
61
62 I also noticed that postfix was trying to contact nscd for some kind of
63 resolution. /var/run/.nscd_socket: no such file or directory. There seems to
64 be no mention of this in the postfix doc's or makefiles. nscd and nsswitch
65 appear to be part of baselayout. And thats the part which makes me think this
66 whole mess could be related to the gcc update. I never even knew those files
67 were there until this postfix problem happened.
68
69 No matter what I tried it all ends up the same, no mysql support.
70
71 root -> postconf -m
72 static
73 sdbm
74 nis
75 regexp
76 environ
77 proxy
78 btree
79 unix
80 hash
81
82 To sum up, I started with a working postfix-1.1.20020917-r1 install with mysql
83 support. I then upgraded to 2.0.3 which had no mysql support. I then updated
84 a whole bunch of stuff on my system to see if I could get it to compile
85 correctly and still had no luck. So then I tried going back to my old working
86 version, and it too has the same problem now. My whole email system is based
87 upon mysql backend. Anyone else have any ideas? Any help would be
88 appreciated.
89
90 btw - sorry if this email is a little scattered, this was all I did yesterday.
91 If I left anything out please let me know.
92
93 Thanks
94 - --
95 Ken - "I'm just re-do."
96 ken@×××××××××××××.com
97 - -----------------------------------------------------------------
98 pgp fingerprint 2D6D 67D1 1600 04E0 4AF7 BA7E 26A5 4189 9228 1585
99 -----BEGIN PGP SIGNATURE-----
100 Version: GnuPG v1.2.1 (GNU/Linux)
101
102 iD8DBQE+R9r4JqVBiZIoFYURAgVzAJ9T0WuojPZ9koOIXyAp/cNy7FVIaACcCeMK
103 S1oiHnxH+W5rqXz+zBzlPdw=
104 =Uhuj
105 -----END PGP SIGNATURE-----
106
107
108 --
109 gentoo-dev@g.o mailing list