Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 199554 - rpmbuild sendmail fails when enable_pie is set to no
rpmbuild sendmail fails when enable_pie is set to no
Product: Fedora
Classification: Fedora
Component: sendmail (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Woerner
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2006-07-20 08:11 EDT by Thomas Steudten
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-08 11:08:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thomas Steudten 2006-07-20 08:11:48 EDT
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

In the sendmail.spec file set: %define enable_pie no

Steps to Reproduce:
Actual results:
Executing(%build): /bin/sh -e /export/space/tmp/rpm-tmp.92793
+ umask 022
+ cd /home/rpmbuild/rpm/BUILD
+ cd sendmail-8.13.7
+ cat
+ cat
+ cat
+ cat
+ cat
+ DIRS='libsmutil sendmail mailstats rmail praliases smrsh makemap'
+ DIRS='libmilter libsmutil sendmail mailstats rmail praliases smrsh makemap'
+ for i in '$DIRS'
+ pushd libmilter
~/rpm/BUILD/sendmail-8.13.7/libmilter ~/rpm/BUILD/sendmail-8.13.7
+ sh Build -f ../redhat.config.m4
Configuration: pfx=, os=Linux, rel=2.6.17, rbase=2, rroot=2.6, arch=alpha, sfx=,
Using M4=/usr/bin/m4
/home/rpmbuild/rpm/BUILD/sendmail-8.13.7/obj.Linux.2.6.17.alpha/libmilter using
Including ../redhat.config.m4
Making dependencies in
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 -DXDEBU
-Dsm_snprintf=snprintf -D_FFR_MILTER_ROOT_UNSAFE -D_REENTRANT main.c engine.c
listener.c handler.c com
m.c smfi.c signal.c sm_gethost.c errstring.c strl.c    >> Makefile
Making in /home/rpmbuild/rpm/BUILD/sendmail-8.13.7/obj.Linux.2.6.17.alpha/libmilter
cc `-O2 -g -mieee -mcpu=pca56  -Wa,-mpca56,-m21164pc  --param 
inline-unit-growth=10000' -I. -I../../s
endmail   -I../../include  -I/usr/include/db4 -I/usr/kerberos/include -Wall
-DNOT_SENDMAIL -Dsm_snprintf=snpri
ntf -D_FFR_MILTER_ROOT_UNSAFE -D_REENTRANT -DXP_MT   -c -o main.o main.c
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [main.o] Error 2
error: Bad exit status from /export/space/tmp/rpm-tmp.92793 (%build)

RPM build errors:
    Bad exit status from /export/space/tmp/rpm-tmp.92793 (%build)

Expected results: clean build

Additional info: sendmail-8.13.7-2.fc5.1.src.rpm
Comment 1 Thomas Steudten 2006-07-20 09:01:39 EDT
This looks like a side-effect and depends not on the pie setting.

On the other hand I don't know why you use a tripple qouting here:

define(\`confOPTIMIZE', \`\`\`${RPM_OPT_FLAGS}''')

With this patch, it works for me:

--- sendmail.spec.orig  2006-07-20 14:37:35.000000000 +0200
+++ sendmail.spec       2006-07-20 14:37:54.000000000 +0200
@@ -150,7 +150,7 @@
 # generate redhat config file
 cat > redhat.config.m4 << EOF
-define(\`confOPTIMIZE', \`\`\`${RPM_OPT_FLAGS}''')
+define(\`confOPTIMIZE', \`${RPM_OPT_FLAGS}')
 define(\`confENVDEF', \`-I/usr/include/db4 -I/usr/kerberos/include -Wall
 define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}')
 define(\`confLIBS', \`-lnsl -lwrap -lhesiod -lcrypt -ldb')
Comment 2 Thomas Woerner 2006-07-20 09:26:01 EDT
The package sendmail-8.13.7-2.fc5.2 was build on FC-5 and there was no error at
all. So where are you rebuilding this package?

Note You need to log in before you can comment on or make changes to this bug.