Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84458 - emerge qtools fails on strerr.c
Summary: emerge qtools fails on strerr.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 18:07 UTC by joe cave
Modified: 2005-08-06 14:19 UTC (History)
2 users (show)

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


Attachments
qtools-0.56-head.patch (qtools-0.56-head.patch,2.08 KB, patch)
2005-06-28 15:41 UTC, Stian Skjelstad
Details | Diff
qtools-0.56-r1.ebuild (qtools-0.56-r1.ebuild,1.16 KB, patch)
2005-06-28 15:41 UTC, Stian Skjelstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description joe cave 2005-03-07 18:07:50 UTC
Trying to emege qtools and it fails when compiling strerr.c. Output as follows:

./compile strerr.c
./compile: line 3: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make: *** [strerr.o] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: net-mail/qtools-0.56 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! emake failed


Reproducible: Always
Steps to Reproduce:
1. emerge qtools
2.
3.

Actual Results:  
emerge fails.

Expected Results:  
should have installed.

This is a fresh install. All software has been installed via Portage...
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-03-07 23:46:34 UTC
reopen with the output from emerge --info
Comment 2 joe cave 2005-03-10 16:00:37 UTC
here you go:

$sudo emerge --info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(TM)Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 14 2005, 20:46:12)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 avi berkdb crypt emboss encode gd gdbm gif imap imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis pam perl png python readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 3 Rumen Yotov 2005-05-29 00:58:14 UTC
Hi,
Received the same error. Here's my error-log:
...BEGIN...
  * Applying qtools-0.56-errno.patch ...                                       
                                                                               
   [ ok ]
>>> Source unpacked.
>>> portage +sandbox(compile)
FEATURES=autoconfig buildpkg ccache collision-protect distlocks gpg sandbox
sfperms test userpriv usersandbox
( cat warn-auto.sh; \
echo 'main="$1"; shift'; \
echo exec "`head -1 conf-ld`" \
'-o "$main" "$main".o ${1+"$@"}' \
) > load
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
chmod 755 load
( cat warn-auto.sh; \
echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \
) > compile
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\'; \
cat find-systype.sh; \
) | sh > systype
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
chmod 755 compile
cat warn-auto.sh choose.sh \
| sed s}HOME}"`head -1 conf-home`"}g \
> choose
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
chmod 755 choose
./compile 822addr.c
./compile: line 3: exec: -O: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make: *** [822addr.o] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: net-mail/qtools-0.56 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
...END...
After that made: ebuild .../qtools-0.56 unpack, edited the Makefile changing
"-1" to "-n 1" which seems to be the new syntax, then ebuild qtools-0.56 compile
Same error. Will look further, but i'm stuck at the moment.
PS: There's an -o (not zero) after 'exec ...\" at one place in the Makefile.
Thanks. Rumen
My 'emerge info':
...
Gentoo Base System version 1.6.12
Portage 2.0.51.22-r1 (!/usr/portage/profiles/default-linux/x86/2005.0,
gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2200+
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/alias /var/qmail/control /var/service"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks gpg sandbox
sfperms test userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://files.gentoo.gr
http://ftp.lug.ro/gentoo/ http://mirror.etf.bg.ac.yu/gentoo
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 a52 aac acl acpi alsa apache2 avi bash-completion berkdb
bitmap-fonts caps cdb cdr crypt cups curl dvd dvdr eds encode esd evo exif fam
ffmpeg flac foomaticdb freetype gd gif gmp gnutls gpm gstreamer gtk gtk2 gtkhtml
hal iconv imagemagick imap imlib ipv6 javascript jpeg kdexdeltas lcms libg++
libwww mad maildir matroska mikmod mime mmx motif mozilla mp3 mpeg mysql ncurses
nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl png posix
postgres ppds prelude python quicktime readline ruby sdl skey slang speex spell
sse ssl svg svga symlink tcltk tcpd theora threads tiff transcode truetype
truetype-fonts type1-fonts unicode usb vhosts vorbis win32codecs xine xml2 xmms
xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 Stian Skjelstad 2005-06-28 15:41:08 UTC
Created attachment 62186 [details, diff]
qtools-0.56-head.patch

removes the head -1 warnings
Comment 5 Stian Skjelstad 2005-06-28 15:41:54 UTC
Created attachment 62187 [details, diff]
qtools-0.56-r1.ebuild

fixes the problem reported (define $CC as $CHOST-gcc)
Comment 6 Daniel Beckham 2005-08-04 16:44:04 UTC
I'm also encountering this error:

./compile 822body.c
./compile: line 3: exec: -O: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make: *** [822body.o] Error 2
Comment 7 Daniel Beckham 2005-08-04 18:05:33 UTC
I can confirm that the head.patch and r1.ebuild files worked for my system. 
qtools now properly compiles.
Comment 8 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-08-06 14:19:31 UTC
Fixed in CVS. Can you test it, please?

Note: Don't set CC="${HOST}-gcc" or something. Use toolchain-funcs.eclass.