LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 15
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
 
Old 08-26-2005, 04:41 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 147Reputation: 147
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.
 
Old 08-29-2005, 08:42 AM   #3
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Original Poster
Rep: Reputation: 15
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
 
  


Reply



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 04:29 PM
building rpm from sources Yoyo302 Fedora 1 07-28-2005 06:52 PM
need help building rpm Hockeyfan Linux - Software 3 11-20-2004 05:15 AM
building rpm nearfar Linux - Newbie 1 12-29-2003 09:21 PM
building rpm saleem Programming 1 11-12-2001 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:40 PM.

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