You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Benson Margulies <bi...@gmail.com> on 2012/09/22 20:20:12 UTC

Building the trunk

Dear dev,

Graham asked me to test out a new feature of the form auth module. So,
I checked out the trunk, and got into a bit of a tangle.

I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
srclib/apr, and then I ran buildconf, and then I tried to run
configure. It tells me:

configure:
configure: Configuring Apache Portable Runtime Utility library...
configure:
configure: error: APR-util not found.  Please read the documentation.

Now, the apr-util trunk just contains a pointer to the apr trunk. I
did poke around httpd.apache.org thinking that I might find some
contributor advice that would cover this case, but apparently I was
too dense to detect it. Could someone help?

-benson

Re: Building the trunk

Posted by Jeff Trawick <tr...@gmail.com>.
On Sat, Sep 22, 2012 at 2:35 PM, Benson Margulies <bi...@gmail.com> wrote:
> On Sat, Sep 22, 2012 at 2:26 PM, Jeff Trawick <tr...@gmail.com> wrote:
>> On Sat, Sep 22, 2012 at 2:20 PM, Benson Margulies <bi...@gmail.com> wrote:
>>> Dear dev,
>>>
>>> Graham asked me to test out a new feature of the form auth module. So,
>>> I checked out the trunk, and got into a bit of a tangle.
>>
>> Just as with httpd 2.4.x, use apr 1.x and apr-util 1.x with httpd trunk.]
>
> Well, configure told me to get the apr trunk :-) and configure no
> longer has --with-apr-util to locate it.

buildconf has some unhelpful messages amidst the logic to support
either apr1+aprutil1 or aprtrunk.  I guess you found some with
configure too, though this doesn't seem too specific to apr trunk:

./configure --with-included-apr
...
configure: error: Bundled APR requested but not found at ./srclib/.
Download and unpack the corresponding apr and apr-util packages to
./srclib/.

FWLIW, here's a way to build which can share apr/apr-util with other
applications (e.g., httpd 2.2 or 2.4):

./buildconf --with-apr=../apr-1.4.x --with-apr-util=../apr-util-1.4.x
./configure --with-apr=/path/to/aprinst --with-apr-util=/path/to/aprutilinst ...

>
> however ....
>
>
>>
>> Heck, its even easier if the changes are limited to mod_auth_form.c:
>>
>> Download mod_auth_form.c from trunk (or check out httpd trunk).
>> /path/to/24-install/bin/apxs -c mod_auth_form.c.
>>
>
> This does work fine.
>
>>
>>>
>>> I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
>>> srclib/apr, and then I ran buildconf, and then I tried to run
>>> configure. It tells me:
>>>
>>> configure:
>>> configure: Configuring Apache Portable Runtime Utility library...
>>> configure:
>>> configure: error: APR-util not found.  Please read the documentation.
>>
>> apr trunk includes APR-util, and I guess that certain httpd builds are
>> not prepared for that.
>>
>>>
>>> Now, the apr-util trunk just contains a pointer to the apr trunk. I
>>> did poke around httpd.apache.org thinking that I might find some
>>> contributor advice that would cover this case, but apparently I was
>>> too dense to detect it. Could someone help?
>>>
>>> -benson
>>
>>
>>
>> --
>> Born in Roswell... married an alien...
>> http://emptyhammock.com/



-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Re: Building the trunk

Posted by Benson Margulies <bi...@gmail.com>.
On Sat, Sep 22, 2012 at 2:26 PM, Jeff Trawick <tr...@gmail.com> wrote:
> On Sat, Sep 22, 2012 at 2:20 PM, Benson Margulies <bi...@gmail.com> wrote:
>> Dear dev,
>>
>> Graham asked me to test out a new feature of the form auth module. So,
>> I checked out the trunk, and got into a bit of a tangle.
>
> Just as with httpd 2.4.x, use apr 1.x and apr-util 1.x with httpd trunk.]

Well, configure told me to get the apr trunk :-) and configure no
longer has --with-apr-util to locate it.

however ....


>
> Heck, its even easier if the changes are limited to mod_auth_form.c:
>
> Download mod_auth_form.c from trunk (or check out httpd trunk).
> /path/to/24-install/bin/apxs -c mod_auth_form.c.
>

This does work fine.

>
>>
>> I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
>> srclib/apr, and then I ran buildconf, and then I tried to run
>> configure. It tells me:
>>
>> configure:
>> configure: Configuring Apache Portable Runtime Utility library...
>> configure:
>> configure: error: APR-util not found.  Please read the documentation.
>
> apr trunk includes APR-util, and I guess that certain httpd builds are
> not prepared for that.
>
>>
>> Now, the apr-util trunk just contains a pointer to the apr trunk. I
>> did poke around httpd.apache.org thinking that I might find some
>> contributor advice that would cover this case, but apparently I was
>> too dense to detect it. Could someone help?
>>
>> -benson
>
>
>
> --
> Born in Roswell... married an alien...
> http://emptyhammock.com/

Re: Building the trunk

Posted by Jeff Trawick <tr...@gmail.com>.
On Sat, Sep 22, 2012 at 2:20 PM, Benson Margulies <bi...@gmail.com> wrote:
> Dear dev,
>
> Graham asked me to test out a new feature of the form auth module. So,
> I checked out the trunk, and got into a bit of a tangle.

Just as with httpd 2.4.x, use apr 1.x and apr-util 1.x with httpd trunk.

Heck, its even easier if the changes are limited to mod_auth_form.c:

Download mod_auth_form.c from trunk (or check out httpd trunk).
/path/to/24-install/bin/apxs -c mod_auth_form.c.


>
> I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
> srclib/apr, and then I ran buildconf, and then I tried to run
> configure. It tells me:
>
> configure:
> configure: Configuring Apache Portable Runtime Utility library...
> configure:
> configure: error: APR-util not found.  Please read the documentation.

apr trunk includes APR-util, and I guess that certain httpd builds are
not prepared for that.

>
> Now, the apr-util trunk just contains a pointer to the apr trunk. I
> did poke around httpd.apache.org thinking that I might find some
> contributor advice that would cover this case, but apparently I was
> too dense to detect it. Could someone help?
>
> -benson



-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Re: Building the trunk

Posted by Jeff Trawick <tr...@gmail.com>.
On Sat, Sep 22, 2012 at 3:40 PM, Benson Margulies <bi...@gmail.com> wrote:
> On Sat, Sep 22, 2012 at 2:51 PM, Graham Leggett <mi...@sharp.fm> wrote:
>> On 22 Sep 2012, at 19:20, Benson Margulies <bi...@gmail.com> wrote:
>>
>>> I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
>>> srclib/apr, and then I ran buildconf, and then I tried to run
>>> configure.
>>
>> I am not sure the apr-inside-srclib works any more.
>>
>> In theory, build apr-trunk and make install it to a directory with --prefix, then point httpd at at by saying ./buildconf --with-apr=/path/to/apr-trunk
>>
>> Apr-uti-trunk was combined with apr-trunk a while back.
>>
>> Regards,
>> Graham
>> --
>>
>
> Just to tie this off: the fun here began with a message from buildconf:
>
> You don't have a copy of the apr source in srclib/apr.
> Please get the source using the following instructions,
> or specify the location of the source with
> --with-apr=[path to apr] :
>
>    svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr
>
> So, if srclib is no longer a good idea, I suppose that buildconf needs
> a slight improvement. Anyway, mission accomplished.

Hopefully r1389060 gets rid of the bad hints and provides
basically-correct instructions regarding APR/APR-util in INSTALL which
others can massage as appropriate.

-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Re: Building the trunk

Posted by Benson Margulies <bi...@gmail.com>.
On Sat, Sep 22, 2012 at 2:51 PM, Graham Leggett <mi...@sharp.fm> wrote:
> On 22 Sep 2012, at 19:20, Benson Margulies <bi...@gmail.com> wrote:
>
>> I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
>> srclib/apr, and then I ran buildconf, and then I tried to run
>> configure.
>
> I am not sure the apr-inside-srclib works any more.
>
> In theory, build apr-trunk and make install it to a directory with --prefix, then point httpd at at by saying ./buildconf --with-apr=/path/to/apr-trunk
>
> Apr-uti-trunk was combined with apr-trunk a while back.
>
> Regards,
> Graham
> --
>

Just to tie this off: the fun here began with a message from buildconf:

You don't have a copy of the apr source in srclib/apr.
Please get the source using the following instructions,
or specify the location of the source with
--with-apr=[path to apr] :

   svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr

So, if srclib is no longer a good idea, I suppose that buildconf needs
a slight improvement. Anyway, mission accomplished.

Re: Building the trunk

Posted by Graham Leggett <mi...@sharp.fm>.
On 22 Sep 2012, at 19:20, Benson Margulies <bi...@gmail.com> wrote:

> I checked out http://svn.apache.org/repos/asf/apr/apr/trunk into
> srclib/apr, and then I ran buildconf, and then I tried to run
> configure.

I am not sure the apr-inside-srclib works any more.

In theory, build apr-trunk and make install it to a directory with --prefix, then point httpd at at by saying ./buildconf --with-apr=/path/to/apr-trunk

Apr-uti-trunk was combined with apr-trunk a while back.

Regards,
Graham
--