[Linux-Biella] Errore di compilazione...

Daniele (Mastro) daniele.bilug a gmail.com
Lun 30 Ott 2006 17:26:42 CET


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

../../libgnomevfs/libgnomevfsmm/mime-handlers.h:75: error: expected
constructor, destructor, or type conversion before '*' token
make[4]: *** [mime-handlers.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory
`/var/tmp/portage/dev-cpp/gnome-vfsmm-2.12.0/work/gnome-vfsmm-2.12.0/libgnomevfs/libgnomevfsmm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/dev-cpp/gnome-vfsmm-2.12.0/work/gnome-vfsmm-2.12.0/libgnomevfs/libgnomevfsmm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/dev-cpp/gnome-vfsmm-2.12.0/work/gnome-vfsmm-2.12.0/libgnomevfs'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/dev-cpp/gnome-vfsmm-2.12.0/work/gnome-vfsmm-2.12.0/libgnomevfs'
make: *** [all-recursive] Error 1

!!! ERROR: dev-cpp/gnome-vfsmm-2.12.0 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  gnome-vfsmm-2.12.0.ebuild, line 30:   Called gnome2_src_compile
  gnome2.eclass, line 64:   Called die

!!! compile failure
!!! If you need support, post the topmost build error, and the call
stack if relevant.



sto cercando di emergere K3B (software per masterizzare)

quando prova ad emergere gnome-vfsmm fallisce con questi errori...

l'errore sembra un banale errore di sintassi nel codice.. ma mi sembra
strano che venga distribuito così..

ecco l'ebuild di gnome-vfsmm

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/dev-cpp/gnome-vfsmm/gnome-vfsmm-2.12.0.ebuild,v
1.13 2006/08/13 18:14:47 corsair Exp $

inherit gnome2

DESCRIPTION="C++ bindings for gnome-vfs"
HOMEPAGE="http://gtkmm.sourceforge.net/"

LICENSE="LGPL-2.1"
SLOT="1.1"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
IUSE=""

RDEPEND=">=gnome-base/gnome-vfs-2.6
        >=dev-cpp/glibmm-2.4"
DEPEND=">=dev-util/pkgconfig-0.12.0
        ${RDEPEND}"

DOCS="AUTHORS ChangeLog NEWS README INSTALL"

src_compile() {
        if useq amd64; then
                aclocal -I scripts
                automake -c -f
                autoconf
                libtoolize      --copy --force
        fi

        gnome2_src_compile  <----- line 30
}

********
e quello di gnome2 (o meglio.. un suo estratto)
********

gnome2_src_configure() {
        # Update the GNOME configuration options
        if [[ ${GCONF_DEBUG} != 'no' ]] ; then
                if use debug ; then
                        G2CONF="${G2CONF} --enable-debug=yes"
                fi
        fi
        G2CONF="${G2CONF} $(use_enable doc gtk-doc)"

        # Run libtoolize
        elibtoolize ${ELTCONF}

        # Do not remove the addwrite. bug #128289
        addwrite "${ROOT}/root/.gnome2"

        # GST_REGISTRY is to work around gst-inspect trying to
read/write /root
        GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die
"configure failed"
}

gnome2_src_compile() {
        gnome2_src_configure "$@"
        emake || die "compile failure"  <----- line 64
}

gnome2_src_install() {
        # if this is not present, scrollkeeper-update may segfault and
        # create bogus directories in /var/lib/
        dodir "${SCROLLKEEPER_DIR}"

        # we must delay gconf schema installation due to sandbox
        export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"

        debug-print "You are testing with DESTDIR by default - AllanonJL"
        if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then
                make DESTDIR=${D}
"scrollkeeper_localstate_dir=${D}${SCROLLKEEPER_DIR} " "$@" install ||
die "install failed"
        else
                einstall
"scrollkeeper_localstate_dir=${D}${SCROLLKEEPER_DIR} " "$@" || die
"einstall failed"
        fi

        unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

        # Manual document installation
        [[ -n "${DOCS}" ]] && dodoc ${DOCS}

        # Do not keep /var/lib/scrollkeeper because:
        # 1. scrollkeeper will get regenerated at pkg_postinst()
        # 2. ${D}/var/lib/scrollkeeper contains only indexes for the
current pkg
        #    thus it makes no sense if pkg_postinst ISN'T run for some
reason.

        if [[ -z "$(find ${D} -name '*.omf')" ]]; then
                export SCROLLKEEPER_UPDATE="0"
        fi

        # Regenerate these in pkg_postinst()
        rm -rf "${D}${SCROLLKEEPER_DIR}"

        # Make sure this one doesn't get in the portage db
        rm -fr "${D}/usr/share/applications/mimeinfo.cache"
}


*******
il comando emake non so cosa faccia.. ho provato a darlo da riga di
comando ma pare non esista....
ho cercato su web con poco successo...

così ho guardato in /var/tmp/portage/
dove avviene la compilazione.. ho cercato il file mime-handler.h (dove
accade l'errore)

ecco la riga esatta dove capita l'errore:

// TODO: Figure out how the heck to wrap this Bonobo_ServerInfo thingy...
Bonobo_ServerInfo* get_default_component(const Glib::ustring& mime_type);


*****
io non ne capisco 1 H... non so che altro fare...
consigli?
voi ci capite di più?

devo cercare questo metodo get_default_component(...)?

se è così però mi aspetterei che l'errore fosse sengnalato all'interno
di quel metodo...

vi serve altro? tipo tutto il codice di mime-handler.h???
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFRifBi33/AIKoeisRAi7cAJ9C8qeH4lb8qH64CJPk2iYATvg6ZACdENsH
1trZNm7l2GkWRpRGTG6P5V4=
=DGDc
-----END PGP SIGNATURE-----



Maggiori informazioni sulla lista Linux