Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* apache 2 compiler problem
@ 2002-04-10 12:10 Marco
  2002-04-11 17:31 ` Tim Mooney
  0 siblings, 1 reply; 3+ messages in thread
From: Marco @ 2002-04-10 12:10 UTC (permalink / raw)


Hi all,
I have tried to build apache 2.0.35 on a DS10
with tru64 v5.1 with the following configure options
$ ./configure --with-mpm=prefork --enable-ssl --with-ssl=/usr/local/ssl 
  --enable-cgi --enable-rewrite --enable-speling  --enable-so

i had to set the LIBS var to
LIBS=-lpthread
to avoid error with the linker /sbin/ld
apache compile successfully but when
i trie to launch with the command

# /usr/local/apache2/bin/apachectl start

i got the following output :

# /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

does anyone know some workaroung ?

thanks
	Marco De Simone



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: apache 2 compiler problem
  2002-04-10 12:10 apache 2 compiler problem Marco
@ 2002-04-11 17:31 ` Tim Mooney
  2002-04-12 14:13   ` Marco
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Mooney @ 2002-04-11 17:31 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: apache 2 compiler problem
  2002-04-11 17:31 ` Tim Mooney
@ 2002-04-12 14:13   ` Marco
  0 siblings, 0 replies; 3+ messages in thread
From: Marco @ 2002-04-12 14:13 UTC (permalink / raw)


Tim Mooney wrote:
> 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.

this is the output from ldd


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

         Main  =>   /usr/local/apache2/lib/libapr.so
         libc.so  =>   /usr/shlib/libc.so
#


and this the output from
# odump -D /usr/local/ssl/lib/libssl.so


                         ***DYNAMIC SECTION***
                  Tag            Value

/usr/local/ssl/lib/libssl.so:
                   UNREFEXTNO: 14.
                  LOCAL_GOTNO: 104.
                       GOTSYM: 180.
                  LOCAL_GOTNO: 442.
                       GOTSYM: 517.
                       SONAME: libssl.so
                   TIME_STAMP: (0x3cb6d157) Fri Apr 12 14:21:43 2002

                    ICHECKSUM: 0xc6bc75ea
                     IVERSION: 0.9.6
                     CONFLICT: 0x000003ffbfeb2b80
                   CONFLICTNO: 1.
                  RLD_VERSION: 2.
                         HASH: 0x000003ffbfeb9520
                       STRTAB: 0x000003ffbfeb3cc0
                       SYMTAB: 0x000003ffbfeb61a0
                         MSYM: 0x000003ffbfeb2b90
                        STRSZ: 9431.
                       SYMENT: 24.
                       PLTGOT: 0x000003fffffd3cf0
                     SYMTABNO: 549.
                 BASE_ADDRESS: 0x000003ffbfeb0000
                        RELSZ: 9104.
                       RELENT: 16.
                          REL: 0x000003ffbfeb07f0
                        RPATH: /usr/local/ssl/lib
                    LIBLISTNO: 2.
                      LIBLIST: 0x000003ffbfeb07c0
                       NEEDED: libcrypto.so
                       NEEDED: libc.so
                         INIT: 0x000003ffbfee7550
                         FINI: 0x000003ffbfee7590
                        FLAGS: 0x00000001
# ldd /usr/local/ssl/lib/libssl.so

         Main  =>   /usr/local/ssl/lib/libssl.so
         libcrypto.so  =>   /usr/local/ssl/lib/libcrypto.so
         libc.so  =>   /usr/shlib/libc.so

> 
> 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.

the libapr.so is created I get no errors from the linker
i had also tried to set the RPATH to point to
/usr/local/ssl/lib


this is my environment :

RPATH=/usr/local/ssl/lib
USER=root
MACHTYPE=alphaev6-dec-osf5.1
SHLVL=1
SHELL=/bin/sh
HOSTTYPE=alphaev6
OSTYPE=osf5.1
HOME=/
TERM=vt100
PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local
_=/usr/bin/env



> 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.
> 

after extracting openssl-0.9.6c.tar.gz
i configured with this command
# ./Configure alpha-cc-rpath shared

is it wrong ?

finally i have configured apache again with this options :
# ./configure  --with-mpm=prefork --enable-ssl --with-ssl=/usr/local/ssl
    --enable-cgi --enable-rewrite --enable-speling --enable-so

but  I always get the same error from the loader

regards
	Marco De Simone



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-12 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-10 12:10 apache 2 compiler problem Marco
2002-04-11 17:31 ` Tim Mooney
2002-04-12 14:13   ` Marco

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