You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by chris <ct...@free.fr> on 2005/10/21 12:51:53 UTC
Apache 2.0.x Binary distribution for HPUX
Hello guys,
I'm trying to build a binary distribution of Apache 2.0.54 for HPUX 32bits.
I can build the binaries, and the tar.gz distrib file, but I can not
deploy it on other servers, since my httpd binary doesn't seem to be
properly linked.
I build the distrib with the following command (default bindist.sh command)
$ cd /tmp/buildapache/hpux11/src/httpd-2.0.54
$ build/bindist.sh
Here are some output command:
-- start of command output ----
$ pwd
/tmp/buildapache/hpux11/test/bin
$ ./httpd -l
/usr/lib/dld.sl: Can't open shared library:
/tmp/buildapache/hpux11/src/httpd-2.0.54/bindist/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
IOT trap (core dumped)
$ chatr httpd
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path enabled first
/tmp/buildapache/hpux11/src/httpd-2.0.54/bindist/lib
shared library list:
static
/tmp/buildapache/hpux11/src/httpd-2.0.54/bindist/lib/libaprutil-0.sl.9
static
/tmp/buildapache/hpux11/src/httpd-2.0.54/bindist/lib/libexpat.sl.1
static
/tmp/buildapache/hpux11/src/httpd-2.0.54/bindist/lib/libapr-0.sl.9
dynamic /usr/lib/libm.2
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libc.2
shared library binding:
deferred
<...>
-- end of command output ----
I also try to build to pass some linkers options, like +b and +s to
allow the use of the SHLIB_PATH, but i'm still linked with wrong libraries.
Have anyone a clue?
thanks in advance,
regards.
Chris
Re: Apache 2.0.x Binary distribution for HPUX
Posted by chris <ct...@free.fr>.
hi guys,
it works fine for me this way ;o)
thanks a lot ;o)
Jeff Trawick wrote:
> On 10/21/05, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:
>
>>Jeff Trawick wrote:
>>
>>>I use some hacks for binbuild-like binary distributions on HP-UX:
>>>
>>>a) add -Wl,+s for SHLIB_PATH (you tried that)
>>
>>It works nicely if you tweak libtool's archive_cmds from +b to +s +b
>>in the hpux* section of acinclude.m4, aclocal.m4 and configure, also
>>toggling...
>>
>> hardcode_libdir_flag_spec='${wl}+s ${wl}+b ${wl}$libdir'
>> hardcode_minus_L=no
>>
>>and a bit further down (line after SHLIB_PATH)...
>>
>> shlibpath_overrides_runpath=yes
>
>
> That does looks nice!
>
Re: Apache 2.0.x Binary distribution for HPUX
Posted by Jeff Trawick <tr...@gmail.com>.
On 10/21/05, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:
> Jeff Trawick wrote:
> > I use some hacks for binbuild-like binary distributions on HP-UX:
> >
> > a) add -Wl,+s for SHLIB_PATH (you tried that)
>
> It works nicely if you tweak libtool's archive_cmds from +b to +s +b
> in the hpux* section of acinclude.m4, aclocal.m4 and configure, also
> toggling...
>
> hardcode_libdir_flag_spec='${wl}+s ${wl}+b ${wl}$libdir'
> hardcode_minus_L=no
>
> and a bit further down (line after SHLIB_PATH)...
>
> shlibpath_overrides_runpath=yes
That does looks nice!
Re: Apache 2.0.x Binary distribution for HPUX
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Jeff Trawick wrote:
> I use some hacks for binbuild-like binary distributions on HP-UX:
>
> a) add -Wl,+s for SHLIB_PATH (you tried that)
It works nicely if you tweak libtool's archive_cmds from +b to +s +b
in the hpux* section of acinclude.m4, aclocal.m4 and configure, also
toggling...
hardcode_libdir_flag_spec='${wl}+s ${wl}+b ${wl}$libdir'
hardcode_minus_L=no
and a bit further down (line after SHLIB_PATH)...
shlibpath_overrides_runpath=yes
Re: Apache 2.0.x Binary distribution for HPUX
Posted by Jeff Trawick <tr...@gmail.com>.
On 10/21/05, chris <ct...@free.fr> wrote:
> I'm trying to build a binary distribution of Apache 2.0.54 for HPUX 32bits.
>
> I can build the binaries, and the tar.gz distrib file, but I can not
> deploy it on other servers, since my httpd binary doesn't seem to be
> properly linked.
>
> I build the distrib with the following command (default bindist.sh command)
>
> $ cd /tmp/buildapache/hpux11/src/httpd-2.0.54
> $ build/bindist.sh
>
>
> Here are some output command:
>
> -- start of command output ----
> $ pwd
> /tmp/buildapache/hpux11/test/bin
> $ ./httpd -l
> /usr/lib/dld.sl: Can't open shared library:
For one thing, httpd is not generally a valid way to run Apache 2.
Use apachectl instead. You *should* have <installroot>/bin/envvars
which sets SHLIB_PATH as appropriate, such that the shared library is
found.
I use some hacks for binbuild-like binary distributions on HP-UX:
a) add -Wl,+s for SHLIB_PATH (you tried that)
b) instead of /path/to/libexpat.sl /path/to/libaprutil.sl /path/to/libapr.sl,
use -L/path/to -lexpat -laprutil -llibapr
(otherwise, httpd will only look in that path for those libraries at run-time)