• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 986
  • Last Modified:

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

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
designitm
Asked:
designitm
  • 4
  • 2
  • 2
1 Solution
 
Rance_HallCommented:
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
 
Duncan RoeSoftware DeveloperCommented:
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
 
designitmAuthor Commented:
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
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
designitmAuthor Commented:
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
 
Duncan RoeSoftware DeveloperCommented:
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
 
designitmAuthor Commented:
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
 
Rance_HallCommented:
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
 
designitmAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now