Showing posts with label compile errors. Show all posts
Showing posts with label compile errors. Show all posts

Sunday, September 30, 2012

I'm setting up stunnel and will be enabling x-forwarded-for patch for it to partner with haproxy. However, I'm having an issue in starting up haproxy.
[root@ZAPATUS stunnel]# /etc/init.d/stunnel start
Starting universal SSL tunnel: stunnelClients allowed=500
stunnel 4.53 on i686-pc-linux-gnu platform
Compiled/running with OpenSSL 1.0.1c 10 May 2012
Threading:PTHREAD SSL:+ENGINE+OCSP+FIPS Auth:LIBWRAP Sockets:POLL+IPv6
Reading configuration from file /usr/local/etc/stunnel/stunnel.conf
FIPS_mode_set: F06D065: error:0F06D065:common libcrypto routines:FIPS_mode_set:fips mode not supported
str_stats: 5 block(s), 93 data byte(s), 210 control byte(s)
 failed.
To fix, include fips=no on stunnel.conf. Here is the global portion of my stunnel.conf
sslVersion = all
setuid = stunnel 
setgid = stunnel
pid = /tmp/stunnel.pid
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
fips=no 

Monday, September 17, 2012

Error compiling mod_security

Oh men! Compiling mod_security is hell! I've been trying to compile it for several days now. I successfully compile mod_evasive with a slight issue. Here is my error in mod_security
[root@ip-10-162-54-86 modsecurity-apache_2.6.7]# /usr/local/apache2/bin/apxs -cia apache2/modsecurity.c                        
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache/include   -I/usr/local/apache/include   -c -o apache2/modsecurity.lo apache2/modsecurity.c && touch apache2/modsecurity.slo
In file included from apache2/modsecurity.h:38,
                 from apache2/modsecurity.c:19:
apache2/msc_xml.h:21:31: error: libxml/xmlschemas.h: No such file or directory
apache2/msc_xml.h:22:26: error: libxml/xpath.h: No such file or directory
In file included from apache2/modsecurity.h:38,
                 from apache2/modsecurity.c:19:
apache2/msc_xml.h:27: error: expected specifier-qualifier-list before 'xmlSAXHandler'
There has been an issue with apxs. Upon searching in Google, solution was compile it this way
/usr/local/apache2/bin/apxs -cia -n modsecurity -I /usr/include/libxml2 apache2/modsecurity.c 
Viola! modsecurity module was successfully compiled.

Monday, August 27, 2012

apu library not found

I'm compiling mod_security to patch with apache. However, I encountered the following when patching mod_security with the command apxs on the apache.
checking for libapu config script... no
configure: *** apu library not found.
configure: error: apu library is required
Solution:
Install apr-util-devel. I install it via yum and this resolves the error.
yum -y install apr-util-devel

Saturday, May 5, 2012

Compile Error: DBA Could not find necessary header file

Error when compiling php
checking for cURL support... no
checking if we should use cURL for url streams... no
checking for QDBM support... no
configure: error: DBA: Could not find necessary header file(s).
To resolve, install gdbm-devel

Compile Error: Cannot find libmysqlclient

I'm compiling php via source under a 64bit CentOS 5.6. Encountered the ff while compiling:
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for 8-bit clean memcmp... yes
checking for stdarg.h... (cached) yes
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
To resolve, just put --with-libdir=lib64 in your ./configure options when compiling php.

Update: If this didn't work, try to install mysql-devel and compile again.

Compile Error: trouble compiling Net-SSLeay

I'm having a trouble compiling Net-SSLeay. Got an error when doing make
rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/lib" cc  -shared -O2 -L/usr/local/lib -fstack-protector SSLeay.o  -o blib/arch/auto/Net/SSLeay/SSLeay.so      \
           -L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto -lz     \

/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1
I found that I need to recompile openssl with shared attributes (./config shared). After recompiling openssl with shared attributes, I was able to compile perl module Net-SSLeay successfully. BTW, I'm using 64bit CentOS 5.6

Compile Error: no recognized SSL/TLS toolkit detected

Encounter the ff error when installing apache2 with openssl support
no SSL-C headers found
configure error:...no recognized SSL/TLS toolkit detected 
To resolve, install package openssl-devel.

Compile Error: ICU headers and libraries not found

Encounter the ff when compiling php5
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
To resolve, install package libicu and libicu-devel.

Compile Error: cannot find -lltdl

Error after doing make in php5.
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
To resolve, install package libtool-ltdl-devel

Compile Error: BerkeleyDB not available

I'm compiling openldap when suddenly compiling stops
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available
To resolve, you need to install db-5. If you still encounter the issue despite having db-5 installed on the system, try to export the ff:
CPPFLAGS="-I/usr/local/BerkeleyDB.5.3/include"
export CPPFLAGS
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.3/lib -R/usr/local/BerkeleyDB.5.3/lib"
export LDFLAGS
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.5.3/lib"
export LD_LIBRARY_PATH
Then compile again.

Compile Error: libssl not found when compiling dovecot

I'm compiling dovecot with ssl support when I got an error.
Checking for SSL_read in -lssl... no
configure: error: Can't build with OpenSSL: libssl not found
To resolve, install package openssl-devel.

Compile Error: Cannot find ldap.h Cannot find ldap.h

I'm compiling php with ldap support but I encountered an error.
checking for ANSI C header files... (cached) yes
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap.h
To resolve, install package openldap-devel

Friday, May 4, 2012

Compile Error: xml-2 config not found

I'm compiling php 5.3.10 when I got this error.
checking whether to enable LIBXML support... yes 
checking libxml2 install dir... no 
checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation.  
To resolve, install package libxml-devel.