jorhett: (Default)
posted by [personal profile] jorhett at 02:19am on 15/01/2013 under

If you are getting compilation errors from things which include openssl, there is a simple fix. Redhat shipped three broken rpm package includes in openssl-1.0.0. For some reason unclear to me, CentOS hasn’t pushed out this fix. So you have to do it yourself.

Details are here: https://bugzilla.redhat.com/show_bug.cgi?id=593723

The fix is really simple:

$ sudo sed -i -e 's/lib6464/lib64/' /usr/lib64/pkgconfig/libcrypto.pc
$ sudo sed -i -e 's/lib6464/lib64/' /usr/lib64/pkgconfig/libssl.pc
$ sudo sed -i -e 's/lib6464/lib64/' /usr/lib64/pkgconfig/openssl.pc
This has been cut for brevity to my livejournal friends. You can read the entire article at http://www.netconsonance.com/2013/01/broken-path-usrlib6464-on-centos-6/.
jorhett: (Default)
posted by [personal profile] jorhett at 06:56pm on 15/01/2013 under

I ran into a weird problem where postfix suddenly started segfaulting on me just after upgrading it to the latest version.

Jan 15 03:28:41 geode kernel: smtpd[8569]: segfault at c9 ip 00007fcff5fa8469 sp 00007fffe88163d0 error 4 in libcrypto.so.1.0.0[7fcff5ec8000+174000]

Debugging with strace showed me that the segfault happened just after attempting a MySQL query. Google tells me that people are having the same problem with Percona libraries too, although they didn’t figure out the answer. I’ll save you the story of all the debugging, but it turns out that if you install MariaDB-devel, then you must also install MariaDB-shared or programs that you compile will segfault. It is likely the same answer for Percona.

No, I don’t know why. It’s a bit late for debugging.

$ sudo yum install MariaDB-shared --enablerepo=mariadb
....
Running Transaction
  Installing : MariaDB-shared-5.5.28a-1.x86_64                                                       1/1 
  Verifying  : MariaDB-shared-5.5.28a-1.x86_64                                                       1/1 

Installed:
  MariaDB-shared.x86_64 0:5.5.28a-1                                                                                                                 

Complete!
This has been cut for brevity to my livejournal friends. You can read the entire article at http://www.netconsonance.com/2013/01/segfaults-when-using-postfix-with-mariadb-or-percona/.

August

SunMonTueWedThuFriSat
    1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9 10
 
11
 
12
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31