Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Error when creating make file for Apache 2.2.10, absolute value paths are not being met

Posted on 2008-11-03
8
Medium Priority
?
968 Views
Last Modified: 2013-12-15
Hello Everyone,

I have decided recently to re-install Apache and build my server from a minimal system configuration that I received from my host company. When I configure the server everything goes well, these are my configuration options:

./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-proxy=shared --enable-ssl=shared --enable-suexec=shared --disable-userdir --disable-autoindex  --disable-status --enable-so --with-mpm=prefork --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-headers --enable-expires --disable-negotiation --enable-deflate


But when I run the make file I get this error:

-ldb-4.3 -lexpat /usr/lib64/libapr-1.la -lpthread -ldl
libtool: link: only absolute run-paths are allowed
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/install/httpd-2.2.10/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/install/httpd-2.2.10/support'
make: *** [all-recursive] Error 1


I am running a CentOs 64 Bit system.

Any help would be great!

Thank you,

D
0
Comment
Question by:designitm
  • 4
  • 2
  • 2
8 Comments
 
LVL 8

Expert Comment

by:Rance_Hall
ID: 22872368
I havent had the occasion to build apache on a centos 64bit system, so take this with a grain of salt, but the error message seems self explanatory, you cant do what you have requested because you have requested the linker to realtively link, but it cant do that.

is there a configure option that you can add to supply full paths to the linker?

and if you do that will it fix your error?
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 22872372
Please post the full line that is in error - you have only posted the last part of it. It should start with "gcc", "ld" or maybe "g++".
The configure line looks OK to me - this could be a bug.
0
 

Author Comment

by:designitm
ID: 22872420
I am not sure about the linker option,

but here is the error message as soon as it enters in the support directory:

Making all in support
make[1]: Entering directory `/install/httpd-2.2.10/support'
make[2]: Entering directory `/install/httpd-2.2.10/support'
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -pthread    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE    -I/install/httpd-2.2.10/srclib/pcre -I. -I/install/httpd-2.2.10/os/unix -I/install/httpd-2.2.10/server/mpm/prefork -I/install/httpd-2.2.10/modules/http -I/install/httpd-2.2.10/modules/filters -I/install/httpd-2.2.10/modules/proxy -I/install/httpd-2.2.10/include -I/install/httpd-2.2.10/modules/generators -I/install/httpd-2.2.10/modules/mappers -I/install/httpd-2.2.10/modules/database -I/usr/include/apr-1 -I/install/httpd-2.2.10/server -I/install/httpd-2.2.10/modules/proxy/../generators -I/usr/kerberos/include -I/install/httpd-2.2.10/modules/ssl -I/install/httpd-2.2.10/modules/dav/main  -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -pthread     -L/usr/kerberos/lib64   -o htpasswd  htpasswd.lo   -lm /install/httpd-2.2.10/srclib/pcre/libpcre.la -L -R -laprutil-1 -lldap -llber -ldb-4.3 -lexpat /usr/lib64/libapr-1.la -lpthread -ldl
libtool: link: only absolute run-paths are allowed
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/install/httpd-2.2.10/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/install/httpd-2.2.10/support'
make: *** [all-recursive] Error 1


For the linking issue, I have had this install before, but I was not using a minimal system at the time. I was using a pre-config system by the host company.

Let me know if this helps,

Thanks

D
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Accepted Solution

by:
designitm earned 0 total points
ID: 22872841
Hi,

I have solved the problem.

I do not know why this worked exactly, but I uninstalled the apr-devel package and libtool package from CentOs, then configured, make, make install all worked great, as well the server was up.

Thank you to everyone who helped.

If anyone know why removing these packages worked I would appreciate the knowledge.

D
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 22874293
Well done! libtool was I think out of line in insisting on an absolute path. In the absence of libtool, I imagine configure created Makefiles which used the gcc command directly. Very interesting - will look out for this problem in the future - thanks for posting your solution.
0
 

Author Comment

by:designitm
ID: 22874328
Hi,

It actually was not libtool that was the issue. I had re-initialized the server and re-traced my steps to see the activity. What I noticed is that it was apr-devel that was causing the issue and that libtool was needed to have auth_digest enabled when installing.

Once I removed apr-devel from the system the installation worked perfectly to my knowledge.

I hope this helps,

Daniel
0
 
LVL 8

Expert Comment

by:Rance_Hall
ID: 22877168
by removing the version of libtool that was installed on the centos box you forced the apache code to use the version of libtool that is self contained, for some reason, the internal libtool worked and the centos one didnt, and I think this might just be a bug.  (probably a 64bit specific bug at that)

0
 

Author Comment

by:designitm
ID: 22878313
I installed Apache again, almost 15 times in the last 3 days, all seeing different things happen, and I didn't have any issues with libtool, when I ignored the apr-devel it worked. I am sure I am going to re-install it again at some point to see another layout. I will post back here with my results.

But definitely a bug issue

D
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question