LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-26-2005, 04:46 AM   #1
Registered: Nov 2004
Location: Mumbai
Posts: 80

Rep: Reputation: 15
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
Old 08-26-2005, 05:41 AM   #2
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,539

Rep: Reputation: 101Reputation: 101

It seems you have got the right information, "setup" needs to be version 2.5.31-1.
Old 08-29-2005, 09:42 AM   #3
Registered: Nov 2004
Location: Mumbai
Posts: 80

Original Poster
Rep: Reputation: 15

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 05:29 PM
building rpm from sources Yoyo302 Fedora 1 07-28-2005 07:52 PM
need help building rpm Hockeyfan Linux - Software 3 11-20-2004 06:15 AM
building rpm nearfar Linux - Newbie 1 12-29-2003 10:21 PM
building rpm saleem Programming 1 11-12-2001 06:42 AM

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration