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 <
[email protected]> 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 <[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
>
--
Thanks and Regards
N.Venkatesh Prabu