LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2010, 05:41 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
amache2.0.54 compiling erros


Hi am trying to compile apache2.0.54 source on Redhat EL 5.4 64 bit machine and I am getting following error, I have done what I could find by goggling, can anyone help me

I have done the config with following options

./configure --prefix=/usr/local/apache2.0.54 --enable-so

make[1]: Entering directory `/root/install/httpd-2.0.54/support'
make[2]: Entering directory `/root/install/httpd-2.0.54/support'
/root/install/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/root/install/httpd-2.0.54/srclib/apr/include -I/root/install/httpd-2.0.54/srclib/apr-util/include -I. -I/root/install/httpd-2.0.54/os/unix -I/root/install/httpd-2.0.54/server/mpm/prefork -I/root/install/httpd-2.0.54/modules/http -I/root/install/httpd-2.0.54/modules/filters -I/root/install/httpd-2.0.54/modules/proxy -I/root/install/httpd-2.0.54/include -I/root/install/httpd-2.0.54/modules/generators -I/root/install/httpd-2.0.54/modules/dav/main -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/root/install/httpd-2.0.54/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/root/install/httpd-2.0.54/srclib/apr/include -I/root/install/httpd-2.0.54/srclib/apr-util/include -I. -I/root/install/httpd-2.0.54/os/unix -I/root/install/httpd-2.0.54/server/mpm/prefork -I/root/install/httpd-2.0.54/modules/http -I/root/install/httpd-2.0.54/modules/filters -I/root/install/httpd-2.0.54/modules/proxy -I/root/install/httpd-2.0.54/include -I/root/install/httpd-2.0.54/modules/generators -I/root/install/httpd-2.0.54/modules/dav/main -export-dynamic -o htpasswd htpasswd.lo /root/install/httpd-2.0.54/srclib/pcre/libpcre.la /root/install/httpd-2.0.54/srclib/apr-util/libaprutil-0.la -lgdbm -ldb-4.3 -lexpat /root/install/httpd-2.0.54/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl
/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/root/install/httpd-2.0.54/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/install/httpd-2.0.54/support'
make: *** [all-recursive] Error 1


Thanks and bust regards
 
Old 08-02-2010, 07:08 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't know how RH organises its 32 bit and 64 bit files, but that error sounds like it reading 32 bit instead of 64 bit. Have you tried setting ./configure options to point to /usr/lib64/libdb-4.3.so (that's a guess for the 64 bit lib directory)?
 
Old 08-02-2010, 08:27 PM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
hi gilead, no I did not, let me try that and thanks for the reply
 
Old 08-02-2010, 08:58 PM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi hope I am doing the right thing, any case I passwd this two options fro configure --libdir=/usr/lib64 --with-libdir=lib64 but stll make giving me above error
 
Old 08-04-2010, 03:36 PM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
hi I found this post by GATTACA URL
http://www.linuxquestions.org/questi...format-563541/

As he/she suggest, by including configure option --with-expat=builtin I was able to comple without any issues. But I am unable to find --with-expat this option in --help, (I thining we are just asking the compiler to use what ever librarys comes with apache to use hope I am right)

But this dosent work with 2.0.54 but works with 2.0.58

Best Regards

Last edited by procfs; 08-04-2010 at 03:42 PM.
 
  


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
Erros using vi newbie_adm Linux - Newbie 1 03-21-2007 01:31 AM
erros with display drivers TurtleFace Linux - General 3 07-09-2005 09:23 PM
mythfilldatabase erros Lobais Linux - Software 0 12-05-2004 10:30 AM
XSession-erros airrr Linux - Newbie 2 04-30-2004 09:11 AM
Compilation erros bruno buys Linux - Newbie 0 11-23-2003 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:50 AM.

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