Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: apache 2 compiler problem
Date: 11 Apr 2002 17:31:17 GMT	[thread overview]
Message-ID: <a94h95$naj$1@news.ndsu.nodak.edu> (raw)
In-Reply-To: 3CB42BCA.1040908@studenti.unina.it

In article <3CB42BCA.1040908@studenti.unina.it>,
Marco  <marco@studenti.unina.it> wrote:
  
> # /usr/local/apache2/bin/apachectl start
> 186251:/usr/local/apache2/bin/httpd: /sbin/loader: Fatal Error: call to 
> unresolved symbol from /usr/local/apache2/lib/libapr.so (pc=0x300000266d0)
> /usr/local/apache2/bin/apachectl start: httpd could not be started

Your libapr.so shared object requires a symbol that /sbin/loader can't find.
It's probably having problems finding the OpenSSL library, which was likely
built as a shared library as well.  You should be able to run

	ldd /usr/local/apache2/lib/libapr.so

and see which shared objects the loader can't find.

You either need to make sure that when libapr.so is created, the linker is
told of additional directories to search for shared objects, or you need
to build the search path into the underlying shared objects themselves.
I prefer the latter, because it makes it very easy to link with *and use*
libraries that are installed in places out of the standard loader search path.

Assuming that it is the OpenSSL library that the loader can't find, consider
rebuilding your OpenSSL library using the (non-default) config target of
`alpha-cc-rpath'.  I contributed the code to make that target available,
and I know it works because I've been using it for a long time.  Once you
have the OpenSSL library rebuilt, you should be able to run

	odump -D /path/to/lib/libssl.so

and see an

	RPATH: /path/to/lib

entry.  Once you have that, you can rebuild Apache and it should be able to
find OpenSSL from that point on.

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


  reply	other threads:[~2002-04-11 17:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-10 12:10 apache 2 compiler problem Marco
2002-04-11 17:31 ` Tim Mooney [this message]
2002-04-12 14:13   ` Marco
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox