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
designitmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.