Operating System - HP-UX
1834345 Members
1954 Online
110066 Solutions
New Discussion

Re: Need help to build apache on HP-Unix.

 
SOLVED
Go to solution
GnanaShekar
Regular Advisor

Need help to build apache on HP-Unix.

Hi,

I am trying to build apache on HP-Unix.

bash-3.00# uname -a
HP-UX banpchp5 B.11.23 U ia64 1952620000 unlimited-user license

I am getting a lot of warnings of the following kind.


/bin/sh /tmp/apache/httpd-2.0.58/srclib/apr/libtool --silent --mode=link cc -g -Ae +Z -mt -DHAVE_CONFIG_H -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -I/tmp/apache/httpd-2.0.58/srclib/apr-util/include -I/tmp/apache/httpd-2.0.58/srclib/apr-util/include/private -I/tmp/apache/httpd-2.0.58/srclib/apr/include -I/tmp/apache/httpd-2.0.58/srclib/apr-util/xml/expat/lib -version-info 9:12:9 -o libaprutil-0.la -rpath /disk1/apache2058/lib buckets/apr_buckets_file.lo buckets/apr_buckets_pool.lo buckets/apr_buckets_flush.lo buckets/apr_buckets_refcount.lo buckets/apr_buckets_heap.lo buckets/apr_buckets_simple.lo buckets/apr_buckets.lo buckets/apr_buckets_mmap.lo buckets/apr_buckets_socket.lo buckets/apr_buckets_eos.lo buckets/apr_buckets_pipe.lo buckets/apr_brigade.lo buckets/apr_buckets_alloc.lo crypto/apr_sha1.lo crypto/apr_md4.lo crypto/apr_md5.lo crypto/uuid.lo crypto/getuuid.lo dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo dbm/apr_dbm.lo dbm/apr_dbm_berkeleydb.lo dbm/apr_dbm_gdbm.lo dbm/apr_dbm_sdbm.lo dbm/apr_dbm_ndbm.lo encoding/apr_base64.lo hooks/apr_hooks.lo ldap/apr_ldap_compat.lo ldap/apr_ldap_url.lo uri/apr_uri.lo xml/apr_xml.lo misc/apr_date.lo misc/apr_rmm.lo misc/apr_reslist.lo misc/apr_queue.lo misc/apu_version.lo strmatch/apr_strmatch.lo xlate/xlate.lo
(Bundled) cc: warning 922: "-b" is unsupported in the bundled compiler, ignored.
ld: Unsatisfied symbol "apr_array_push" in file hooks/.libs/apr_hooks.o
ld: Unsatisfied symbol "apr_os_default_encoding" in file xlate/.libs/xlate.o
ld: Unsatisfied symbol "apr_allocator_alloc" in file buckets/.libs/apr_buckets_alloc.o
ld: Unsatisfied symbol "apr_proc_mutex_lock" in file misc/.libs/apr_rmm.o
ld: Unsatisfied symbol "apr_thread_cond_destroy" in file misc/.libs/apr_reslist.o
1 warnings.
75 errors.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Please suggest.
Thanks.

5 REPLIES 5
Warren_9
Honored Contributor

Re: Need help to build apache on HP-Unix.

hi,

there is apache depot to download from HP and no need to build it...

http://h20293.www2.hp.com/portal/swdepot/displayProductsList.do?category=NSM

GOOD LUCK!!
Arunvijai_4
Honored Contributor
Solution

Re: Need help to build apache on HP-Unix.

Hi Sekar,

You are trying to build Apache with Bundled C Compiler which is not at all possible,. Either you should go for Ansi-C compiler or GCC on HP-UX. You can download GCC for free from,

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7663,00.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
GnanaShekar
Regular Advisor

Re: Need help to build apache on HP-Unix.

Hi,

I have downloaded and installed gcc.
I want to build apache 2.0.58 to get it installed on /disk1/apache2058. So I have done the following:

1. export CC="gcc"
2. ./configure --prefix=/disk1/apache2058
3. make
4. make install

Now when I start apache I am getting the following error. Please suggest.

bash-3.00# pwd
/disk1/apache2058/bin
bash-3.00# ./apachectl start
/usr/lib/hpux32/dld.so: Unable to find library 'libgcc_s.so.0'.
./apachectl[80]: 6695 Killed
bash-3.00#

Thanks
Arunvijai_4
Honored Contributor

Re: Need help to build apache on HP-Unix.

Hi,

You need to link lingcc.so to /usr/lib/hpux32
Find out where it is in your system and link it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
GnanaShekar
Regular Advisor

Re: Need help to build apache on HP-Unix.

Hi,

libgcc_s.so.0 was found in /opt/hp-gcc-4.0.3/lib/libgcc_s.so.0.

The following did the trick.

# pwd
/usr/lib/hpux32
# ln -s /opt/hp-gcc-4.0.3/lib/libgcc_s.so.0 libgcc_s.so.0

Thanks a lot.