LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   regarding building RPM (http://www.linuxquestions.org/questions/linux-networking-3/regarding-building-rpm-357144/)

hinetvenkat 08-26-2005 03:46 AM

regarding building RPM
 
Dear All

I want to build the rpm file for Sendmail-8.13.4.1 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

http://rpm.pbone.net/index.php3/stat....html#requires

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

hinetvenkat 08-29-2005 08:42 AM

Thanks

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
+ LANG=C
+ 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 -
+ STATUS=0
+ '[' 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
+ LANG=C
+ 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
.13.4
+ 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.
i686/libmilter
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
/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDO
R_CF_PATH=1 -D_FFR_WORKAROUND_BROKEN_NAMESERVERS -D_FFR_SMTP_SSL -DSASL=2 -D_FFR
_UNSAFE_SASL -DSM_CONF_LDAP_MEMFREE=1 -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_F
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
r
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 -
DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_WORKAROUND_BROKEN_NAME
SERVERS -D_FFR_SMTP_SSL -DSASL=2 -D_FFR_UNSAFE_SASL -DSM_CONF_LDAP_MEMFREE=1 -DN
OT_SENDMAIL -Dsm_snprintf=snprintf -D_FFR_MILTER_ROOT_UNSAFE -D_REENTRANT -DXP_M
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 05:53 AM.