Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21971 - Apache-2.0.46 compiling error with autoconf-2.57-r1:
Summary: Apache-2.0.46 compiling error with autoconf-2.57-r1:
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Donny Davies (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 22993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-30 19:38 UTC by Sébastien Champigny
Modified: 2003-06-17 10:04 UTC (History)
1 user (show)

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


Attachments
strace qpkg -f /bin/ps (something,14.62 KB, text/plain)
2003-05-31 08:43 UTC, Sébastien Champigny
Details
Fix for deprecated head -1 build problem (apache-2.0.46-gentoo.diff,4.58 KB, patch)
2003-06-12 21:44 UTC, Jason Rhinelander
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Champigny 2003-05-30 19:38:10 UTC
When trying to emerge apache, I get the followong results. Rebuilding m4,
autoconf, automake doesn't help. Lowering my cflags, export WANT_AUTCONF=2.57 or
WANT_AUTOCONF=2.13, running strace doesn't help either.

Regards,
S
Comment 1 Sébastien Champigny 2003-05-30 19:38:10 UTC
When trying to emerge apache, I get the followong results. Rebuilding m4,
autoconf, automake doesn't help. Lowering my cflags, export WANT_AUTCONF=2.57 or
WANT_AUTOCONF=2.13, running strace doesn't help either.

Regards,
Sébastien.

Reproducible: Always
Steps to Reproduce:
root@idk-002c307 seb # emerge apache
Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/apache-2.0.46 to /
>>> md5 src_uri ;-) httpd-2.0.46.tar.gz
>>> Unpacking source...
>>> Unpacking httpd-2.0.46.tar.gz to /var/tmp/portage/apache-2.0.46/work
 * Applying apache-2.0.46-gentoo.diff...                                  [ ok ]
 * /home/httpd is your Apache2 data directory ...
rebuilding srclib/apr/configure
buildconf: checking installation...
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
buildconf: autoconf not found.
           You need autoconf version 2.13 or newer installed
           to build Apache from CVS.
./buildconf failed for apr
 
!!! ERROR: net-www/apache-2.0.46 failed.
!!! Function src_unpack, Line 120, Exitcode 1
!!! buildconf failed


Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.2.5-r2,2.3.2-r2)
=================================================================
System uname: 2.5.70-mm2 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror
ftp://ftp.fhh.opensource-mirror.de/gentoo.org
ftp://ftp.tu-clausthal.de/pub/linux/gentoo
ftp://sunsite.informatik.rwth.aachen.de/pub/Linux/gentoo
http://gentoo.oregonstate.edu"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/home/pub/src"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg mikmod mmx mpeg ncurses
nls pdflib png quicktime truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm
berkdb slang readline tetex aalib nas bonobo svga tcltk java guile mysql X sdl
gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif
opengl mozilla ldap cdr scanner acpi acpi4linux apache2 dvd emacs evms2 gtk2
hbci imap lcms maildir mbox moznocompose moznoirc moznomail pic plotutils samba
socks5 sse tiff usb vim-with-x xfs -libg++ -spell -arts -kde"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 2 Sébastien Champigny 2003-05-31 08:43:16 UTC
Created attachment 12607 [details]
strace qpkg -f /bin/ps
Comment 3 Sébastien Champigny 2003-05-31 08:48:07 UTC
This bug can be related to the bug #21208 concerning procps and the hammer patch as I also  get the same floating point error attempting to run top:

bash $ top
Floating point exception
bash $

Moreover, something is wrong with qpkpg that returns quite the same error:

bash $ qpkg -f /bin/ps
uniq: `-1' option is obsolete; use `-f 1'
Try `uniq --help' for more information.
bash $

(see attachment "strace qpkg -f /bin/ps" above)
NB: I have coreutils installed.
Comment 4 Donny Davies (RETIRED) gentoo-dev 2003-05-31 22:47:47 UTC
Umm, its right in front of you -- if you would just LOOK

head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.

So, it looks to me, at least, that somehow your version of
"head" is too new.  I dont have time to look into this much
further, but maybe try downgrading head?  What package is that
in I wonder....

Comment 5 Donny Davies (RETIRED) gentoo-dev 2003-05-31 22:49:54 UTC
Another thought... if this "head" thing turns out to
be a deprecated option or whatever, then the Apache
people I think would want to update their build scripts...
Comment 6 Sébastien Champigny 2003-06-01 17:41:28 UTC
Yeah, it was in front of my "head" :) head is part of the coreutils package, which "intends to replace fileutils (which also contains a "head"), text-utils and sh-utils". I guess the apache people still use the head from fileutils and it works for them. However, you're right saying that they "would want to update their build scripts..."

Maybe an update of the dependancies with !=sys-apps/coreutils would be necessary until this problem gets resolved.

Kind regards,
S
Comment 7 Sébastien Champigny 2003-06-01 17:41:28 UTC
Yeah, it was in front of my "head" :) head is part of the coreutils package, which "intends to replace fileutils (which also contains a "head"), text-utils and sh-utils". I guess the apache people still use the head from fileutils and it works for them. However, you're right saying that they "would want to update their build scripts..."

Maybe an update of the dependancies with !=sys-apps/coreutils would be necessary until this problem gets resolved.

Kind regards,
Sébastien

NB: I use sys-apps/coreutils-5.0.0 and I was about to try recompiling apache with the coreutils-4.5.11-r1 ebuild as I get a sandbox violation (quite often these days :( ). It's too late for me (1am), I give up. 
Comment 8 Donny Davies (RETIRED) gentoo-dev 2003-06-03 00:58:58 UTC
Well, I too have coreutils-5.0 and I dont get this problem, so you're
either having a PATH difficulty or something else is messed up, I dunno.

At any rate, why not just try:

cd net-www/apache
ebuild apache-2.0.46.ebuild unpack  (it'll fail...)
cd /var/tmp/portage/apache-2.0.46/work/httpd-2.0.46/

and then look around and find out what is calling
`head -1' and fix it to say `head -n 1' just exactly
like the error message says to do!  Then you can run
`./buildconf' while you're still in the work/httpd-2.0.46
directory.  Once you get ./buildconf to finish without
complaining, then you may:

cd net-www/apache
touch /var/tmp/portage/apache-2.0.46/.unpacked
ebuild apache-2.0.46.ebuild merge

hopefully that will fix you up!
Comment 9 Jason Rhinelander 2003-06-12 21:44:18 UTC
Created attachment 13191 [details, diff]
Fix for deprecated head -1 build problem

Attached is a drop-in replacement for
/usr/portage/net-www/apache/files/apache-2.0.46-gentoo.diff which includes the
head -1 fix.  Just overwrite the existing file with this one, and emerge
apache.
Comment 10 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-17 06:49:54 UTC
*** Bug 22993 has been marked as a duplicate of this bug. ***
Comment 11 Donny Davies (RETIRED) gentoo-dev 2003-06-17 09:35:02 UTC
ok so the GNU people deprecated the -1 shortcut for a bunch of
utilities it seems, among them uniq(1) head(1) and tail(1)  maybe more?

im not going to run around like a chicken with my "head" (haha) cut off
adding patches all over the portage tree for this, sorry.  hopefully
the upstream project maintainers will update their codebases!

thanks for the patch though, its appreciated.
Comment 12 Sébastien Champigny 2003-06-17 09:57:29 UTC
Thank you for the patch Jason, it solves the problem nicely.
Sorry that I have not been of great help this time.
I think we can mark this "headache" as resolved.

Regards, S
Comment 13 Sébastien Champigny 2003-06-17 09:57:29 UTC
Thank you for the patch Jason, it solves the problem nicely.
Sorry that I have not been of great help this time.
I think we can mark this "headache" as resolved.

Regards, Sébastien.
Comment 14 Donny Davies (RETIRED) gentoo-dev 2003-06-17 09:59:10 UTC
no, using a patch is way overkill.  and then when ASF updates their
build scripts im just going to have to redo it AGAIN.

well, no way hose.  instead ive just fixed it inline.

rsync your tree and you'll get the fixed version.
Comment 15 Sébastien Champigny 2003-06-17 10:04:14 UTC
OK thanks Donny

S
Comment 16 Sébastien Champigny 2003-06-17 10:04:14 UTC
OK thanks Donny

Sébastien