NguyenTrinh / linkage

Automatically exported from code.google.com/p/linkage
GNU General Public License v2.0
0 stars 0 forks source link

Build failure #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. paludis -i linkage-9999

(linkage from lastest svn, i'm build my ebuild to it)

What is the expected output? 

compile successful finished

What do you see instead?

main.cc:27:39: error: dbus-c++/glib-integration.h: No such file or directory
main.cc:131: error: 'DBus::Glib' has not been declared
main.cc:131: error: expected constructor, destructor, or type conversion
before 'dispatcher'
main.cc: In function 'int main(int, char**)':
main.cc:149: error: 'dispatcher' was not declared in this scope
make[2]: *** [main.o] Error 1
make[2]: Leaving directory
`/var/tmp/paludis/net-p2p/linkage-9999/work/linkage-9999/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/paludis/net-p2p/linkage-9999/work/linkage-9999'
make: *** [all] Error 2

Dbus-c++ is installed and have latest version 
(from anongit.freedesktop.org)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by v.tolsto...@gtempaccount.com on 19 Feb 2008 at 9:10

GoogleCodeExporter commented 8 years ago
You need to build and install dbus-c++ with glib integration by passing 
--enable-glib
to the configure script.

I think it's mentioned in the wiki.

Original comment by ZeFl...@gmail.com on 19 Feb 2008 at 2:49

GoogleCodeExporter commented 8 years ago
i'm build dbus-c++ with this flag, but contents of my package after install is

vase selfip # paludis -k dbus-c++
* sys-apps/dbus-c++-9999::installed
    /usr
    /usr/bin
    /usr/bin/dbusxx-introspect
    /usr/bin/dbusxx-xml2cpp
    /usr/include
    /usr/include/dbus-c++-1
    /usr/include/dbus-c++-1/dbus-c++
    /usr/include/dbus-c++-1/dbus-c++/api.h
    /usr/include/dbus-c++-1/dbus-c++/config.h
    /usr/include/dbus-c++-1/dbus-c++/connection.h
    /usr/include/dbus-c++-1/dbus-c++/dbus.h
    /usr/include/dbus-c++-1/dbus-c++/debug.h
    /usr/include/dbus-c++-1/dbus-c++/dispatcher.h
    /usr/include/dbus-c++-1/dbus-c++/error.h
    /usr/include/dbus-c++-1/dbus-c++/eventloop-integration.h
    /usr/include/dbus-c++-1/dbus-c++/eventloop.h
    /usr/include/dbus-c++-1/dbus-c++/interface.h
    /usr/include/dbus-c++-1/dbus-c++/introspection.h
    /usr/include/dbus-c++-1/dbus-c++/message.h
    /usr/include/dbus-c++-1/dbus-c++/object.h
    /usr/include/dbus-c++-1/dbus-c++/pendingcall.h
    /usr/include/dbus-c++-1/dbus-c++/property.h
    /usr/include/dbus-c++-1/dbus-c++/refptr_impl.h
    /usr/include/dbus-c++-1/dbus-c++/server.h
    /usr/include/dbus-c++-1/dbus-c++/types.h
    /usr/include/dbus-c++-1/dbus-c++/util.h
    /usr/lib64
    /usr/lib64/libdbus-c++-1.a
    /usr/lib64/libdbus-c++-1.la
    /usr/lib64/libdbus-c++-1.so -> libdbus-c++-1.so.0.0.0
    /usr/lib64/libdbus-c++-1.so.0 -> libdbus-c++-1.so.0.0.0
    /usr/lib64/libdbus-c++-1.so.0.0.0
    /usr/lib64/pkgconfig
    /usr/lib64/pkgconfig/dbus-c++-1.pc

Original comment by v.tolsto...@gtempaccount.com on 19 Feb 2008 at 3:18

GoogleCodeExporter commented 8 years ago
Ah, seems dbus-c++ has rearranged their files. I'll have to look at it more but 
I
think they just renamed the header to eventloop-integration.h

Original comment by ZeFl...@gmail.com on 20 Feb 2008 at 12:19

GoogleCodeExporter commented 8 years ago
i'm traying to rename #include to new name - compile does not  successful 
finished.
error in some classes... 

Original comment by v.tolsto...@gtempaccount.com on 20 Feb 2008 at 2:13

GoogleCodeExporter commented 8 years ago
I just checked it out. DBus-c++ have not renamed any files so the only reason 
why the
build fails must be that dbus-c++ is built without glib integration for you.

Are you sure the ebuild passes --enable-glib to the configure script?

Original comment by ZeFl...@gmail.com on 22 Feb 2008 at 5:58

GoogleCodeExporter commented 8 years ago
This is my ebuild

vase@vase ~ $ cat /media/storage/selfip/sys-apps/dbus-c++/dbus-c++-9999.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit git autotools eutils

DESCRIPTION="dbus-c++"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/DBusBindings"
EGIT_REPO_URI="git://anongit.freedesktop.org/git/dbus/dbus-c++/"

KEYWORDS="~x86 ~amd64"

IUSE="glib doc examples"

DEPEND="sys-apps/dbus"

RDEPEND="${DEPEND}"

src_unpack() {
    git_src_unpack
    cd "${S}"
    eautoreconf
    econf $(use_enable glib) \
          $(use_enable doc doxygen-docs) || die "econf failed"
}

src_install() {
        make install DESTDIR=${D} || die "emake install failed"
}

This is flags
* sys-apps/dbus-c++::selfip [R 9999] <target>
    doc examples glib

Original comment by v.tolsto...@gtempaccount.com on 24 Feb 2008 at 3:34

GoogleCodeExporter commented 8 years ago
hm... ebuild is invalid. but if i'm manual compile dbus-c++ - --enable-glib 
break
compile on 

xml.o: In function `DBus::Xml::Document::from_xml(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
xml.cpp:(.text+0x147b): undefined reference to `XML_ParserCreate'
xml.cpp:(.text+0x1489): undefined reference to `XML_SetUserData'
xml.cpp:(.text+0x149b): undefined reference to `XML_SetDoctypeDeclHandler'
xml.cpp:(.text+0x14ad): undefined reference to `XML_SetElementHandler'
xml.cpp:(.text+0x14ba): undefined reference to `XML_SetCharacterDataHandler'
xml.cpp:(.text+0x14cf): undefined reference to `XML_Parse'
xml.cpp:(.text+0x14db): undefined reference to `XML_GetErrorCode'
xml.cpp:(.text+0x14e2): undefined reference to `XML_ErrorString'
xml.cpp:(.text+0x14ed): undefined reference to `XML_GetCurrentLineNumber'
xml.cpp:(.text+0x14f8): undefined reference to `XML_GetCurrentColumnNumber'
xml.cpp:(.text+0x1503): undefined reference to `XML_ParserFree'
xml.cpp:(.text+0x1552): undefined reference to `XML_ParserFree'

is linkage needed dbus-c++ or maybe not ?

Original comment by v.tolsto...@gtempaccount.com on 24 Feb 2008 at 4:24

GoogleCodeExporter commented 8 years ago
dbus-c++ is needed by linkage.

Judging from the linking errors you don't have libxml installed.

Original comment by ZeFl...@gmail.com on 27 Feb 2008 at 8:37

GoogleCodeExporter commented 8 years ago

Original comment by ZeFl...@gmail.com on 8 Apr 2008 at 4:32

GoogleCodeExporter commented 8 years ago
ebuild is incorrect.

should be --enable-glib=yes

somethink like this

src_unpack() {
        git_src_unpack
        cd "${S}"
        eautoreconf
}

src_compile() {
        #econf $(use_enable glib) \
        econf   $(use_enable doc doxygen-docs) --enable-glib=yes || die "econf failed"
        emake || die "emake failed"
}

src_install() {
        make install DESTDIR=${D} || die "emake install failed"
}

Original comment by denis.go...@gmail.com on 16 Apr 2008 at 8:55

GoogleCodeExporter commented 8 years ago
Thank You, Denis!

Original comment by v.tolsto...@gtempaccount.com on 17 Apr 2008 at 5:57