Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

2.2.3 -> 2.2.4 upgrade problem | APR?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


evan.cooch at cornell

Jan 10, 2007, 6:23 AM

Post #1 of 5 (4907 views)
Permalink
2.2.3 -> 2.2.4 upgrade problem | APR?

Greetings -

I've been running Apache 2.x.x quite happily for some time now - decided
to do the latest point update from 2.2.3 -> 2.2.4 on my RHEL 3 box.
Normally, this is trivial - I simply do the .configure -> make -> male
install sequence, no muss, no fuss.

However, I tried this with Apache 2.2.4, and get the following error
(which I've never seen before):

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
configure: error: Cannot use an external APR-util with the bundled APR

To check to see if this new problem is caused by some change I've made
to the server (unlikely - all this machine does is serve web pages - the
only changes I ever make are security patches), I tried re-compiling
2.2.3. No problem - everything worked as before.

So, *something* has changed in 2.2.3 -> 2.2.4 that is *broken* on my
machine (meaning, I can't even configure 2.2.4). In the config.log, I
see the following:

configure:2621: checking for APR
configure:2703: result: reconfig
configure:2957: checking for APR-util
configure:3039: result: yes
configure:3053: error: Cannot use an external APR-util with the bundled APR

Further down, I see

APR_CONFIG='/usr/local/apache2/bin/apr-1-config'
APR_INCLUDEDIR='/home/users/egc/httpd-2.2.4/srclib/apr/include'
APR_VERSION='1.2.8'

Now, since I've never seen this sort of problem/error before, not sure
what it even means, or what to do next.

Suggestions? Pointers to the obvious?

Thanks in advance...




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


sctemme at apache

Jan 10, 2007, 8:54 AM

Post #2 of 5 (4809 views)
Permalink
Re: 2.2.3 -> 2.2.4 upgrade problem | APR? [In reply to]

Evan,

On Jan 10, 2007, at 6:23 AM, Evan Cooch wrote:

> checking for APR-util... yes
> configure: error: Cannot use an external APR-util with the bundled APR
> To check to see if this new problem is caused by some change I've
> made to the server (unlikely - all this machine does is serve web
> pages - the only changes I ever make are security patches), I tried
> re-compiling 2.2.3. No problem - everything worked as before.
>
> So, *something* has changed in 2.2.3 -> 2.2.4 that is *broken* on
> my machine (meaning, I can't even configure 2.2.4). In the
> config.log, I see the following:

Could you post your ./configure line?

Could you run the commands

locate apr-1-config
locate apu-1-config

and tell us what the output is?

Finally, try adding --with-included-apr to ./configure . This forces
the build process to use the apr and apr-util that come with the
release, which I think is what you want to do. I think this is
relatively new logic, and may be what you're running into.

S.

--
sctemme[at]apache.org http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
Attachments: smime.p7s (2.38 KB)


evan.cooch at cornell

Jan 10, 2007, 9:21 AM

Post #3 of 5 (4804 views)
Permalink
Re: 2.2.3 -> 2.2.4 upgrade problem | APR? [In reply to]

>
>
>> checking for APR-util... yes
>> configure: error: Cannot use an external APR-util with the bundled APR
>> To check to see if this new problem is caused by some change I've
>> made to the server (unlikely - all this machine does is serve web
>> pages - the only changes I ever make are security patches), I tried
>> re-compiling 2.2.3. No problem - everything worked as before.
>>
>> So, *something* has changed in 2.2.3 -> 2.2.4 that is *broken* on my
>> machine (meaning, I can't even configure 2.2.4). In the config.log, I
>> see the following:
>
> Could you post your ./configure line?

Sure - about as basic as you can get:

./configure --prefix=/usr/local/apache2

Thats it - I get the same error message whether or not I enable any
modules or not.

>
> Could you run the commands
>
> locate apr-1-config
/usr/local/apache2/bin/apr-1-config

> locate apu-1-config
>
> and tell us what the output is?
/usr/local/apache2/bin/apu-1-config

>
> Finally, try adding --with-included-apr to ./configure . This forces
> the build process to use the apr and apr-util that come with the
> release, which I think is what you want to do. I think this is
> relatively new logic, and may be what you're running into.

OK - thanks for the suggestion. Tried

./configure --prefix=/usr/local/apache2 --with-included-apr

which seemed to work (in the sense that I wasn't getting any error
messages). I followed this with make, which seemed to work fine (given
that make seems to run fine - no errors). I'm not quite ready for the
next test (make install), since I don't want to screw up my current,
working configuration. But, the suggestion of adding --with-included-apr
seems to have solved the basic .configure problem. Thanks!

Now, for the big question - what is this new argument doing, why do I
need it, and what really has changed between 2.23 and 2.24?

Thanks very much!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


sctemme at apache

Jan 15, 2007, 11:38 PM

Post #4 of 5 (4708 views)
Permalink
Re: 2.2.3 -> 2.2.4 upgrade problem | APR? [In reply to]

On Jan 10, 2007, at 9:21 AM, Evan Cooch wrote:

> Now, for the big question - what is this new argument doing, why do
> I need it, and what really has changed between 2.23 and 2.24?

The change actually happened between 2.2.2 and 2.2.3, in Subversion
revision 424693:

http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/configure.in?
r1=410054&r2=424693

Essentially, we became a little more sophisticated about which copy
of APR and APR-Util we use for the build. Previously, httpd had the
sometimes unfortunate habit of picking up installed copies of these
libraries and doing stuff in not quite the way you might want. Now,
you can force use of the bundled copies with the --with-included-apr
parameter (one parameter forces both APR and APR-Util, since you
can't mix versions). If you want to specifically use an installed
copy of the libraries, you can use

--with-apr=/path/to/apr/bin/apr-1-config --with-apr-util=/path/to/apr-
util/bin/apu-1-config

on the configure line. Alternatively, you can throw it into the wind
completely and have the build process perhaps maybe pick up an
installed APR, APR-Util or use the bundled copy depending on stuff
like what your PATH is when you build. It looks like your build
arrived at some non-functional mixture, and forcing the bundled
copies fixed that.

It looks like you had the bin directory of your old Apache install on
your PATH, and configure proposed to use the old APR version for your
new build because it found apr-1-config. Not what you wanted. (:

If you speak m4 and Autoconf better than I do (wouldn't be hard) and
want to make this more smart so the build process gracefully rejects
non-workable combinations, feel free but you'd probably best work on
the httpd development trunk since patches are generally introduced
there and then backported to 2.2.x.

S.

--
sctemme[at]apache.org http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
Attachments: smime.p7s (2.38 KB)


jmrasor at donboscowest

Jan 18, 2007, 10:53 AM

Post #5 of 5 (4567 views)
Permalink
Re: 2.2.3 -> 2.2.4 upgrade problem | APR? [In reply to]

Greetings!


Evan Cooch-2 wrote:
>
>> Finally, try adding --with-included-apr to ./configure .
>

I ran into the Evan's problem compiling Apache 2.2.4 for Ubuntu. I tried
Sander Temme's suggestion, and it worked:

Platform: Ubuntu edgy on i386
Configure: ./configure –enable-layout=Debian –with-included-apr
–enable-mods-shared=all (note: no prefix; Debian layout will set it
/usr/sbin)

Make, make install as usual, start it up. Here I ran into a little snag:
error in ServerRoot: only one argument allowed. That's because httpd.conf
had ServerRoot "" and that made Apache think there's more than one
ServerRoot. /etc/apache2/httpd.conf says, for example, 'with ServerRoot “”
/var/log/apache2/foo.log will be expanded to //var/log/apache2/foo.log.'
Note the double leading slash.

So, I changed ServerRoot to ".", restarted Apache, and all was sweetness
and light.

HTH for Debianites.

jr

--
View this message in context: http://www.nabble.com/2.2.3--%3E-2.2.4-upgrade-problem-%7C-APR--tf2952689.html#a8436656
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.