You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Peacock <jp...@rowman.com> on 2006/12/16 23:40:26 UTC

"subversion requires zlib" problem and resolution

A cautionary tale about using system supplied Apache/APR/APR-UTIL RPMS, sent to
the list so that someone else won't lose hair over the problems I had...

I'm in the process of rebuilding my main dev machine after a failed system
upgrade and I got to the next step which was rebuilding Subversion.  I
downloaded the 1.4.2 tarballs and unpacked both the main one and the deps one
into the same directory, then deleted apr/ and apr-util/, intending to use the
ones supplied with my distro (OpenSUSE 10.2).  I went through the usual
incatations and got stopped cold by the error:

	subversion requires zlib

which made no sense.  I checked, and sure enough zlib was installed.  I unpacked
the deps again and installed the zlib portion manually.  Still no happiness.  I
checked to make sure that ldconfig had does the appropriate aliasing (which it had).

Finally, fed up with this, I actually read through the config.log and lo and
behold, the linker was failing to find mysqlclient_r when building the test
binary to make sure zlib included inflate!  It seems that SUSE, in their
infinite wisdom, went and included mysql support in apr-util, and configure was
too daft to notice I hadn't installed mysql-dev (to get the mysql client libraries).

Once I installed mysql-dev, all was well with the world again, and I can
continue configuring my system.  I don't think this is anything that the
Subversion project can direct address, short of smartening up configure to be
able to parse the actual error message from the linker, rather than just
throwing the next test error out for grins...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: "subversion requires zlib" problem and resolution

Posted by Peter Samuelson <pe...@p12n.org>.
[John Peacock]
> I found the libapr-1.2.8 on the openSUSE FTP site, and installed
> those (and the matching dev packages).  Those are the ones that
> included support for mysql, which is why I had problems.

So I guess the real bug is that the apr-util dev package from the
opensuse ftp site needs to depend on the mysql dev package, but
doesn't.

Re: "subversion requires zlib" problem and resolution

Posted by John Peacock <jp...@rowman.com>.
Marcus Rueckert wrote:
> it seems you use APR from  Apache project in the buildservice. it is
> correct that we added mysql support there for testing it. the normal
> libapr1 or libapr-util1 packages in 10.2 do not link mysql. 

I know what happened now; I didn't have the apr-dev/aprutil-dev packages (they
aren't on the DVD) and I didn't have the additional YUM repositories configured
for 10.2 yet, so I couldn't find the dev packages.  I found the libapr-1.2.8 on
the openSUSE FTP site, and installed those (and the matching dev packages).
Those are the ones that included support for mysql, which is why I had problems.

Duh...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: "subversion requires zlib" problem and resolution

Posted by John Peacock <jp...@rowman.com>.
Marcus Rueckert wrote:
> it seems you use APR from  Apache project in the buildservice. it is
> correct that we added mysql support there for testing it. the normal
> libapr1 or libapr-util1 packages in 10.2 do not link mysql. The latest
> rpms from the url above should have mysql support moved into a shared
> object so your problem should be gone aswell.

You are correct in that I did wind up installing the later APR files from the
openSUSE site, but only after I failed to build Subversion the first few times.
 I wonder what was blocking it the first time through.

If I have time, I'll uninstall Apache and APR and reinstall the original base
packages to see what fails this time.  It was the same error message (false
lead), so it doesn't change the fact that configure can be a little daft
sometimes...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: "subversion requires zlib" problem and resolution

Posted by Marcus Rueckert <da...@web.de>.
moin john,

John Peacock wrote:
> A cautionary tale about using system supplied Apache/APR/APR-UTIL RPMS, sent to
> the list so that someone else won't lose hair over the problems I had...
> 
> I'm in the process of rebuilding my main dev machine after a failed system
> upgrade and I got to the next step which was rebuilding Subversion.  I
> downloaded the 1.4.2 tarballs and unpacked both the main one and the deps one
> into the same directory, then deleted apr/ and apr-util/, intending to use the
> ones supplied with my distro (OpenSUSE 10.2).  I went through the usual
> incatations and got stopped cold by the error:
> 
> 	subversion requires zlib
> 
> which made no sense.  I checked, and sure enough zlib was installed.  I unpacked
> the deps again and installed the zlib portion manually.  Still no happiness.  I
> checked to make sure that ldconfig had does the appropriate aliasing (which it had).
> 
> Finally, fed up with this, I actually read through the config.log and lo and
> behold, the linker was failing to find mysqlclient_r when building the test
> binary to make sure zlib included inflate!  It seems that SUSE, in their
> infinite wisdom, went and included mysql support in apr-util, and configure was
> too daft to notice I hadn't installed mysql-dev (to get the mysql client libraries).
> 
> Once I installed mysql-dev, all was well with the world again, and I can
> continue configuring my system.  I don't think this is anything that the
> Subversion project can direct address, short of smartening up configure to be
> able to parse the actual error message from the linker, rather than just
> throwing the next test error out for grins...

it seems you use APR from  Apache project in the buildservice. it is 
correct that we added mysql support there for testing it. the normal 
libapr1 or libapr-util1 packages in 10.2 do not link mysql. The latest 
rpms from the url above should have mysql support moved into a shared 
object so your problem should be gone aswell.

if you still see the issue with the rpms from feel to contact me.

hope this helps,

	darix

[1] http://software.opensuse.org/download/Apache/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org