You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Al Sparks <da...@yahoo.com> on 2010/04/04 23:08:37 UTC

[users@httpd] Wrong ELF class; libxml2

I'm running CentOS 5.4 64bit, and I'm attempting to migrate an Apache web site from Apache 2.0 to Apache 2.2.  The Apache 2.0 instance is running on an old Fedora 32bit machine.

On the new box (as well as the old) I've compiled and installed from the source.

Attempting to run off the 2.0 httpd.conf, I get the following error:

  httpd: Syntax error on line 237 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/lib/libxml2.so into server: /usr/lib/libxml2.so: wrong ELF class: ELFCLASS32

I have both 32b and 64b libxml2 packages installed:

  Installed Packages
  libxml2.i386                           2.6.26-2.1.2
  libxml2.x86_64                         2.6.26-2.1.2
  libxml2-devel.i386                     2.6.26-2.1.2
  libxml2-devel.x86_64                   2.6.26-2.1.2
  libxml2-python.x86_64                  2.6.26-2.1.2

Any hints?
   === Al


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Wrong ELF class; libxml2

Posted by Al Sparks <da...@yahoo.com>.
As in /usr/lib64/

Got it.
   === Al



----- Original Message ----
From: Eric Covener <co...@gmail.com>
To: users@httpd.apache.org
Sent: Sun, April 4, 2010 1:21:03 PM
Subject: Re: [users@httpd] Wrong ELF class; libxml2

On Sun, Apr 4, 2010 at 5:08 PM, Al Sparks <da...@yahoo.com> wrote:
> I'm running CentOS 5.4 64bit, and I'm attempting to migrate an Apache web site from Apache 2.0 to Apache 2.2.  The Apache 2.0 instance is running on an old Fedora 32bit machine.
>
> On the new box (as well as the old) I've compiled and installed from the source.
>
> Attempting to run off the 2.0 httpd.conf, I get the following error:
>
>  httpd: Syntax error on line 237 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/lib/libxml2.so into server: /usr/lib/libxml2.so: wrong ELF class: ELFCLASS32
>
> I have both 32b and 64b libxml2 packages installed:
>
>  Installed Packages
>  libxml2.i386                           2.6.26-2.1.2
>  libxml2.x86_64                         2.6.26-2.1.2
>  libxml2-devel.i386                     2.6.26-2.1.2
>  libxml2-devel.x86_64                   2.6.26-2.1.2
>  libxml2-python.x86_64                  2.6.26-2.1.2
>

See line 237 in your config.  If you're using LoadFile in your 64-bit
webserver, point to the 64-bit libxml library.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Wrong ELF class; libxml2

Posted by Eric Covener <co...@gmail.com>.
On Sun, Apr 4, 2010 at 5:08 PM, Al Sparks <da...@yahoo.com> wrote:
> I'm running CentOS 5.4 64bit, and I'm attempting to migrate an Apache web site from Apache 2.0 to Apache 2.2.  The Apache 2.0 instance is running on an old Fedora 32bit machine.
>
> On the new box (as well as the old) I've compiled and installed from the source.
>
> Attempting to run off the 2.0 httpd.conf, I get the following error:
>
>  httpd: Syntax error on line 237 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/lib/libxml2.so into server: /usr/lib/libxml2.so: wrong ELF class: ELFCLASS32
>
> I have both 32b and 64b libxml2 packages installed:
>
>  Installed Packages
>  libxml2.i386                           2.6.26-2.1.2
>  libxml2.x86_64                         2.6.26-2.1.2
>  libxml2-devel.i386                     2.6.26-2.1.2
>  libxml2-devel.x86_64                   2.6.26-2.1.2
>  libxml2-python.x86_64                  2.6.26-2.1.2
>

See line 237 in your config.  If you're using LoadFile in your 64-bit
webserver, point to the 64-bit libxml library.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org