<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating binary distribution after build Apache source??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861658#M820935</link>
    <description>Ok, I have found that configure will take an environment variable (LDFLAGS) previous to the configure command.  I have created a script that adds this environment variable, and calls configure with the --enable-mods-shared flag with a list of shared modules.  I am still unsure whether I am passing the appropriate flag to LDFLAGS though.  I tried the +b that you suggested and the configure script complained.  Can you tell me what +b does?  I did some googling of LDFLAGS and noticed that some people use the -L flag.  I did that and passed the desired target directory in quotes, i.e. "/apps/apache2" and the configure script completed without errors.  However my problems are still not solved, read on...&lt;BR /&gt;&lt;BR /&gt;I run this script, run the make, then the make install.  When I do this, the httpd executable gets linked appropriately in that it looks for the static library files in the &lt;TARGET directory=""&gt; directory that I am passing to the configure script.  However I was able to achieve this before I used the LDFLAGS environment variable.  &lt;BR /&gt;&lt;BR /&gt;From what I can tell though, the linker puts the library path references based on the value of prefix and not necessarily on the value of LDFLAGS.&lt;BR /&gt;&lt;BR /&gt;The point is that when I do the make install, everything goes fine.  The problem is that when I run build/binbuild.sh &lt;E-MAIL address=""&gt; to create the *.tar.gz binary distribution.  When I do this, the resulting binary distribution in the *.tar.gz file that is created is not configured properly in that when I run install-bindist.sh &lt;TARGET directory=""&gt;, the static links to the library files in httpd still point where the files were originally linked from.&lt;BR /&gt;&lt;BR /&gt;What I am still failing to understand is how the binary distribution is differing from what I am getting when I run the make install command.&lt;BR /&gt;&lt;BR /&gt;There is an error that I see during the build phase that has me suspicious as a possible cause of the problem.  It says something to the effect that the system doesn't like uninstalled shared libraries and that httpd will be relinked at install time.  I am not sure what this means...&lt;BR /&gt;&lt;BR /&gt;&lt;/TARGET&gt;&lt;/E-MAIL&gt;&lt;/TARGET&gt;</description>
    <pubDate>Thu, 12 Dec 2002 00:58:02 GMT</pubDate>
    <dc:creator>John Wolf</dc:creator>
    <dc:date>2002-12-12T00:58:02Z</dc:date>
    <item>
      <title>Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861653#M820930</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I am trying to build a self contained Apache 2.0.43 binary&lt;BR /&gt;distribution by building the 2.0.43 source on HPUX 11.11.  I have run&lt;BR /&gt;configure with a prefix parameter pointing to where the binaries&lt;BR /&gt;should be installed when the installer is run, if I understand&lt;BR /&gt;correctly this parameter only affects the make install command and not&lt;BR /&gt;necessarily the binaries that result from the binbuild.sh command.  In&lt;BR /&gt;addition, I also enable DSO and compile a handful of modules.  Anyhow,&lt;BR /&gt;after I run configure command, I run make to make the executables. &lt;BR /&gt;For whatever reason, if I do a configure, a make, then a make install,&lt;BR /&gt;the resulting installation is appropriately setup and the static paths&lt;BR /&gt;point to the libraries underneath the target directory&lt;BR /&gt;&lt;BR /&gt;The problem arises when I make the binary distribution(using&lt;BR /&gt;binbuild.sh) in that there are static embedded paths in the httpd&lt;BR /&gt;file, pointing to libaprutil.sl.9, libexpat.sl.1, and libapr.sl.9,&lt;BR /&gt;they can be viewed via executing 'chatr httpd' from the &lt;APACHE install="" dir=""&gt;/bin, and they are pointing back to the&lt;BR /&gt;directory from which I built the binaries.  This configuration will&lt;BR /&gt;not work if I need to install the binary distribution on other&lt;BR /&gt;machines as they are dependent on these library files being in&lt;BR /&gt;particular directories on the machine that is to run the web server.&lt;BR /&gt;&lt;BR /&gt;Does anyone know what file(s) I need to edit before doing binbuild.sh&lt;BR /&gt;to get the correct(&lt;APACHE install="" dir=""&gt;/lib) static linkings embedded into the httpd exe?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-John&lt;/APACHE&gt;&lt;/APACHE&gt;</description>
      <pubDate>Wed, 11 Dec 2002 00:55:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861653#M820930</guid>
      <dc:creator>John Wolf</dc:creator>
      <dc:date>2002-12-11T00:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861654#M820931</link>
      <description>John:&lt;BR /&gt;&lt;BR /&gt;Here's an already built version 2.0.35 for 11.11 -&amp;gt; &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/apache2-2.0.35/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/apache2-2.0.35/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may be easier that building your own.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 11 Dec 2002 12:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861654#M820931</guid>
      <dc:creator>Tom Jackson</dc:creator>
      <dc:date>2002-12-11T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861655#M820932</link>
      <description>You can change the arguments to the linker so that the libraries get generated with appropriate flags.  Pay particular attention to&lt;BR /&gt;+b Specify a colon-separated list of directories to&lt;BR /&gt;                          be searched at program run-time to locate shared&lt;BR /&gt;                          libraries needed by the executable output file&lt;BR /&gt;                          that were specified with either the -l or -l:&lt;BR /&gt;                          option.  An argument consisting of a single colon&lt;BR /&gt;                          (:) indicates that ld should build the list using&lt;BR /&gt;                          all the directories specified by the -L option and&lt;BR /&gt;                          the LPATH environment variable (see the +s&lt;BR /&gt;                          option).&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;+s&lt;BR /&gt;&lt;BR /&gt;Indicates that at run-time, the shared library&lt;BR /&gt;                          loader can use the environment variable SHLIB_PATH&lt;BR /&gt;                          and LD_LIBRARY_PATH (64 bit only) to locate shared&lt;BR /&gt;                          libraries needed by the executable output file&lt;BR /&gt;                          that were specified with either the -l or -l:&lt;BR /&gt;                          option. The environment variables should be set to&lt;BR /&gt;                          a colon-separated list of directories. If both +s&lt;BR /&gt;                          and +b are used, their relative order on the&lt;BR /&gt;                          command line indicates which path list will be&lt;BR /&gt;                          searched first (see the +b option).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and/or you can use chatr to edit the existing library files (again see +s and +b).&lt;BR /&gt;&lt;BR /&gt;Generally, you set LDFLAGS during configure - you can also pass flags to the linker through CFLAGS.</description>
      <pubDate>Wed, 11 Dec 2002 13:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861655#M820932</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-12-11T13:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861656#M820933</link>
      <description>Tom:&lt;BR /&gt;&lt;BR /&gt;Thanks for the link, I've actually already grabbed the HP distribution of the 2.0.43 version of Apache and it runs fine.  My dilemma is that our QA Process requires that we put the Apache installation in an /apps folder, and all DSO's and static libraries need to run out of their respective folders underneath the installed directory.  With the HP distributions, you are required to jump through too many hoops to get a 'custom' installation/configuration.  My goal here is to simplify installation so that the user can get to the task at hand.&lt;BR /&gt;&lt;BR /&gt;I have tried the 2.0.43 binary distribution from Apache.org and it seems to have the same issue I am dealing with.  It looks for the library files in the home directory of the individual who made the binary distribution.&lt;BR /&gt;&lt;BR /&gt;Christopher : &lt;BR /&gt;&lt;BR /&gt;How do I go about changing the arguments to the linker?  Specifically, in what config file can they be found?  Forgive my lack of knowledge but I am a 2+ month newbie to the unix/linux world and this is the very first time I've ever built something on a unix box.&lt;BR /&gt;&lt;BR /&gt;I have dug around enough to learn about SHLIB_PATH and have used chatr to disable the embedded path's in httpd and enable the dynamic path, I have then exported SHLIB_PATH and pointed it to the lib folder containt the library files that htppd is trying to load, however it all seems to be ignored and complains that it can't find the library files in &lt;DISABLED embedded="" path=""&gt;.  I also read somewhere that even if these items are changed in the executable that the static linkings will supersede the dynamic shared linkings and the dynamic configurations will be ignored.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-John&lt;/DISABLED&gt;</description>
      <pubDate>Wed, 11 Dec 2002 19:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861656#M820933</guid>
      <dc:creator>John Wolf</dc:creator>
      <dc:date>2002-12-11T19:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861657#M820934</link>
      <description>==&amp;gt;How do I go about changing the arguments to the linker? Specifically, in what config file can they be found? Forgive my lack of knowledge but I am a 2+ month newbie to the unix/linux world and this is the very first time I've ever built something on a unix box. &lt;BR /&gt;&lt;BR /&gt;There's many ways; here's a few; YMMV.  &lt;BR /&gt;&lt;BR /&gt;Set LDFLAGS in your environment:&lt;BR /&gt;LDFLAGS=+b&lt;BR /&gt;export LDFLAGS&lt;BR /&gt;&lt;BR /&gt;Find the link line in the Makefile, add your flags there.&lt;BR /&gt;&lt;BR /&gt;See if ./configure supports coercion of LDFLAGS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;==&amp;gt;I have dug around enough to learn about SHLIB_PATH and have used chatr to disable the embedded path's in httpd and enable the dynamic path, I have then exported SHLIB_PATH and pointed it to the lib folder containt the library files that htppd is trying to load, however it all seems to be ignored and complains that it can't find the library files in &lt;DISABLED embedded="" path=""&gt;. I also read somewhere that even if these items are changed in the executable that the static linkings will supersede the dynamic shared linkings and the dynamic configurations will be ignored.&lt;BR /&gt;&lt;BR /&gt;Don't forget to look at the executable and all of the dependents for library path information (e.g. chatr httpd, get a list of all dependent .sls - make sure httpd and all dependent .sl have the correct path information).&lt;/DISABLED&gt;</description>
      <pubDate>Wed, 11 Dec 2002 20:23:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861657#M820934</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-12-11T20:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861658#M820935</link>
      <description>Ok, I have found that configure will take an environment variable (LDFLAGS) previous to the configure command.  I have created a script that adds this environment variable, and calls configure with the --enable-mods-shared flag with a list of shared modules.  I am still unsure whether I am passing the appropriate flag to LDFLAGS though.  I tried the +b that you suggested and the configure script complained.  Can you tell me what +b does?  I did some googling of LDFLAGS and noticed that some people use the -L flag.  I did that and passed the desired target directory in quotes, i.e. "/apps/apache2" and the configure script completed without errors.  However my problems are still not solved, read on...&lt;BR /&gt;&lt;BR /&gt;I run this script, run the make, then the make install.  When I do this, the httpd executable gets linked appropriately in that it looks for the static library files in the &lt;TARGET directory=""&gt; directory that I am passing to the configure script.  However I was able to achieve this before I used the LDFLAGS environment variable.  &lt;BR /&gt;&lt;BR /&gt;From what I can tell though, the linker puts the library path references based on the value of prefix and not necessarily on the value of LDFLAGS.&lt;BR /&gt;&lt;BR /&gt;The point is that when I do the make install, everything goes fine.  The problem is that when I run build/binbuild.sh &lt;E-MAIL address=""&gt; to create the *.tar.gz binary distribution.  When I do this, the resulting binary distribution in the *.tar.gz file that is created is not configured properly in that when I run install-bindist.sh &lt;TARGET directory=""&gt;, the static links to the library files in httpd still point where the files were originally linked from.&lt;BR /&gt;&lt;BR /&gt;What I am still failing to understand is how the binary distribution is differing from what I am getting when I run the make install command.&lt;BR /&gt;&lt;BR /&gt;There is an error that I see during the build phase that has me suspicious as a possible cause of the problem.  It says something to the effect that the system doesn't like uninstalled shared libraries and that httpd will be relinked at install time.  I am not sure what this means...&lt;BR /&gt;&lt;BR /&gt;&lt;/TARGET&gt;&lt;/E-MAIL&gt;&lt;/TARGET&gt;</description>
      <pubDate>Thu, 12 Dec 2002 00:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861658#M820935</guid>
      <dc:creator>John Wolf</dc:creator>
      <dc:date>2002-12-12T00:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating binary distribution after build Apache source???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861659#M820936</link>
      <description>It'll help you a bit if you read the man page for the linker (man ld) - there's a bunch of options that will help your problem - but the options are somewhat dependent on what you're trying to do.&lt;BR /&gt;&lt;BR /&gt;You wouldn't want to specify +b by itself ... +b requires a path_list:&lt;BR /&gt;&lt;BR /&gt;+b Specify a colon-separated list of directories to &lt;BR /&gt;be searched at program run-time to locate shared &lt;BR /&gt;libraries needed by the executable output file &lt;BR /&gt;that were specified with either the -l or -l: &lt;BR /&gt;option. An argument consisting of a single colon &lt;BR /&gt;(:) indicates that ld should build the list using &lt;BR /&gt;all the directories specified by the -L option and &lt;BR /&gt;the LPATH environment variable (see the +s &lt;BR /&gt;option). &lt;BR /&gt;</description>
      <pubDate>Thu, 12 Dec 2002 13:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-binary-distribution-after-build-apache-source/m-p/2861659#M820936</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-12-12T13:51:04Z</dc:date>
    </item>
  </channel>
</rss>

