@Reindl Harald,

If I remove that apr files from 'BuildPrereq', it is still showing some
'undeclared errors' related to apr-util modules.

@Graham,

In the httpd SPEC file, I could see this line in %build section,


#forcibly prevent use of bundled apr, apr-util, pcre
rm -rf srclib/{apr,apr-util,pcre}

So it seems I can't make use of the bundled apr and apr-util sources.

>From SPEC file, it seems httpd needs apr >= 1.4.2, apr-util >= 1.3.10. So I
tried compiling apr from this link, http://archive.apache.org/dist/apr/ and
it is failing with this error,

[root@localhost apr]# rpmbuild -tb apr-1.4.2.tar.bz2
error: Failed build dependencies:
  autoconf is needed by apr-1.4.2-1.i386
  libtool is needed by apr-1.4.2-1.i386
  doxygen is needed by apr-1.4.2-1.i386


FYI, My SPEC file configure section has these lines,

--with-apr=/usr/bin/apr-1-config
--with-apr-util=/usr/bin/apu-1-config

I am trying all these for my linux OS RHEL 4. Please note that OS upgrade
is not an option as of now.

Please let me know how to fix these errors.

Regards,
Venkatesh


On Sun, Mar 2, 2014 at 6:32 PM, Graham Leggett <[email protected]> wrote:

> On 2 Mar 2014, at 07:00, Venkatesh Prabu Narayanan <
> [email protected]> wrote:
>
> > I am new to this list. I am trying to compile httpd 2.2.24 rpm build
> from source tar ball and it is failing with apr, apr-util dependencies.
> >
> > [root@localhost httpd]# rpmbuild -ba httpd-2.2.24.spec
> > error: Failed build dependencies:
> >         /usr/bin/apr-1-config is needed by httpd-2.2.24-1.i386
> >         /usr/bin/apu-1-config is needed by httpd-2.2.24-1.i386
> >
> > I don't want to install apr, apr-util using externally compiled one.
> Instead I want to use the inbuilt source files (srclib\apr,
> srclib\apr-util) in the httpd tar ball.
> >
> > What are my options for using inbuilt apr source files and fixing the
> above dependencies ? Do I have to do any changes in httpd.spec file for
> this ?
>
> That's not supported by the default build, ideally what you should do is
> build rpms from apr and apr-util same as httpd, they are designed to be
> drop in replacements.
>
> Regards,
> Graham
> --
>
>


-- 
Thanks and Regards

N.Venkatesh Prabu

Reply via email to