-   Linux - Networking (
-   -   regarding building RPM (

hinetvenkat 08-26-2005 03:46 AM

regarding building RPM
Dear All

I want to build the rpm file for Sendmail- version. It is for redhat 9.0.

I download the src successfully. I can see the spec file in the SPECS folder.

When i try to build, it give the error as follows. It did not mention the dependency.

[root@localhost SPECS]# rpmbuild -bb sendmail.spec
error: Failed build dependencies:
setup >= 2.5.31-1 is needed by sendmail-8.13.4-1
[root@localhost SPECS]#

Kindly help me

titopoquito 08-26-2005 04:41 AM

It seems you have got the right information, "setup" needs to be version 2.5.31-1.

hinetvenkat 08-29-2005 08:42 AM


I tried with setup-2.5.31-1. I can execute the spec file. But i got some other error.

When i try to build the sendmail RPM file, it gives the following status.

[root@localhost SPECS]# rpmbuild -ba sendmail.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.29891
+ umask 022
+ cd /usr/src/redhat/BUILD
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf sendmail-8.13.4
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/sendmail.8.13.4.tar.gz
+ tar -xf -
+ '[' 0 -ne 0 ']'
+ cd sendmail-8.13.4
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #3 (sendmail-8.12.2-makemapman.patch):'
Patch #3 (sendmail-8.12.2-makemapman.patch):
+ patch -p1 -b --suffix .makemapman -s
+ echo 'Patch #4 (sendmail-8.13.4-smrsh-paths.patch):'
Patch #4 (sendmail-8.13.4-smrsh-paths.patch):
+ patch -p1 -b --suffix .smrsh_paths -s
+ echo 'Patch #5 (sendmail-8.12.2-movefiles.patch):'
Patch #5 (sendmail-8.12.2-movefiles.patch):
+ patch -p1 -b --suffix .movefiles -s
+ echo 'Patch #7 (sendmail-8.13.0-pid.patch):'
Patch #7 (sendmail-8.13.0-pid.patch):
+ patch -p1 -b --suffix .pid -s
+ echo 'Patch #9 (sendmail-8.12.7-hesiod.patch):'
Patch #9 (sendmail-8.12.7-hesiod.patch):
+ patch -p1 -b --suffix .hesiod -s
+ echo 'Patch #10 (sendmail-8.12.7-manpage.patch):'
Patch #10 (sendmail-8.12.7-manpage.patch):
+ patch -p1 -b --suffix .manpage -s
+ echo 'Patch #11 (sendmail-8.13.4-dynamic.patch):'
Patch #11 (sendmail-8.13.4-dynamic.patch):
+ patch -p1 -b --suffix .dynamic -s
+ echo 'Patch #12 (sendmail-8.13.0-cyrus.patch):'
Patch #12 (sendmail-8.13.0-cyrus.patch):
+ patch -p1 -b --suffix .cyrus -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.29891
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd sendmail-8.13.4
+ export LANG
+ cat
+ cat
+ cat
+ cat
+ cat
+ cat
+ DIRS=libsmutil sendmail mailstats rmail praliases smrsh makemap
+ DIRS=libmilter libsmutil sendmail mailstats rmail praliases smrsh makemap
+ pushd libmilter
/usr/src/redhat/BUILD/sendmail-8.13.4/libmilter /usr/src/redhat/BUILD/sendmail-8
+ sh Build -f ../redhat.config.m4
Configuration: pfx=, os=Linux, rel=2.4.20-8, rbase=2, rroot=2.4, arch=i686, sfx=
, variant=optimized
Using M4=/usr/bin/m4
Creating /usr/src/redhat/BUILD/sendmail-8.13.4/obj.Linux.2.4.20-8.i686/libmilter
using /usr/src/redhat/BUILD/sendmail-8.13.4/devtools/OS/Linux
Including ../redhat.config.m4
Making dependencies in /usr/src/redhat/BUILD/sendmail-8.13.4/obj.Linux.2.4.20-8.
ln -f -s ../../libsm/errstring.c .
ln -f -s ../../libsm/strl.c .
rm -f sm_os.h
ln -f -s ../../include/sm/os/sm_os_linux.h sm_os.h
cc -M -I. -I../../sendmail -I../../include -I/usr/include/db4 -I/usr/kerberos
FR_MILTER_ROOT_UNSAFE -D_REENTRANT main.c engine.c listener.c handler.c comm.c s
mfi.c signal.c sm_gethost.c errstring.c strl.c >> Makefile
Making in /usr/src/redhat/BUILD/sendmail-8.13.4/obj.Linux.2.4.20-8.i686/libmilte
cc -O2 -g -pipe -march=i386 -mcpu=i686 -fpie -I. -I../../sendmail -I../../incl
ude -I/usr/include/db4 -I/usr/kerberos/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -
T -c -o main.o main.c
cc1: unrecognized option `-fpie'
make: *** [main.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.29891 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.29891 (%build)
[root@localhost SPECS]#

What could be "fpie" how can i troubleshoot that.

Kindly help me

All times are GMT -5. The time now is 03:41 AM.