Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69262 - mit-krb5-1.3.4-r1 fails to compile, [asn1_err.so] Error 1
Summary: mit-krb5-1.3.4-r1 fails to compile, [asn1_err.so] Error 1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-28 06:57 UTC by Mats Valldal
Modified: 2004-11-14 16:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mats Valldal 2004-10-28 06:57:30 UTC
When I try to emerge mit-krb5-1.3.4-r1 it fails:

gcc: cannot specify -o with -c or -S and multiple compilations
make[3]: *** [asn1_err.so] Error 1

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge -vuD world
Actual Results:  
gcc -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1
-DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1
-DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PATHS_H=1
-DHAVE_REGEX_H=1 -DHAVE_REGEXP_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MEMORY_H=1
-DHAVE_IFADDRS_H=1 -DHAVE_FLOCK=1 -DHAVE_FCHMOD=1 -DHAVE_CHMOD=1
-DHAVE_STRFTIME=1 -DHAVE_STRPTIME=1 -DHAVE_GETEUID=1 -DHAVE_SETENV=1
-DHAVE_UNSETENV=1 -DHAVE_GETENV=1 -DHAVE_SETSID=1 -DHAVE_GETHOSTBYNAME2=1
-DHAVE_GETIFADDRS=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRDUP=1
-DHAVE_STRCASECMP=1 -DHAVE_STRERROR=1 -DHAVE_MEMMOVE=1 -DHAVE_DAEMON=1
-DHAVE_GETUID=1 -DHAVE_SSCANF=1 -DHAVE_SYSLOG=1 -DHAVE_REGCOMP=1
-DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGEXEC=1 -DNEED_STRPTIME_PROTO=1
-DPOSIX_SIGTYPE=1 -Dkrb5_sigtype=void -DPOSIX_SIGNALS=1
-DGETPEERNAME_ARG2_TYPE=struct\ sockaddr -DGETPEERNAME_ARG3_TYPE=size_t
-DGETSOCKNAME_ARG2_TYPE=struct\ sockaddr -DGETSOCKNAME_ARG3_TYPE=size_t  
-I../../../include -I./../../../include -I../../../include/krb5
-I./../../../include/krb5   -march=pentium3 -O3 -pipe -funroll-loops
-fomit-frame-pointer -c asn1_err.c -o asn1_err.so.o && mv -f asn1_err.so.o
asn1_err.so
gcc: cannot specify -o with -c or -S and multiple compilations
make[3]: *** [asn1_err.so] Error 1
make[3]: Leaving directory
`/var/tmp/portage/mit-krb5-1.3.4-r1/work/krb5-1.3.4/src/lib/krb5/error_tables'
make[2]: *** [all-recurse] Error 1
make[2]: Leaving directory
`/var/tmp/portage/mit-krb5-1.3.4-r1/work/krb5-1.3.4/src/lib/krb5'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mit-krb5-1.3.4-r1/work/krb5-1.3.4/src/lib'
make: *** [all-recurse] Error 1

Expected Results:  
A successful compilation.

Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -funroll-loops -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -funroll-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs candy ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apm avi berkdb bitmap-fonts bluetooth cdr crypt cups
dga directfb dvd dvdr encode esd evo exif f77 fbcon flash foomaticdb gd gdbm ggi
gif gnome gphoto2 gpm gps gstreamer gtk gtk2 imagemagick imap imlib ipv6 java
jpeg kerberos krb4 ldap libg++ libwww lirc mad mikmod mmx motif mozilla mpeg msn
ncurses nls oggvorbis opengl pam pcmcia pda pdflib perl png pnp ppds python qt
quicktime readline samba sasl scanner sdl slang slp spell sse ssl svga tcltk
tcpd tiff truetype usb wmf x86 xml xml2 xmms xosd xprint xv xvid zlib
video_cards_radeon"
Comment 1 Mats Valldal 2004-11-05 10:08:47 UTC
Has anyone had the time to look at this?
Comment 2 Mats Valldal 2004-11-08 15:06:50 UTC
Tried mit-krb5-1.3.5-r1.ebuild, same problem... :/
Comment 3 Mats Valldal 2004-11-14 16:21:24 UTC
I've found the source of my problem. I'm using colorgcc and I followed a HOWTO in the forums for adding colorgcc to Portage. This failed with mit-krb5. I removed the following lines from /etc/portage/bashrc:

declare -xf gcc cc
gcc() { /usr/bin/wrappers/gcc $@;}
cc() { /usr/bin/wrappers/cc $@;}

It's working fine now.