Bug 21479 - kdeadmin 3.1.2 won't build
|
Bug#:
21479
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: blocker
|
Priority: P1
|
|
Resolution: FIXED
|
Assigned To: kde@gentoo.org
|
Reported By: m@momech.dk
|
|
Component: KDE
|
|
|
URL:
|
|
Summary: kdeadmin 3.1.2 won't build
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-05-22 08:41 0000
|
When I try to emerge kdeadmin-3.1.2 (dependecy for" kde") I get a source build
failure message...
Waddo I do?
Reproducible: Always
Steps to Reproduce:
1. root # emerge -vb kde
Actual Results:
...
config.status: creating config.h
config.status: executing depfiles commands
Good - your configure finished. Start make now
cd . && make -f admin/Makefile.common configure.in
make[1]: Entering directory `/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2'
make[1]: Leaving directory `/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2'
cd . && /bin/sh
/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/admin/missing --run aclocal-1.7
cd . && \
/bin/sh /var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/admin/missing
--run automake-1.7 --foreign Makefile
cd . && /bin/sh
/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/admin/missing --run autoconf
autom4te-2.57: cannot not rename autom4te.cache/traces.0t as
autom4te.cache/traces.0: No such file or directory
configure.in: `AM_INIT_AUTOMAKE' must be used
automake-1.7: your implementation of AM_INIT_AUTOMAKE comes from an
automake-1.7: old Automake version. You should recreate aclocal.m4
automake-1.7: with aclocal and run automake again.
configure.in: required file `./install-sh' not found
configure.in: required file `./mkinstalldirs' not found
configure.in: required file `./missing' not found
SUBDIRS: variable `TOPSUBDIRS' is used but `TOPSUBDIRS' is undefined
make: *** [Makefile.in] Error 1
make: *** Waiting for unfinished jobs....
!!! ERROR: kde-base/kdeadmin-3.1.2 failed.
!!! Function kde_src_compile, Line 123, Exitcode 2
!!! died running emake, kde_src_compile:make
Expected Results:
Build succes. Simply.
Any help very welcome! :-)
Everything is "stable" apart from openssl and glibc, which are newest versions.
I had trouble compiling portmap earlier, but success after I downgraded from gcc
v3.2.3 to the stable 3.2.2. Can it be that I should upgrade again???
root # emerge info
Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1700+
GENTOO_MIRRORS=" ftp://gentoo.linux.no/pub/gentoo/ http://gentoo.linux.no/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://194.83.57.2/sites/www.ibiblio.org/gentoo/
http://194.83.57.15/sites/www.ibiblio.org/gentoo/
http://212.219.56.146/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde gnome libg++ mikmod
mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
directfb gdbm berkdb slang readline arts bonobo svga tcltk java guile mysql
postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt
motif opengl mozilla aalib acpi acpi4linux cdr curl dga doc dvb dvd emacs evo
fbcon flash foreign-package foreign-sysvinit gb gd gnomedb gphoto2 hyriand imap
innodb ladcca mbox mcal mule nas oav oci8 odbc ofx plotutils prebuilt samba
scanner sse tetex tiff usb wmf Xaw3d xinerama xml"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS=" -g0 -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -O3 -fforce-addr
-falign-functions=4 "
CXXFLAGS=" -g0 -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -O3
-fforce-addr -falign-functions=4 "
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox userpriv usersandbox"
same here; the preceeding configure messages also include the following lines:
checking linux/quota.h usability... no
checking linux/quota.h presence... yes
configure: WARNING: linux/quota.h: present but cannot be compiled
configure: WARNING: linux/quota.h: check for missing prerequisite headers?
configure: WARNING: linux/quota.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
1) Aren't the stable versions supposed to be stable without me patching stuff?
;)
2) I'm a newbie - how do I apply that patch - and to what?
3) Thanks :)
Do you by any chance have any of the WANT_AUTOCONF or WANT_AUTOMAKE environment
variables set? If so, try unsetting them
the environment has not been set
when i force a lower version of autoconf & automake the compile start's but eventualy hangs on a rpm error
so it's a problem with autconf/automake
the patch could might be a sollution but i can't seem to figure out how to apply it
The above patch does solve the problem. Simply copy it to the
kdeadmin-3.1.2 work directory (shoud be
/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/) and do patch -p0 <
patchfile_name. The work directory must contain the unpacked sources, of
course.
After that I used the low level ebuild commands (compile, install, qmerge)
rather then emerge so that the patch would not get overwritten again.
any change someone is actualy going to fix this one?
it's only a blocker :-(
Could you tell me which versions of automake and autoconf you have installed.
And could you attach the full output of emerge.
autoconf & auotmake version have been posted
also output of emerge
bugzilla threw an error on posting the bug
I'm also having this exact same problem on a brand new Gentoo box that I just
set up yesterday. It seems that thos of us luck enough to get Kde3.1.2 before
those other components had no trouble at all building... On a new box where KDE
is one of the last things to be built this is a real problem.
How do I report back what versions of programs I am running? It would be great
if somebody can commit a fix pretty soon.
Not sure if this is relevant, but running the build as root, I get some odd
looking warnings on the way:
[code]
/doc/kdat'
/usr/kde/3.1/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
trying to create local folder: Permission denied
failed to create /root/.kde/share/config/
trying to create local folder: Permission denied
failed to create /root/.kde/share/config/
trying to create local folder: Permission denied
[/code]
Please retry and see if the fix that is now in portage works.
As for your other problem, it's a known bug (filed under a different report). Temp solution is
to "mkdir /root/.kde/share/ then mkdir /root/.kde/share/config"
Sorry, the fix did not seem to work. It still failed as it did before. What is
the easy way fro me to get a list of the relevant packages currently running on
this box so you know how to attack this bug?
no luck
did an emerge sync
and emerge -u kde
still the same error
what has changed? because i didn't see any changes to the ebuild
looked a bit closer to the build and it give's 2 errors at the start of the
build:
>>> emerge (1 of 2) kde-base/kdeadmin-3.1.2 to /
>>> md5 src_uri ;-) kdeadmin-3.1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking kdeadmin-3.1.2.tar.bz2 to /var/tmp/portage/kdeadmin-3.1.2/work
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 43: 1.7.2: command not found
/usr/sbin/ebuild.sh: line 44: [: !=: unary operator expected
checking build system type... i686-pc-linux-gnu
however this weekend also brought us automake-1.7.5-r2
* sys-devel/automake
Latest version available: 1.7.5-r2
Latest version installed: 1.7.5-r2
Size of downloaded files: 2,171 kB
Homepage: http://www.gnu.org/software/automake/automake.html
Description: Used to generate Makefile.in from Makefile.am
which produced following output :
>>> md5 src_uri ;-) kdeadmin-3.1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking kdeadmin-3.1.2.tar.bz2 to /var/tmp/portage/kdeadmin-3.1.2/work
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 43: 1.7.5: command not found
/usr/sbin/ebuild.sh: line 44: [: !=: unary operator expected
<snip>
Good - your configure finished. Start make now
cd . && make -f admin/Makefile.common configure.in
make[1]: Entering directory
`/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2'
make[1]: Leaving directory
`/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2'
cd . && /bin/sh
/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/admin/missing --run
aclocal-1.7
cd . && \
/bin/sh /var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/admin/missing
--run automake-1.7 --foreign Makefile
cd . && /bin/sh
/var/tmp/portage/kdeadmin-3.1.2/work/kdeadmin-3.1.2/admin/missing --run
autoconf
autom4te-2.57: cannot not rename autom4te.cache/traces.0t as
autom4te.cache/traces.0: No such file or directory
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
configure.in: required file `./install-sh' not found
configure.in: required file `./mkinstalldirs' not found
configure.in: required file `./missing' not found
SUBDIRS: variable `TOPSUBDIRS' is used but `TOPSUBDIRS' is undefined
make: *** [Makefile.in] Error 1
make: *** Waiting for unfinished jobs....
!!! ERROR: kde-base/kdeadmin-3.1.2 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make
*** Bug 23646 has been marked as a duplicate of this bug. ***
Does the problem in the forum fix this particular bug?
I don't see how they're related.
Those bugs are not related imho. About this one, I'm particularly curious what
triggers the invocation of autotools. They should not be invoked at all.
This is looking more and more like 3.1.2 was mispackaged. I seem to having
good luck *not*
recreating this bug with 3.1.3. Can any of you verify this as well?
Have a simular problem with kdebase-3.1.3 (but also kdeadmin-3.1.3 on another
machine) it seems an automake version mismatch.
Performing head fix on klipper/klipperrc.desktop
cd . && \
/bin/sh /var/tmp/portage/kdebase-3.1.3/work/kdebase-3.1.3/admin/missing
--run automake-1.7 --foreign Makefile
configure.in:39: version mismatch. This is Automake 1.7.5,
configure.in:39: but the definition used by this AM_INIT_AUTOMAKE
configure.in:39: comes from Automake 1.7.2. You should recreate
configure.in:39: aclocal.m4 with aclocal and run automake again.
make: *** [Makefile.in] Error 1
!!! ERROR: kde-base/kdebase-3.1.3 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make
To those having: "configure.in: `AM_INIT_AUTOMAKE' must be used" problems:
Does kdeadmin 3.1.3 fix this for you?
Also, try changing modifying the ebuild so it looks like this:
src_compile() {
rm configure configure.in
kde_src_compile configure
kde_src_compile make
}
and see if that fixes the problem
the sollution with the rm from the last comment seems to be working
make is running at the moment so hopefully this problem will be fixed
(just now that i'm scheduled to receive a new pc)
This issue affects more than KDE3.1.2 - I have exactly the same problem with
the 3.1.1-r2 ebuild!
rpmInstall.cpp:219: `rpmReadPackageHeader' undeclared (first use this function)
rpmInstall.cpp:247: `rpmdbOpen' undeclared (first use this function)
rpmInstall.cpp:256: `rpmdep' undeclared (first use this function)
rpmInstall.cpp:256: `rpmtransCreateSet' undeclared (first use this function)
rpmInstall.cpp:281: `rpmtransAddPackage' undeclared (first use this function)
rpmInstall.cpp:309: `conflicts' undeclared (first use this function)
rpmInstall.cpp:310: `rpmdepCheck' undeclared (first use this function)
rpmInstall.cpp:315: `rpmdepFreeConflicts' undeclared (first use this function)
rpmInstall.cpp:323: `rpmdepOrder' undeclared (first use this function)
rpmInstall.cpp:330: `rpmProblemSet' undeclared (first use this function)
rpmInstall.cpp:330: syntax error before `=' token
rpmInstall.cpp:334: `probs' undeclared (first use this function)
rpmInstall.cpp:335: `rpmRunTransactions' undeclared (first use this function)
rpmInstall.cpp:346: `rpmProblemString' undeclared (first use this function)
rpmInstall.cpp:355: `rpmProblemSetFree' undeclared (first use this function)
rpmInstall.cpp:358: `rpmtransFree' undeclared (first use this function)
rpmInstall.cpp:381: cannot convert `const char*' to `rpmts_s*' for argument `1'
to `rpmRC rpmInstallSourcePackage(rpmts_s*, _FD_s*, const char**, const
char**)'
rpmInstall.cpp:398: `rpmdbClose' undeclared (first use this function)
rpmInstall.cpp: In function `int doUninstal(const char*, const QStringList&,
int, int, QString&)':
rpmInstall.cpp:418: syntax error before `;' token
rpmInstall.cpp:427: syntax error before `;' token
rpmInstall.cpp:489: `rpmdbInitIterator' undeclared (first use this function)
rpmInstall.cpp:490: `rpmdbNextIterator' undeclared (first use this function)
rpmInstall.cpp:492: `rpmdbGetIteratorOffset' undeclared (first use this
function)
rpmInstall.cpp:492: `rpmtransRemovePackage' undeclared (first use this
function)
rpmInstall.cpp:500: `rpmdbFreeIterator' undeclared (first use this function)
rpmInstall.cpp: In function `int doSourceInstall(const char*, const char*,
const char**, char**)':
rpmInstall.cpp:555: cannot convert `const char*' to `rpmts_s*' for argument `1'
to `rpmRC rpmInstallSourcePackage(rpmts_s*, _FD_s*, const char**, const
char**)'
rpmInstall.cpp: At global scope:
rpmInstall.cpp:605: type specifier omitted for parameter `rpmDependencyConflict
'
rpmInstall.cpp:605: syntax error before `,' token
rpmInstall.cpp: In function `QString KprintDepProblems(...)':
rpmInstall.cpp:615: `numConflicts' undeclared (first use this function)
rpmInstall.cpp:617: `f' undeclared (first use this function)
rpmInstall.cpp:639: `rpmDependencyConflict_s' undeclared (first use this
function)
rpmInstall.cpp:639: syntax error before `::' token
In file included from rpmutils.cpp:8:
rpmutils.h:12: type specifier omitted for parameter `dbiIndexSet'
rpmutils.h:12: syntax error before `*' token
rpmutils.h:14: type specifier omitted for parameter `dbiIndexSet'
rpmutils.h:14: syntax error before `*' token
distcc[9113] ERROR: compile on localhost failed with exit code 1
make[3]: *** [rpmInstall.o] Error 1
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kdeadmin-3.1.1-r2/work/kdeadmin-3.1.1/kpackage'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/kdeadmin-3.1.1-r2/work/kdeadmin-3.1.1'
make: *** [all] Error 2
!!! ERROR: kde-base/kdeadmin-3.1.1-r2 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make
I finally got the time to read up; the linked forum message surgests emerging
kdeadmin with
USE="-foreign-package" emerge kdeadmin
(yes - it is ONE line, mind you!)
That did it for me!!! kde is now installed! However, I'm not a developer, so I
haven't got a clue as to why the above USE-flag fixes the e-build. But now the
developers at least know that my individual case is solved...
foreign-packages is a local useflag that should normally be off. This flag
triggers kpackage to be build. This is a package managent tool for rpm package,
and as such has not much use on gentoo. There seems to be a problem building
kpackage with gentoo's rpm version. I don't know exactly what causes the
problem, but this package is absolutely non-essential.
This section has been commented out in portage (for 3.1.3) so this should fix
the problem
until a fix is in upstream.