Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203804 - [fPIC] mail-mta/courier-0.59.0 doesn't compile on hardened amd64
Summary: [fPIC] mail-mta/courier-0.59.0 doesn't compile on hardened amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-30 18:46 UTC by Christian Korff
Modified: 2010-10-28 15:11 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,404.84 KB, text/plain)
2007-12-30 19:00 UTC, Christian Korff
Details
build log #2 (build.log2.txt,372.20 KB, text/plain)
2009-09-18 16:50 UTC, Brandon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Korff 2007-12-30 18:46:21 UTC
make[2]: Entering directory `/tmp/portage/mail-mta/courier-0.53.2-r1/work/courier-0.53.2/imap'
Linking libimaplogin.la
Compiling mainloop.c
Compiling imaptoken.c
Compiling imapwrite.c
Compiling capability.c
Compiling smap.c
Compiling smapsnapshot.c
Linking libimapd.la
Linking libpop3d.la
Compiling imaplogin.c
Compiling authenticate_auth.c
Compiling proxy.c
Linking imaplogin
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libimapd.a(mainloop.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
./.libs/libimapd.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [imaplogin] Error 1
make[2]: Leaving directory `/tmp/portage/mail-mta/courier-0.53.2-r1/work/courier-0.53.2/imap'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/portage/mail-mta/courier-0.53.2-r1/work/courier-0.53.2/imap'
make: *** [all-recursive] Error 1
 * 
 * ERROR: mail-mta/courier-0.53.2-r1 failed.
 * Call stack:
 *                  ebuild.sh, line 1701:  Called dyn_compile
 *                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                  ebuild.sh, line   44:  Called src_compile
 *   courier-0.53.2-r1.ebuild, line  112:  Called die
 * The specific snippet of code:
 *   	emake || die "Compile problem"
 *  The die message:
 *   Compile problem
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/tmp/portage/portage/mail-mta/courier-0.53.2-r1/temp/build.log'.
 * 

 * Messages for package mail-mta/courier-0.53.2-r1:

 * 
 * ERROR: mail-mta/courier-0.53.2-r1 failed.
 * Call stack:
 *                  ebuild.sh, line 1701:  Called dyn_compile
 *                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                  ebuild.sh, line   44:  Called src_compile
 *   courier-0.53.2-r1.ebuild, line  112:  Called die
 * The specific snippet of code:
 *   	emake || die "Compile problem"
 *  The die message:
 *   Compile problem
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/tmp/portage/mail-mta/courier-0.53.2-r1/temp/build.log'.
 * 
 * disabling confcache, binary cannot be found

# emerge --info
Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6-vanilla, glibc-2.3.6-r5, 2.6.20-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r10 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Fri, 28 Dec 2007 22:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/mpd/conf /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/src/portage-distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.tiscali.nl/ http://gentoo.mneisen.org/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="fr de en_GB"
PKGDIR="/usr/local/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 7zip X a52 aac aalib accessibility acct ace acl acpi activefilter adsl agg aiglx aim akode alsa amd64 amr amuled animgif ao aoss arj auth avantgo avi background bash-completion berkdb bluetooth bonjour bzip2 cairo calendar canna cap capi cdda cddb cdparanoia cdr cdrom cgi charconv chardet chipcard chipcard2 chm cjk cracklib crypt cups dmx dri dts dv dvb dvd dvdr dvdread enca esd eurofile exif fax flac gdbm geoip gif gimpprint gpm gps gtk hardened ipv6 jpeg jpeg2k justify kerberos lame ldap libcaca midi mng mp3 mpeg multilib ncurses nls nptl nptlonly ogg opengl pam perl pic png python readline sdl sqlite sse2 ssl svg tcpd tiff unicode urandom usb vorbis wmf xcb xinerama xml xorg xprint xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FRITZCAPI_CARDS="fcdsl2 fcdslsl fcpci" INPUT_DEVICES="keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr de en_GB" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="ati dummy fbdev i810 mach64 nv r128 s3 s3virge sis v4l vesa vga via vmware radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

build.log will be attached
Comment 1 Christian Korff 2007-12-30 19:00:00 UTC
Created attachment 139648 [details]
build log
Comment 2 Bernd Wurst 2008-04-21 13:17:34 UTC
A new version of net-libs/courier-authlib and mail-mta/courier has been commited into portage recently. Please check if this bug persists when using the new versions.
Comment 3 Hanno Böck gentoo-dev 2008-05-26 18:09:49 UTC
Can't reproduce and no answer from reporter.

Reporter, please re-open if it still exists with latest courier.
Comment 4 Christian Korff 2008-07-20 16:31:24 UTC
That's still a problem.

I tried to compile the new net-libs/courier-authlib version:
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6'
Making all in libltdl
make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/libltdl'
make  all-am
make[3]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/libltdl'
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -c -o ltdl.lo ltdl.c
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -c ltdl.c  -fPIC -DPIC -o .libs/ltdl.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -c ltdl.c -o ltdl.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=nocona -pipe   -o libltdlc.la  ltdl.lo -ldl 
x86_64-pc-linux-gnu-ar cru .libs/libltdlc.a .libs/ltdl.o
x86_64-pc-linux-gnu-ranlib .libs/libltdlc.a
creating libltdlc.la
(cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la)
make[3]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/libltdl'
make[2]: Leaving directory `/mnt/sda1/portage/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/libltdl'
Making all in gdbmobj
make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/gdbmobj'
cd . && /bin/sh /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-am
make[3]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/gdbmobj'
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo -c -o gdbmobj.lo gdbmobj.c
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo -c gdbmobj.c  -fPIC -DPIC -o .libs/gdbmobj.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo -c gdbmobj.c -o gdbmobj.o >/dev/null 2>&1
mv -f .deps/gdbmobj.Tpo .deps/gdbmobj.Plo
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.Tpo -c -o gdbmobj2.lo gdbmobj2.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.Tpo -c gdbmobj2.c  -fPIC -DPIC -o .libs/gdbmobj2.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.Tpo -c gdbmobj2.c -o gdbmobj2.o >/dev/null 2>&1
mv -f .deps/gdbmobj2.Tpo .deps/gdbmobj2.Plo
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.Tpo -c -o gdbmobj3.lo gdbmobj3.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.Tpo -c gdbmobj3.c  -fPIC -DPIC -o .libs/gdbmobj3.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.Tpo -c gdbmobj3.c -o gdbmobj3.o >/dev/null 2>&1
mv -f .deps/gdbmobj3.Tpo .deps/gdbmobj3.Plo
/bin/sh ./libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=nocona -pipe   -o libgdbmobj.la  gdbmobj.lo gdbmobj2.lo gdbmobj3.lo -lgdbm 
x86_64-pc-linux-gnu-ar cru .libs/libgdbmobj.a .libs/gdbmobj.o .libs/gdbmobj2.o .libs/gdbmobj3.o
x86_64-pc-linux-gnu-ranlib .libs/libgdbmobj.a
creating libgdbmobj.la
(cd .libs && rm -f libgdbmobj.la && ln -s ../libgdbmobj.la libgdbmobj.la)
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT testgdbm.o -MD -MP -MF .deps/testgdbm.Tpo -c -o testgdbm.o testgdbm.C
mv -f .deps/testgdbm.Tpo .deps/testgdbm.Po
/bin/sh ./libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -march=nocona -pipe -static  -o testgdbm testgdbm.o libgdbmobj.la 
x86_64-pc-linux-gnu-g++ -O2 -march=nocona -pipe -o testgdbm testgdbm.o  ./.libs/libgdbmobj.a /usr/lib64/libgdbm.so  
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: testgdbm.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
testgdbm.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [testgdbm] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/gdbmobj'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/gdbmobj'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6'


mail-mta/courier-0.59.0 fails too:
make  all-am
make[2]: Entering directory `/var/tmp/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/gdbmobj'
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo -c -o gdbmobj.lo gdbmobj.c
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo -c gdbmobj.c  -fPIC -DPIC -o .libs/gdbmobj.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo -c gdbmobj.c -o gdbmobj.o >/dev/null 2>&1
mv -f .deps/gdbmobj.Tpo .deps/gdbmobj.Plo
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.Tpo -c -o gdbmobj2.lo gdbmobj2.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.Tpo -c gdbmobj2.c  -fPIC -DPIC -o .libs/gdbmobj2.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.Tpo -c gdbmobj2.c -o gdbmobj2.o >/dev/null 2>&1
mv -f .deps/gdbmobj2.Tpo .deps/gdbmobj2.Plo
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.Tpo -c -o gdbmobj3.lo gdbmobj3.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.Tpo -c gdbmobj3.c  -fPIC -DPIC -o .libs/gdbmobj3.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=nocona -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.Tpo -c gdbmobj3.c -o gdbmobj3.o >/dev/null 2>&1
mv -f .deps/gdbmobj3.Tpo .deps/gdbmobj3.Plo
/bin/sh ./libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=nocona -pipe   -o libgdbmobj.la  gdbmobj.lo gdbmobj2.lo gdbmobj3.lo -lgdbm 
x86_64-pc-linux-gnu-ar cru .libs/libgdbmobj.a .libs/gdbmobj.o .libs/gdbmobj2.o .libs/gdbmobj3.o
x86_64-pc-linux-gnu-ranlib .libs/libgdbmobj.a
creating libgdbmobj.la
(cd .libs && rm -f libgdbmobj.la && ln -s ../libgdbmobj.la libgdbmobj.la)
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.     -O2 -march=nocona -pipe -MT testgdbm.o -MD -MP -MF .deps/testgdbm.Tpo -c -o testgdbm.o testgdbm.C
mv -f .deps/testgdbm.Tpo .deps/testgdbm.Po
/bin/sh ./libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -march=nocona -pipe -static  -o testgdbm testgdbm.o libgdbmobj.la 
x86_64-pc-linux-gnu-g++ -O2 -march=nocona -pipe -o testgdbm testgdbm.o  ./.libs/libgdbmobj.a /usr/lib64/libgdbm.so  
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: testgdbm.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
testgdbm.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [testgdbm] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/gdbmobj'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/gdbmobj'
make: *** [all-recursive] Error 1

# emerge -pv =net-libs/courier-authlib-0.60.6 =mail-mta/courier-0.59.0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-libs/courier-authlib-0.60.6 [0.60.2-r1] USE="berkdb crypt debug gdbm ldap mysql pam postgres -vpopmail" 0 kB 
[ebuild     U ] mail-mta/courier-0.59.0 [0.53.2-r1] USE="crypt fam fax ipv6 ldap mailwrapper mysql nls pam postgres spell -norewrite -web% -webmail%" 0 kB 

Total: 2 packages (2 upgrades), Size of downloads: 0 kB
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-20 22:53:49 UTC
Sorry for taking so long on this one, courier works on a non-hardened profile so I am removing amd64@g.o from this bug.

@hardened team: Please evaluate and decide what to do with this bug..It works here (non-hardened) so there is nothing for the amd64 team to do. Also adding the maintainer to CC.
Comment 6 Brandon 2009-09-18 16:41:17 UTC
I must have had courier installed before I switched to a hardened profile because now when I try to "emerge -avtuND world" I get the following issue with mail-mta/courier-0.59.0.


make[2]: Entering directory `/var/tmp/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/gdbmobj'
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=nocona -O2 -pipe -MT gdbmobj.lo -MD -MP -MF .deps/gdbmobj.Tpo
 -c -o gdbmobj.lo gdbmobj.c
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=nocona -O2 -pipe -MT gdbmobj2.lo -MD -MP -MF .deps/gdbmobj2.T
po -c -o gdbmobj2.lo gdbmobj2.c
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=nocona -O2 -pipe -MT gdbmobj3.lo -MD -MP -MF .deps/gdbmobj3.T
po -c -o gdbmobj3.lo gdbmobj3.c
./libtool: line 835: X--tag=CC: command not found
./libtool: line 868: libtool: ignoring unknown tag : command not found
./libtool: line 835: X--mode=compile: command not found
./libtool: line 835: X--tag=CC: command not found
./libtool: line 868: libtool: ignoring unknown tag : command not found
./libtool: line 835: X--mode=compile: command not found
./libtool: line 1002: *** Warning: inferring the mode of operation is deprecated.: command not found
./libtool: line 1003: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
./libtool: line 1146: Xx86_64-pc-linux-gnu-gcc: command not found
./libtool: line 1146: X-DHAVE_CONFIG_H: command not found
./libtool: line 1146: X-I.: command not found
./libtool: line 835: X--tag=CC: command not found
./libtool: line 1146: X-march=nocona: command not found
./libtool: line 1146: X-O2: command not found
./libtool: line 1146: X-pipe: command not found
./libtool: line 1146: X-MT: command not found
./libtool: line 1146: Xgdbmobj.lo: command not found
./libtool: line 1146: X-MD: command not found
./libtool: line 1146: X-MP: command not found
./libtool: line 868: libtool: ignoring unknown tag : command not found
./libtool: line 1002: *** Warning: inferring the mode of operation is deprecated.: command not found
./libtool: line 1146: X-MF: command not found
./libtool: line 835: X--mode=compile: command not found
./libtool: line 1003: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
./libtool: line 1146: Xx86_64-pc-linux-gnu-gcc: command not found
./libtool: line 1146: X.deps/gdbmobj.Tpo: No such file or directory
./libtool: line 1146: X-DHAVE_CONFIG_H: command not found
./libtool: line 1146: X-I.: command not found
./libtool: line 1146: X-march=nocona: command not found
./libtool: line 1146: X-O2: command not found
./libtool: line 1146: X-pipe: command not found
./libtool: line 1146: X-MT: command not found
./libtool: line 1146: Xgdbmobj2.lo: command not found
./libtool: line 1146: X-MD: command not found
./libtool: line 1146: X-MP: command not found
./libtool: line 1146: X-c: command not found
./libtool: line 1146: X-MF: command not found
./libtool: line 1146: X.deps/gdbmobj2.Tpo: No such file or directory
./libtool: line 1198: Xgdbmobj.lo: command not found
./libtool: line 1203: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [gdbmobj.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
./libtool: line 1146: X-c: command not found
./libtool: line 1198: Xgdbmobj2.lo: command not found
./libtool: line 1203: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [gdbmobj2.lo] Error 1
./libtool: line 1002: *** Warning: inferring the mode of operation is deprecated.: command not found
./libtool: line 1003: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
./libtool: line 1146: Xx86_64-pc-linux-gnu-gcc: command not found
./libtool: line 1146: X-DHAVE_CONFIG_H: command not found
./libtool: line 1146: X-I.: command not found
./libtool: line 1146: X-march=nocona: command not found
./libtool: line 1146: X-O2: command not found
./libtool: line 1146: X-pipe: command not found
./libtool: line 1146: X-MT: command not found
./libtool: line 1146: Xgdbmobj3.lo: command not found
./libtool: line 1146: X-MD: command not found
./libtool: line 1146: X-MP: command not found
./libtool: line 1146: X-MF: command not found
./libtool: line 1146: X.deps/gdbmobj3.Tpo: No such file or directory
./libtool: line 1146: X-c: command not found
./libtool: line 1198: Xgdbmobj3.lo: command not found
./libtool: line 1203: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [gdbmobj3.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/gdbmobj'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/gdbmobj'
make: *** [all-recursive] Error 1
 *
 * ERROR: mail-mta/courier-0.59.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3133:  Called die
 * The specific snippet of code:
 *       emake || die "Compile problem"
 *  The die message:
 *   Compile problem
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/mail-mta:courier-0.59.0:20090918-150805.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/courier-0.59.0/temp/environment'.
 *



# emerge --info
Portage 2.1.6.13 (hardened/linux/amd64/10.0, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.24-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.24-gentoo-r4-x86_64-Intel-R-_Pentium-R-_4_CPU_3.60GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 18 Sep 2009 04:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.5.2-r7, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt cups curl dri encode fam gdbm gpm hardened iconv isdnlog justify mmx mudflap multilib mysql ncurses nptl nptlonly pam pcre perl php pic pppd python readline reflection screen session speex spl sse sse2 ssl sysfs tcpd threads unicode urandom vhosts xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Brandon 2009-09-18 16:50:45 UTC
Created attachment 204531 [details]
build log #2

http://drbroyles.com/gentoo/bug_203804
Comment 8 Vladimir Linek 2009-11-03 10:56:55 UTC
Hello,

JFYI, I made courier to compile on my hardened amd64 by removing the explicit autoreconf call in gdbmobj. I admit, I have no idea, why the autoreconf was called there, but courier seems to work for me, now :-)

--- courier-0.59.0.ebuild.orig
+++ courier-0.59.0.ebuild.dirtypatched
@@ -64,8 +64,8 @@
 	use norewrite && epatch "${FILESDIR}/norewrite.patch"
 
 	epatch "${FILESDIR}/${P}-asneeded.patch"
-	cd "${S}/gdbmobj/"
-	eautoreconf
+	#cd "${S}/gdbmobj/"
+	#eautoreconf
 }
 
 src_compile() {
Comment 9 matrix 2010-04-06 15:01:36 UTC
I use db instead of the gdbm , and make it successfuly.
The db library on MANDRIVA named libdb4.7-devel, you can have a try.
Comment 10 Magnus Granberg gentoo-dev 2010-04-06 23:21:36 UTC
do mail-mta/courier-0.64.1 compile?
Comment 11 Magnus Granberg gentoo-dev 2010-07-28 01:04:27 UTC
mail-mta/courier-0.65.0  USE="crypt fam fax ldap mailwrapper mysql nls pam postgres spell -ipv6 -norewrite -web -webmail"

Compiles and installs fine for me.
Portage 2.2_rc67 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-hardened-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-hardened-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 25 Jul 2010 21:45:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
Comment 12 Magnus Granberg gentoo-dev 2010-10-28 15:10:55 UTC
Reopen dis bug if you sill get the error with mail-mta/courier-0.65.0
and gcc-4.4.4-r2.