You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Venkatesh Prabu Narayanan <ve...@gmail.com> on 2014/03/02 08:00:49 UTC
Resolving apr dependencies while generating httpd rpm build compiled
from source
Hi,
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 ?
Thanks in advance for your help.
Regards,
Venkatesh
Re: Resolving apr dependencies while generating httpd rpm build compiled
from source
Posted by Reindl Harald <h....@thelounge.net>.
Am 02.03.2014 08:00, schrieb Venkatesh Prabu Narayanan:
> 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
at least remove the BuildRequires for apr and apr-util from the SPEC
they are there to make sure distributions ship anything with shared
libraries and you should cinsider that a good idea
Re: Resolving apr dependencies while generating httpd rpm build compiled
from source
Posted by Reindl Harald <h....@thelounge.net>.
Am 03.03.2014 11:07, schrieb Venkatesh Prabu Narayanan:
> @Graham,
>
> Most of these dependencies are not available for RHEL 4 via yum
why do you waste others time not stating at the begin
that you are use a unsupported and outdated OS?
you can't have recent software on such a system
so please stop waste others time especially on devel-lists
End of Production 3 (End of Production Phase)
February 29, 2012
Re: Resolving apr dependencies while generating httpd rpm build
compiled from source
Posted by Venkatesh Prabu Narayanan <ve...@gmail.com>.
@Reindl,
>>> why do you waste others time not stating at the begin
that you are use a unsupported and outdated OS?
>>> you can't have recent software on such a system
so please stop waste others time especially on devel-lists
>>> End of Production 3 (End of Production Phase)
February 29, 2012
In my second thread itself I have mentioned my OS. Please read this,
*I am trying all these for my linux OS RHEL 4. Please note that OS upgrade
is not an option as of now*
Also to avoid such issues with apr and apr-util I tried make use of bundled
source with this option '--with-included-apr'. But still not working
atleast for me. Also I didn't find any link stating the reason why default
bundled sources are not encouraged to use.
I have already discussed this thread with 'users' list. As I didn't get
response from users list, I have posted to 'dev' list.
@Graham,
Thanks for your comment. I have already removed the same in 'Require' and
'%files' section. I will also try removing the same from configure section.
Thanks,
Venkatesh
On Mon, Mar 3, 2014 at 4:05 PM, Graham Leggett <mi...@sharp.fm> wrote:
> On 3 Mar 2014, at 10:07, Venkatesh Prabu Narayanan <
> venkateshprabu06@gmail.com> wrote:
>
> > Most of these dependencies are not available for RHEL 4 via yum and that
> is why I have commented it out.
>
> If you comment out a dependency, you need to comment out the parameter to
> ./configure that enables that dependency, and then if necessary comment out
> the files generated by that dependency that will no longer be included.
>
> Regards,
> Graham
> --
>
>
--
Thanks and Regards
N.Venkatesh Prabu
Re: Resolving apr dependencies while generating httpd rpm build compiled from source
Posted by Graham Leggett <mi...@sharp.fm>.
On 3 Mar 2014, at 10:07, Venkatesh Prabu Narayanan <ve...@gmail.com> wrote:
> Most of these dependencies are not available for RHEL 4 via yum and that is why I have commented it out.
If you comment out a dependency, you need to comment out the parameter to ./configure that enables that dependency, and then if necessary comment out the files generated by that dependency that will no longer be included.
Regards,
Graham
--
Re: Resolving apr dependencies while generating httpd rpm build
compiled from source
Posted by Venkatesh Prabu Narayanan <ve...@gmail.com>.
@Graham,
Most of these dependencies are not available for RHEL 4 via yum and that is
why I have commented it out.
Meanwhile I get apr-util to work with this below package even after
commenting out the devel dependencies from cent OS,
http://vault.centos.org/6.5/os/Source/SPackages/apr-util-1.3.9-3.el6_0.1.src.rpm
I have already compiled apr of version 1.4.8 and now I have created
apr-util of version 1.3.9. Now I can create httpd rpm of version 2.2.24
using these create rpms.
Going to test installing them.. Do you think it is good to proceed with
this ? Or Do you want me to try using latest apr-util ?
Thanks,
Venkatesh
On Mon, Mar 3, 2014 at 2:28 PM, Graham Leggett <mi...@sharp.fm> wrote:
> On 3 Mar 2014, at 08:05, Venkatesh Prabu Narayanan <
> venkateshprabu06@gmail.com> wrote:
>
> > Further to my previous mail, I have generated apr rpm build and
> successfully installed after installing the dependency packages (autoconf,
> libtool, doxygen).
> >
> > After this I tried installing apr-util 1.5.3 version and it has the
> following dependencies,
> >
> > [root@localhost apr-util]# rpmbuild -ba apr-util.spec
> > error: Failed build dependencies:
> > libuuid-devel is needed by apr-util-1.5.3-1.i386
> > postgresql-devel is needed by apr-util-1.5.3-1.i386
> > mysql-devel is needed by apr-util-1.5.3-1.i386
> > sqlite-devel >= 3.0.0 is needed by apr-util-1.5.3-1.i386
> > freetds-devel is needed by apr-util-1.5.3-1.i386
> > unixODBC-devel is needed by apr-util-1.5.3-1.i386
> > nss-devel is needed by apr-util-1.5.3-1.i386
> >
> >
> > I just commented out all the above dependencies and this time I am
> getting segmentation fault while doing rpmbuild as below,
>
> Don't comment out the dependencies, install them with "yum install".
>
> Regards,
> Graham
> --
>
>
--
Thanks and Regards
N.Venkatesh Prabu
Re: Resolving apr dependencies while generating httpd rpm build compiled from source
Posted by Graham Leggett <mi...@sharp.fm>.
On 3 Mar 2014, at 08:05, Venkatesh Prabu Narayanan <ve...@gmail.com> wrote:
> Further to my previous mail, I have generated apr rpm build and successfully installed after installing the dependency packages (autoconf, libtool, doxygen).
>
> After this I tried installing apr-util 1.5.3 version and it has the following dependencies,
>
> [root@localhost apr-util]# rpmbuild -ba apr-util.spec
> error: Failed build dependencies:
> libuuid-devel is needed by apr-util-1.5.3-1.i386
> postgresql-devel is needed by apr-util-1.5.3-1.i386
> mysql-devel is needed by apr-util-1.5.3-1.i386
> sqlite-devel >= 3.0.0 is needed by apr-util-1.5.3-1.i386
> freetds-devel is needed by apr-util-1.5.3-1.i386
> unixODBC-devel is needed by apr-util-1.5.3-1.i386
> nss-devel is needed by apr-util-1.5.3-1.i386
>
>
> I just commented out all the above dependencies and this time I am getting segmentation fault while doing rpmbuild as below,
Don't comment out the dependencies, install them with "yum install".
Regards,
Graham
--
Re: Resolving apr dependencies while generating httpd rpm build compiled
from source
Posted by Reindl Harald <h....@thelounge.net>.
Am 03.03.2014 09:05, schrieb Venkatesh Prabu Narayanan:
> Further to my previous mail, I have generated apr rpm build and successfully installed after installing the
> dependency packages (autoconf, libtool, doxygen).
>
> After this I tried installing apr-util 1.5.3 version and it has the following dependencies,
>
> [root@localhost apr-util]# rpmbuild -ba apr-util.spec
> error: Failed build dependencies:
> libuuid-devel is needed by apr-util-1.5.3-1.i386
> postgresql-devel is needed by apr-util-1.5.3-1.i386
> mysql-devel is needed by apr-util-1.5.3-1.i386
> sqlite-devel >= 3.0.0 is needed by apr-util-1.5.3-1.i386
> freetds-devel is needed by apr-util-1.5.3-1.i386
> unixODBC-devel is needed by apr-util-1.5.3-1.i386
> nss-devel is needed by apr-util-1.5.3-1.i386
>
> I just commented out all the above dependencies
stop this, you have no clue what are you doing and that thread
belongs not to http-ddevl at all - really
> @Reindl Harald,
> If I remove that apr files from 'BuildPrereq', it is still showing
> some 'undeclared errors' related to apr-util modules
the intention to remove the build-deps in httpd.spec was for the
case you manage build both from the httpd-source if that is not
possible you just need the build dependencies because APR is
*mandatory* and not optional
Re: Resolving apr dependencies while generating httpd rpm build
compiled from source
Posted by Venkatesh Prabu Narayanan <ve...@gmail.com>.
Hi,
Further to my previous mail, I have generated apr rpm build and
successfully installed after installing the dependency packages (autoconf,
libtool, doxygen).
After this I tried installing apr-util 1.5.3 version and it has the
following dependencies,
[root@localhost apr-util]# rpmbuild -ba apr-util.spec
error: Failed build dependencies:
libuuid-devel is needed by apr-util-1.5.3-1.i386
postgresql-devel is needed by apr-util-1.5.3-1.i386
mysql-devel is needed by apr-util-1.5.3-1.i386
sqlite-devel >= 3.0.0 is needed by apr-util-1.5.3-1.i386
freetds-devel is needed by apr-util-1.5.3-1.i386
unixODBC-devel is needed by apr-util-1.5.3-1.i386
nss-devel is needed by apr-util-1.5.3-1.i386
I just commented out all the above dependencies and this time I am getting
segmentation fault while doing rpmbuild as below,
make[1]: Leaving directory `/usr/src/redhat/BUILD/apr-util-1.5.3/test'
+ make check
teststatus=0; \
progfailed=""; \
for prog in dbd testall; do \
if test "$prog" = 'dbd'; then \
for driver in none ; do \
if test "$driver" != 'none'; then \
LD_LIBRARY_PATH="`echo
"../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$LD_LIBRARY_PATH"
| sed -e 's/::*$//'`" \
./$prog $driver; \
status=$?; \
if test $status != 0; then \
teststatus=$status; \
progfailed="$progfailed '$prog
$driver'"; \
fi; \
fi; \
done; \
else \
LD_LIBRARY_PATH="`echo
"../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$LD_LIBRARY_PATH"
| sed -e 's/::*$//'`" \
./$prog; \
status=$?; \
if test $status != 0; then \
teststatus=$status; \
progfailed="$progfailed $prog"; \
fi; \
fi; \
done; \
if test $teststatus != 0; then \
echo "Programs failed:$progfailed"; \
fi; \
exit $teststatus
teststrmatch : SUCCESS
testuri : SUCCESS
testuuid : SUCCESS
testbuckets : SUCCESS
testpass : SUCCESS
testmd4 : SUCCESS
testmd5 : SUCCESS
testcrypto : SUCCESS
testldap : SUCCESS
testdbd : SUCCESS
testdate : SUCCESS
testmemcache : SUCCESS
testxml : |/bin/sh: line 1: 7518 Segmentation fault
LD_LIBRARY_PATH="`echo
"../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$LD_LIBRARY_PATH"
| sed -e 's/::*$//'`" ./$prog
Programs failed: testall
make: *** [check] Error 139
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.90029 (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.90029 (%check)
[root@localhost apr-util]#
Please let me know what is wrong here. To avoid these issues, I tried to
make use of bundled apr and apr-util. But I don't know the exact steps to
make use of those.
Regards,
Venkatesh
On Mon, Mar 3, 2014 at 10:20 AM, Venkatesh Prabu Narayanan <
venkateshprabu06@gmail.com> wrote:
> @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 <mi...@sharp.fm> wrote:
>
>> On 2 Mar 2014, at 07:00, Venkatesh Prabu Narayanan <
>> venkateshprabu06@gmail.com> 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
>
--
Thanks and Regards
N.Venkatesh Prabu
Re: Resolving apr dependencies while generating httpd rpm build
compiled from source
Posted by Venkatesh Prabu Narayanan <ve...@gmail.com>.
@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 <mi...@sharp.fm> wrote:
> On 2 Mar 2014, at 07:00, Venkatesh Prabu Narayanan <
> venkateshprabu06@gmail.com> 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
Re: Resolving apr dependencies while generating httpd rpm build compiled from source
Posted by Graham Leggett <mi...@sharp.fm>.
On 2 Mar 2014, at 07:00, Venkatesh Prabu Narayanan <ve...@gmail.com> 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
--