LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2008, 09:50 AM   #1
Infinity
Member
 
Registered: Sep 2001
Location: USA
Distribution: Fedora 10, Nokia N800 OS2008
Posts: 56

Rep: Reputation: 15
Question Apache 2.2.8 make dies looking for libexpat.la


I have apache 2.2.6 installed from the tarball and am attempting to make 2.2.8 using the same configure script from previous versions:

Code:
./configure --prefix=/usr/local/apache --enable-rewrite --enable-auth-anon --enable-auth-dbm --enable-auth-digest --enable-proxy --enable-so --with-perl=/usr/bin/perl
This is generating the following error when running make:

Code:
/usr/local/apache/build/libtool --silent --mode=link gcc -g -O2 -pthread        -o htpasswd  htpasswd.lo   -lm /home/myusername/Download/httpd-2.2.8/srclib/pcre/libpcre.la /usr/local/apache/lib/libaprutil-1.la -lsqlite3 -lexpat /usr/local/apache/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
libtool: link: cannot find the library `/usr/lib/libexpat.la'
make[2]: *** [htpasswd] Error 1
I noticed on the Fedora 8 RPM that "drop the .la file" occurred within the last year.
http://www.rpmfind.net//linux/RPM/fe....1-2.i386.html

So the question is, what do I need to do to get 2.2.8 to build?
 
Old 03-25-2008, 12:08 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
IIRC expat is an optional dependency for Apache (as of 2.2.6 at least). Is there a --without-expat or similar option? Otherwise you're either going to need libexpat.la or to hack the Apache code.
 
Old 03-25-2008, 01:18 PM   #3
Infinity
Member
 
Registered: Sep 2001
Location: USA
Distribution: Fedora 10, Nokia N800 OS2008
Posts: 56

Original Poster
Rep: Reputation: 15
expat is for xml.

Expat is for XML processing so I'd rather keep that ability, especially for messing with SOAP in PHP.

Trying without-expat and statically linking htpasswd hasn't helped, either.
 
Old 03-29-2008, 01:37 PM   #4
Infinity
Member
 
Registered: Sep 2001
Location: USA
Distribution: Fedora 10, Nokia N800 OS2008
Posts: 56

Original Poster
Rep: Reputation: 15
Any other suggestions on how to get apache 2.2.8 to make without the error?
 
Old 03-29-2008, 02:43 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You need libexpat.la. If it's not in the RPM for your distro, then you'll have to build Expat build it from source I suppose.
 
Old 05-14-2008, 02:10 PM   #6
Infinity
Member
 
Registered: Sep 2001
Location: USA
Distribution: Fedora 10, Nokia N800 OS2008
Posts: 56

Original Poster
Rep: Reputation: 15
Fedora 8

At some point the installation of other packages cleared this up for me, not sure why. I now have 2.2.8 running successfully.
 
Old 10-06-2009, 09:09 AM   #7
TriZ
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Just a comment for further users - I had the same error, solved just doing make install of the library in [apache source dir]/srclib/apr-util/xml/expat/lib.
 
Old 02-23-2010, 04:26 PM   #8
mikemccune
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
The prior post was:

"Just a comment for further users - I had the same error, solved just doing make install of the library in [apache source dir]/srclib/apr-util/xml/expat/lib."

I did this, and it did not work. However, I cleared out the destination directory for Apache (the destination for "make install"), then I did a "make clean" and another "make". It got past the error the second time. I'm not sure why.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
if qemu dies, my mouse dies with it eantoranz Linux - Software 3 11-02-2007 10:30 PM
libexpat.so.1 yannifan Linux - General 2 02-28-2007 03:00 AM
Apache httpd dies for strange reason GSMD Linux - Server 3 02-28-2007 01:22 AM
libexpat.so in wrong format when compiling Apache 2.2 under openSuSE 10 Basel Linux - Software 1 03-11-2006 12:49 AM
x server dies...dies...dead! aquaboot Linux - Software 2 08-28-2005 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration