apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42775] New: - Compilation problems on 64-bit Centos 5 - 32-bit libraries picked up by make instead of 64-bit ones
Date Fri, 29 Jun 2007 06:25:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42775>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42775

           Summary: Compilation problems on 64-bit Centos 5 - 32-bit
                    libraries picked up by make instead of 64-bit ones
           Product: APR
           Version: 1.2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: pdineshk@elitmus.com


I needed to compile Apache Httpd 2.2.4 on 64-bit Centos 5. I used the following
configure command:
  ./configure --prefix=/usr/local/apache2.2.4-prod \
  --with-mpm=worker --with-included-apr \
  --enable-cache --enable-mem-cache --enable-access --enable-authz_host \
  --disable-setenvif --disable-userdir --disable-autoindex \
  --disable-env --disable-actions  --disable-authn_file \
  --disable-authn_default --disable-authz_groupfile \
  --disable-authz_user --disable-imap --disable-authz_default --disable-auth_basic \
  --disable-filter --disable-autoindex --disable-asis --disable-cgid \
  --disable-negotiation --disable-actions --disable-userdir \
  --disable-cgi  --disable-include --disable-asis  --disable-env \
  --disable-setenvif 

I got this error when I ran make (after the configure command ran): 

/usr/lib/libexpat.so: could not read symbols: File in wrong format

Centos keeps its 64-bit libraries in /lib & /usr/lib.  I thought that was the
problem and added the LDFLAGS environment variable before running configure.  

export LDFLAGS="-L/usr/lib64 -L/lib64"

But I got the same error.   configure shows the following messages:
checking for Expat in /usr... yes
  adding "-lexpat" to APRUTIL_EXPORT_LIBS
  setting APRUTIL_LDFLAGS to ""
  adding "/usr/lib/libexpat.la" to APRUTIL_LIBS

I went and changed the order in which the lib directories are searched in
apr-util/configure:

if test -z "$expat_include_dir"; then
  for d in /usr /usr/local xml/expat-cvs xml/expat $srcdir/xml/expat ; do

  echo "$as_me:$LINENO: checking for Expat in $d" >&5
echo $ECHO_N "checking for Expat in $d... $ECHO_C" >&6

  expat_libtool=""

  if test -r "$d/lib/expat.h.in"; then
        expat_include_dir="$d/lib"
    expat_ldflags="-L$d/lib"
    expat_libs="-lexpat"
    expat_libtool="$d/lib/libexpat.la"
  elif test -r "$d/include/expat.h" -a \
    -r "$d/lib64/libexpat.la"; then
        expat_include_dir="$d/include"
    expat_ldflags="-L$d/lib64"
    expat_libs="-lexpat"
    expat_libtool="$d/lib64/libexpat.la"
  elif test -r "$d/include/expat.h" -a \
    -r "$d/lib/libexpat.la"; then
        expat_include_dir="$d/include"
    expat_ldflags="-L$d/lib"
    expat_libs="-lexpat"
    expat_libtool="$d/lib/libexpat.la"

The make goes through without issues now & apache runs.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message