Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache died this morning... why?
Date: Mon, 30 Dec 2013 11:31:28
Message-Id: 52C15972.7080103@gmail.com
In Reply to: [gentoo-user] Apache died this morning... why? by Tanstaafl
1 On 30/12/2013 12:47, Tanstaafl wrote:
2 > Good morning everyone,
3 >
4 > Came in this morning to a server with a non-running apache...
5 >
6 > It did restart ok, but when I checked the error log, I found this:
7 >
8 > [Mon Dec 30 03:10:02 2013] [notice] Graceful restart requested, doing
9 > restart
10 > [Mon Dec 30 03:10:02 2013] [error] (9)Bad file descriptor:
11 > apr_socket_accept: (client socket)
12 > apache2: Syntax error on line 169 of /etc/apache2/httpd.conf: Syntax
13 > error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load
14 > /usr/lib64/apache2/modules/libphp5.so into server: /lib64/libc.so.6:
15 > version `GLIBC_2.16' not found (required by /usr//lib64/libcurl.so.4)
16 >
17 > I did recently do the gcc upgrade to 4.7... so is this because I failed
18 > to rebuild sys-devel/libtool?
19
20 The error is that PHP5 cannot load as it wants libcurl which is
21 complaining about a missing libc version.
22
23 To see what's going on, run ldd on:
24
25 /usr/lib64/apache2/modules/libphp5.s
26 /usr//lib64/libcurl.so.4
27
28 preserved-rebuild should just take care of all this automagically.
29 Do you have preserve-libs in FEATURES?
30
31 >
32 > Or do I need to rebuild apache? Or both?
33
34 Do a pretend run of revdep-rebuild. I'll bet you end up rebuilding curl
35 and/or php, but not apache.
36
37 Apache is unlikely to be at fault, it loads a dynamic module and use it,
38 that module either works or it doesn't.
39
40 >
41 > The GCC Upgrade guide is a bit outdated (still referring to gcc 3.4 and
42 > 4.1, with no mention of newer versions, so I wasn't sure if that was
43 > still necessary...
44
45 According to the posted error, this has nothing to do with compiler
46 versions, it is linker errors related to glibc
47
48 You do not have to rebuild system, world or the known universe. You only
49 have to do that when the a gcc upgrade changes the data format on-disk
50 that the C++ compiler generates. That has not happened here.
51
52 There's an insane amounts of FUD around about rebuilding gcc, all of it
53 originating from ricers without a clue. You run strictly stable-only so
54 never fear, if a gcc upgrade required a world rebuild you would have
55 already been subjected to 12-month long threads about it right here on
56 this list
57
58
59 --
60 Alan McKinnon
61 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Apache died this morning... why? Tanstaafl <tanstaafl@×××××××××××.org>