| View previous topic :: View next topic |
| Author |
Message |
choenig Tux's lil' helper


Joined: 04 Nov 2002 Posts: 83 Location: EDDK, Germany
|
Posted: Sun Feb 16, 2003 8:08 pm Post subject: |
|
|
Juhu, after a long talk with a guy from #gnucash (thanks to warlord, again!) I now know what is going wrong.
Due to the library stuff a "make prefix=... install" or a "make DESTDIR=... install" wont work that easy, so I am not able to finish Lardes ebuild.
Using "./configure --prefix=..." on the other hand will work, but since I don't know the deeper stuff of emerge, I don't know, if this can be fulfilled in an ebuild.
So I did a manual install.
I had big problems doing a
| Code: |
su -c "make install"
|
ONLY a
| Code: |
su -c "source /etc/profile ; make install"
|
worked, even (and that confuses me alot) a
| Code: |
su -
<PASSWD>
make install
|
DIDN'T work.
This was just FYI. Maybe I could help someone.
take care, have fun
/christian |
|
| Back to top |
|
 |
HotShotDJ Apprentice


Joined: 06 Nov 2002 Posts: 166
|
Posted: Tue Feb 18, 2003 9:42 pm Post subject: |
|
|
I was able to get a working ebuild for gnucash 1.8.1 based on the ebuild here: https://bugs.gentoo.org/show_bug.cgi?id=14438
I merged Larde's changes to include openhbci, and my own changes to include OFX. Here is the working ebuild:
| app-office/gnucash-1.8.1 wrote: | # Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic
DESCRIPTION="A personal finance manager"
SRC_URI="http://download.sourceforge.net/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnucash.org/"
KEYWORDS="x86 ppc"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls postgres"
RDEPEND=">=gnome-base/gnome-libs-1.4.1.2-r1
>=dev-libs/libxml-1.8.3
>=gnome-extra/gtkhtml-0.14.0-r1
>=gnome-extra/gal-0.13-r1
>=gnome-extra/guppi-0.35.5-r2
>=gnome-base/gnome-print-0.21
postgres? ( dev-db/postgresql )"
DEPEND="${RDEPEND}
>=sys-devel/perl-5
>=dev-libs/slib-2.3.8
>=dev-lang/swig-1.3_alpha4
>=dev-libs/g-wrap-1.3.2
<gnome-base/libglade-2
media-libs/gdk-pixbuf
<dev-util/guile-1.4.1
gnome-base/libghttp
nls? ( sys-devel/gettext )
hbci? ( net-libs/openhbci )
ofx? ( net-libs/libofx )"
# won't configure with this
filter-flags -fomit-frame-pointer
# these flags to GCC interfere with G_INLINE_FUNC usage in this package
filter-flags "-fno-inline"
filter-flags "-finline-functions"
src_unpack() {
unpack ${A}
# With --enable-sql (use postgres), the gnucash 1.6.8 build process fails
# when making in src/engine. This should fix that. --Chouser
# not sure if needed in 1.7.7+, someone using postgres should check --Fish
cd ${S}/src/engine || die
cp Makefile.am Makefile.am.old
sed -e 's/^SUBDIRS *= */&. /' Makefile.am.old > Makefile.am || die
cd ${S}
}
src_compile() {
local myconf=""
use nls || myconf="--disable-nls"
use hbci && myconf="$myconf --enable-hbci"
use ofx && myconf="$myconf --enable-ofx"
use postgres && myconf="$myconf --enable-sql"
econf ${myconf}
# prevent gcc warnings from breaking build on some systems when NLS disabled
cd ${S}/src/gnome-utils
cp Makefile Makefile.bak
sed s/'-Werror '// Makefile.bak > Makefile || die
cd ${S}
make || die # Doesn't work with make -j 4 (hallski)
}
src_install() {
export LIBRARY_PATH=${D}/usr/lib:${D}/usr/lib/gnucash
einstall
dodoc ABOUT-NLS AUTHORS COPYING ChangeLog HACKING NEWS README* TODO
}
|
I hope this helps. |
|
| Back to top |
|
 |
HotShotDJ Apprentice


Joined: 06 Nov 2002 Posts: 166
|
Posted: Tue Feb 18, 2003 9:49 pm Post subject: |
|
|
Ok... now for the ebuilds to get OFX support
| net-libs/OpenSP-1.5 wrote: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="an SGML parser"
HOMEPAGE="http://openjade.sourceforge.net/"
SRC_URI="http://download.sourceforge.net/openjade/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
IUSE=""
S=${WORKDIR}/${P}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install() {
make DESTDIR=${D} install || die
} |
And
| net-libs/libofx-0.6.2 wrote: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="provides support for OFX file imports"
HOMEPAGE="http://sourceforge.net/projects/libofx/"
SRC_URI="http://download.sourceforge.net/libofx/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=net-libs/OpenSP-1.5"
S=${WORKDIR}/${P}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install() {
einstall
} |
These are my first attemps at custom ebuild, so there is undoubtedly some mistakes. But I had no problem with installing these builds and gnucash seems to have compiled with the OFX Import support properly. |
|
| Back to top |
|
 |
choenig Tux's lil' helper


Joined: 04 Nov 2002 Posts: 83 Location: EDDK, Germany
|
Posted: Tue Feb 18, 2003 9:51 pm Post subject: |
|
|
Thank you very much.
warlord from #gnucash told me to go with LIBRARY_PATH, but I didn't new, that it is that easy
take care, have fun
/christian |
|
| Back to top |
|
 |
fmalabre Guru


Joined: 19 Jun 2002 Posts: 376 Location: Chicago
|
Posted: Tue Feb 18, 2003 11:40 pm Post subject: |
|
|
| nevertheless wrote: | warlord from #gnucash told me to go with LIBRARY_PATH, but I didn't new, that it is that easy  |
Yes, that was because last time you installed in /usr/local/
However, it seems this ebuild installs in /usr/
I hope the ebuild will make it in portage soon! |
|
| Back to top |
|
 |
choenig Tux's lil' helper


Joined: 04 Nov 2002 Posts: 83 Location: EDDK, Germany
|
Posted: Tue Feb 18, 2003 11:59 pm Post subject: |
|
|
| fmalabre wrote: |
Yes, that was because last time you installed in /usr/local/
However, it seems this ebuild installs in /usr/
|
Not quite right, I just installed to /usr/local for testing purposes. Using the prior ebuild I tried to install to /usr, but unfortunatly this went wrong (as you remember .
Unfortunatly it took me a bit too long, do understand, that "./configure --prefix=blablubb" is not the same as "make prefix=blablub install".
so long
take care, have fun
/christian |
|
| Back to top |
|
 |
HotShotDJ Apprentice


Joined: 06 Nov 2002 Posts: 166
|
Posted: Wed Feb 19, 2003 8:43 pm Post subject: |
|
|
Ok... one last thing that needed doing... getting the Online Help system for gnucash working. As per "warlord" in #gnucash (thanks, nevertheless, for pointing me there!) a separate package needs to be installed. Thus, here is the ebuild.
| app-doc/gnucash-docs-1.8.0 wrote: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Documentation for GnuCash"
HOMEPAGE="http://www.gnucash.org/"
SRC_URI="http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-docs-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="X gnome"
DEPEND="dev-libs/libxml2
dev-libs/libxslt
app-text/docbook-xsl-stylesheets
>=app-text/scrollkeeper-0.3.4"
S=${WORKDIR}/gnucash-docs-${PV}
src_compile() {
econf
emake || die
}
src_install() {
einstall
}
|
Hope all this helps! |
|
| Back to top |
|
 |
dude75 n00b

Joined: 09 Jan 2003 Posts: 14
|
Posted: Thu Feb 20, 2003 8:08 am Post subject: |
|
|
Hello
thank you very much for the great ebuild. But are your sure that hbci is included in your ebuild? Or how can i enable it? And where do i config hbci for my bank ?
Thank you
Bastian |
|
| Back to top |
|
 |
choenig Tux's lil' helper


Joined: 04 Nov 2002 Posts: 83 Location: EDDK, Germany
|
Posted: Thu Feb 20, 2003 10:37 am Post subject: |
|
|
You have to add "hbci" to you USE-Flags, and then you have to take the openhbci.ebuild out of lardes .tar.gz (his first try of the gnucash.ebuild).
To really use it, you have to ask you bank for further details. Some banks allow hbci only with a chipcard (then you need a chipcardreader and libchipcard, too).
Check
http://www.hbci.de
http://www.libchipcard.de (btw. there is a libchipcard ebuild!)
Or did I miss you?
take care, have fun
/christian |
|
| Back to top |
|
 |
dude75 n00b

Joined: 09 Jan 2003 Posts: 14
|
Posted: Thu Feb 20, 2003 11:10 am Post subject: |
|
|
Hello
i see, i'm not very firm with gentoo. So i tryed to set the use "hbci" in the ebuild. But now i set the hbci in make.conf and it looks good.
Thank you |
|
| Back to top |
|
 |
elvisdieguez n00b

Joined: 16 Sep 2002 Posts: 26
|
Posted: Sun Feb 23, 2003 3:30 am Post subject: g-wrap doesn't compile |
|
|
| I get an error when i try to compile g-wrap 1.3.4 -- i think it is because i am using gcc 3.x -- does anyone have a similar problem and a resolution? |
|
| Back to top |
|
 |
choenig Tux's lil' helper


Joined: 04 Nov 2002 Posts: 83 Location: EDDK, Germany
|
Posted: Sun Feb 23, 2003 9:18 am Post subject: |
|
|
I think most of us use gcc 3.x. Maybe it is due to your c(xx)flags.
Maybe you better would post your compile error, then we can have a look at it...
take care, have fun
/christian |
|
| Back to top |
|
 |
Larde Guru


Joined: 07 Jun 2002 Posts: 313 Location: Duesseldorf, Germany
|
Posted: Wed Feb 26, 2003 2:29 pm Post subject: |
|
|
I've been away for a while. Hooray to HotShotDJ for creating an .ebuild that's working for everyone!
Yours,
Larde. _________________ Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
|
|
| Back to top |
|
 |
elvisdieguez n00b

Joined: 16 Sep 2002 Posts: 26
|
Posted: Thu Feb 27, 2003 2:43 am Post subject: g-wrap error when compiling version 1.3.4 |
|
|
This is the last few lines of output I get when I try to upgrade g-wrap in order to install the latest gnucash. I am using gcc 3.x on a Gentoo 1.4-RC2 system.
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include /glib-1.2 -I/usr/lib/glib/include -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I /usr/include -MT g-wrap-wct.lo -MD -MP -MF .deps/g-wrap-wct.Tpo -c g-wrap-wct.c -fPIC -DPIC -o .libs/g-wrap-wct.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [g-wrap-wct.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
add-ws-t gw-wct #<output: gw-wct.c 3> gw:global-declarations-ccg
for-client gw-standard gw-wct
for-parent gw-wct
add-ws-t gw-wct #<output: gw-wct.c 3> gw:global-definitions-ccg
for-client gw-standard gw-wct
for-parent gw-wct
make[2]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4/work/g-wrap-1.3.4/g-wrap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4/work/g-wrap-1.3.4'
make: *** [all] Error 2
!!! ERROR: dev-libs/g-wrap-1.3.4 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)
I see the error seems to be an incorrect flag passed to gcc 3.x but is there a way to fix this without wading through all the makefiles and then manually compiling? |
|
| Back to top |
|
 |
sebgarden Guru

Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Mar 13, 2003 2:04 am Post subject: |
|
|
Larde: I also try to write an ebuild for gnucash-1.8.2. At least, you should read this bug report if you too want. We could together write this ebuild but there is some problems with g-wrap as you can see above
No ideas ?
Regards,
Sébastien. |
|
| Back to top |
|
 |
sebgarden Guru

Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Mar 13, 2003 2:19 am Post subject: |
|
|
Solution here.
(The corrected ebuild, changelog and digest).
You will also need to update guile to 1.6.3 (or more than 1.4.1 but 1.5.4 has a bug). Hum ... gnucash seems to compile now.
Regards,
Sébastien. |
|
| Back to top |
|
 |
sebgarden Guru

Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Mar 13, 2003 2:55 am Post subject: |
|
|
Conclusion: if you want to be able to compile gnucash-1.8.2, you could for example need:
- guile-1.6.3.tar.gz
- g-wrap-1.3.4.tar.gz
- gnucash-1.8.2.tar.gz
and the corresponding ebuilds found in the bug reports in my last post. You should be able to stick all the pieces together to finally get this error:
| Code: |
bash # emerge -u gnucash
...
checking if guile needs our copy of srfi-11... no
checking if guile needs our copy of srfi-19... no
checking if guile needs our copy of srfi-2... no
checking if guile needs our copy of srfi-8... no
checking if guile needs our copy of srfi-9... no
checking if guile needs our copy of (guile www)... yes
checking for gnome-config... /usr/bin/gnome-config
checking for xmlNewDoc in -lxml... yes
checking for xmlElemDump in -lxml... yes
configure: warning:
The RPC Backend is depricated. You should not use it.
It may go away in the future. If you need it, please
contact gnucash-devel@gnucash.org and let the developers
know.
...
gcc -I../../../../src/core-utils -I../../../../src/gnc-module -I../../../../src/test-core -I../../../../src/engine -I../../../../src/engine/test-core -I../../../../src/backend/file -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=pentium3 -O3 -pipe -Wall -Wunused -Werror -o .libs/test-xml2-is-file test-xml2-is-file.o ../../../../src/test-core/.libs/libgncmod-test.a -L/usr/lib ../../../../src/gnc-module/.libs/libgncmodule.so ../../../../src/engine/.libs/libgncmod-engine.so ../../../../src/engine/.libs/libgw-engine.so ../../../../src/engine/.libs/libgw-kvp.so ../../../../src/engine/test-core/.libs/libgncmod-test-engine.a ../../../../src/backend/file/.libs/libgncmod-backend-file.so /usr/lib/libxml.so -lncurses -lz /var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/engine/.libs/libgncmod-engine.so /var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/engine/.libs/libgw-engine.so /var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/engine/.libs/libgw-kvp.so /var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/gnc-module/.libs/libgncmodule.so /var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/core-utils/.libs/libcore-utils.so /usr/lib/libgwrap-wct.so /usr/lib/libgwrap-glib.so /usr/lib/libguile.so /usr/lib/libguile-ltdl.so /usr/lib/libqthreads.so -lpthread -lcrypt /usr/lib/libglib.so /usr/lib/libltdl.so -ldl ./.libs/libgnc-test-file-stuff.a /usr/lib/libpopt.so -lm -Wl,--rpath -Wl,/usr/lib/gnucash
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libqthreads.so.0, needed
by /usr/lib/libguile.so, may conflict with libqthreads.so.12
creating test-xml2-is-file
make[6]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/backend/file/test'
make[5]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/backend/file/test'
make[4]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/backend/file'
Making all in rpc
make[4]: Entering directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/backend/rpc'
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I./.. -I../../engine -I./../../engine -I../../gnc-module -I./../../gnc-module -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DGNCACCT_COMMODITY -march=pentium3 -O3 -pipe -Wall -Wunused -Werror -c gncmod-backend-rpc.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I./.. -I../../engine -I./../../engine -I../../gnc-module -I./../../gnc-module -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DGNCACCT_COMMODITY -march=pentium3 -O3 -pipe -Wall -Wunused -Werror -Wp,-MD,.deps/gncmod-backend-rpc.pp -c gncmod-backend-rpc.c -fPIC -o .libs/gncmod-backend-rpc.o
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I./.. -I../../engine -I./../../engine -I../../gnc-module -I./../../gnc-module -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DGNCACCT_COMMODITY -march=pentium3 -O3 -pipe -Wall -Wunused -Werror -c RpcBackend.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I./.. -I../../engine -I./../../engine -I../../gnc-module -I./../../gnc-module -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DGNCACCT_COMMODITY -march=pentium3 -O3 -pipe -Wall -Wunused -Werror -Wp,-MD,.deps/RpcBackend.pp -c RpcBackend.c -fPIC -o .libs/RpcBackend.o
RpcBackend.c: In function `rpcendEnable':
RpcBackend.c:96: structure has no member named `account_begin_edit'
RpcBackend.c:96: structure has no member named `account_begin_edit'
RpcBackend.c:97: structure has no member named `account_commit_edit'
RpcBackend.c:97: structure has no member named `account_commit_edit'
RpcBackend.c:98: structure has no member named `trans_begin_edit'
RpcBackend.c:98: structure has no member named `trans_begin_edit'
RpcBackend.c:99: structure has no member named `trans_commit_edit'
RpcBackend.c:99: structure has no member named `trans_commit_edit'
RpcBackend.c:100: structure has no member named `trans_rollback_edit'
RpcBackend.c:100: structure has no member named `trans_rollback_edit'
RpcBackend.c:101: structure has no member named `price_begin_edit'
RpcBackend.c:101: structure has no member named `price_begin_edit'
RpcBackend.c:102: structure has no member named `price_commit_edit'
RpcBackend.c:102: structure has no member named `price_commit_edit'
RpcBackend.c:105: structure has no member named `sync_all'
RpcBackend.c:105: structure has no member named `sync_all'
RpcBackend.c:106: structure has no member named `sync_price'
RpcBackend.c:106: structure has no member named `sync_price'
RpcBackend.c: In function `rpcendDisable':
RpcBackend.c:121: structure has no member named `account_begin_edit'
RpcBackend.c:121: structure has no member named `account_begin_edit'
RpcBackend.c:122: structure has no member named `account_commit_edit'
RpcBackend.c:122: structure has no member named `account_commit_edit'
RpcBackend.c:123: structure has no member named `trans_begin_edit'
RpcBackend.c:123: structure has no member named `trans_begin_edit'
RpcBackend.c:124: structure has no member named `trans_commit_edit'
RpcBackend.c:124: structure has no member named `trans_commit_edit'
RpcBackend.c:125: structure has no member named `trans_rollback_edit'
RpcBackend.c:125: structure has no member named `trans_rollback_edit'
RpcBackend.c:126: structure has no member named `price_begin_edit'
RpcBackend.c:126: structure has no member named `price_begin_edit'
RpcBackend.c:127: structure has no member named `price_commit_edit'
RpcBackend.c:127: structure has no member named `price_commit_edit'
RpcBackend.c:130: structure has no member named `sync_all'
RpcBackend.c:130: structure has no member named `sync_all'
RpcBackend.c:131: structure has no member named `sync_price'
RpcBackend.c:131: structure has no member named `sync_price'
RpcBackend.c:136: structure has no member named `account_begin_edit'
RpcBackend.c:137: structure has no member named `account_commit_edit'
RpcBackend.c:138: structure has no member named `trans_begin_edit'
RpcBackend.c:139: structure has no member named `trans_commit_edit'
RpcBackend.c:140: structure has no member named `trans_rollback_edit'
RpcBackend.c:141: structure has no member named `price_begin_edit'
RpcBackend.c:142: structure has no member named `price_commit_edit'
RpcBackend.c:145: structure has no member named `sync_all'
RpcBackend.c:146: structure has no member named `sync_price'
RpcBackend.c: In function `rpcend_would_add_txn':
RpcBackend.c:277: too few arguments to function `xaccTransLookup'
RpcBackend.c: In function `rpcend_book_load':
RpcBackend.c:373: `book' undeclared (first use in this function)
RpcBackend.c:373: (Each undeclared identifier is reported only once
RpcBackend.c:373: for each function it appears in.)
cc1: warnings being treated as errors
RpcBackend.c:374: warning: implicit declaration of function `gnc_book_set_group'
RpcBackend.c: In function `rpcend_session_begin':
RpcBackend.c:973: structure has no member named `book_load'
RpcBackend.c:974: structure has no member named `price_load'
RpcBackend.c:975: structure has no member named `account_begin_edit'
RpcBackend.c:976: structure has no member named `account_commit_edit'
RpcBackend.c:977: structure has no member named `trans_begin_edit'
RpcBackend.c:978: structure has no member named `trans_commit_edit'
RpcBackend.c:979: structure has no member named `trans_rollback_edit'
RpcBackend.c:980: structure has no member named `price_begin_edit'
RpcBackend.c:981: structure has no member named `price_commit_edit'
RpcBackend.c:982: warning: assignment from incompatible pointer type
RpcBackend.c:984: structure has no member named `sync_all'
RpcBackend.c:985: structure has no member named `sync_price'
make[4]: *** [RpcBackend.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/backend/rpc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src/backend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.8.2/work/gnucash-1.8.2'
make: *** [all-recursive-am] Error 2
!!! ERROR: app-office/gnucash-1.8.2 failed.
!!! Function src_compile, Line 66, Exitcode 2
!!! (no error message)
|
Here I am !
Regards,
Sébastien |
|
| Back to top |
|
 |
rgzoso n00b

Joined: 26 Jun 2002 Posts: 10 Location: Atlanta, GA
|
Posted: Fri Mar 14, 2003 1:23 am Post subject: Re: g-wrap error when compiling version 1.3.4 |
|
|
| elvisdieguez wrote: | This is the last few lines of output I get when I try to upgrade g-wrap in order to install the latest gnucash. I am using gcc 3.x on a Gentoo 1.4-RC2 system.
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include /glib-1.2 -I/usr/lib/glib/include -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I /usr/include -MT g-wrap-wct.lo -MD -MP -MF .deps/g-wrap-wct.Tpo -c g-wrap-wct.c -fPIC -DPIC -o .libs/g-wrap-wct.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [g-wrap-wct.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
add-ws-t gw-wct #<output: gw-wct.c 3> gw:global-declarations-ccg
for-client gw-standard gw-wct
for-parent gw-wct
add-ws-t gw-wct #<output: gw-wct.c 3> gw:global-definitions-ccg
for-client gw-standard gw-wct
for-parent gw-wct
make[2]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4/work/g-wrap-1.3.4/g-wrap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4/work/g-wrap-1.3.4'
make: *** [all] Error 2
!!! ERROR: dev-libs/g-wrap-1.3.4 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)
I see the error seems to be an incorrect flag passed to gcc 3.x but is there a way to fix this without wading through all the makefiles and then manually compiling? |
Yeah, I looked at this for a while. And it appears that the "fix" in the ebuild of g-wrap-1.3.1-r1 actually is what is breaking 1.3.4, if you comment out the lines under the GCC3 part in the that ebuild, it should work. I just did it and it worked for me. |
|
| Back to top |
|
 |
sebgarden Guru

Joined: 21 Dec 2002 Posts: 353
|
Posted: Fri Mar 14, 2003 11:33 am Post subject: |
|
|
Here it is !
Ok now guys, listen to me: there is a working gnucash ebuild that you can find here . If you want to be able to read ofx files, you will also need libofx-0.6.2 and this ebuild and then just add --enable-ofx after econf in the gnucash-ebuild.
Thx to Stephen Boulet who made the gnucash ebuild and Olivier Crete for the libofx ebuild.
Regards,
Sébastien. |
|
| Back to top |
|
 |
HotShotDJ Apprentice


Joined: 06 Nov 2002 Posts: 166
|
Posted: Sun Mar 16, 2003 9:47 pm Post subject: |
|
|
Sébastien:
I have a working ebuild for gnucash 1.8.2 that uses USE="ofx" and USE="hbci" to enable OFX and hbci respectively. No need for individuals to edit the ebuild file to get support for these protocols. Of course, it relies upon other packages (ebuilds previously posted). I haven't experienced problems with g-wrap, but it looks like that may have been worked out already.
| app-office/gnucash1.8.2 wrote: | # Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic
DESCRIPTION="A personal finance manager"
SRC_URI="http://download.sourceforge.net/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnucash.org/"
KEYWORDS="~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls postgres"
RDEPEND=">=gnome-base/gnome-libs-1.4.1.2-r1
>=dev-libs/libxml-1.8.3
>=gnome-extra/gtkhtml-0.14.0-r1
>=gnome-extra/gal-0.13-r1
>=gnome-extra/guppi-0.35.5-r2
>=gnome-base/gnome-print-0.21
postgres? ( dev-db/postgresql )"
DEPEND="${RDEPEND}
>=dev-lang/perl-5
>=dev-libs/slib-2.3.8
>=dev-lang/swig-1.3_alpha4
>=dev-libs/g-wrap-1.3.4
<gnome-base/libglade-2
media-libs/gdk-pixbuf
>=dev-util/guile-1.4.1
gnome-base/libghttp
nls? ( sys-devel/gettext )
# USE="hbci" will compile hbci support - Larde
hbci? ( net-libs/openhbci )
# USE="ofx" will compile ofx support - hotshotDJ
ofx? ( net-libs/libofx )"
# won't configure with this
filter-flags -fomit-frame-pointer
# these flags to GCC interfere with G_INLINE_FUNC usage in this package
filter-flags "-fno-inline"
filter-flags "-finline-functions"
src_unpack() {
unpack ${A}
# With --enable-sql (use postgres), the gnucash 1.6.8 build process fails
# when making in src/engine. This should fix that. --Chouser
# not sure if needed in 1.7.7+, someone using postgres should check --Fish
cd ${S}/src/engine || die
cp Makefile.am Makefile.am.old
sed -e 's/^SUBDIRS *= */&. /' Makefile.am.old > Makefile.am || die
cd ${S}
}
src_compile() {
local myconf=""
use nls || myconf="--disable-nls"
use hbci && myconf="$myconf --enable-hbci"
use ofx && myconf="$myconf --enable-ofx"
use postgres && myconf="$myconf --enable-sql"
econf ${myconf}
# prevent gcc warnings from breaking build on some systems when NLS disabled
cd ${S}/src/gnome-utils
cp Makefile Makefile.bak
sed s/'-Werror '// Makefile.bak > Makefile || die
cd ${S}
make || die # Doesn't work with make -j 4 (hallski)
}
src_install() {
export LIBRARY_PATH=${D}/usr/lib:${D}/usr/lib/gnucash
einstall
dodoc ABOUT-NLS AUTHORS COPYING ChangeLog HACKING NEWS README* TODO
} |
Since I'm not familiar with bugs.gentoo.org, I haven't submitted anything over there. I hope this is helpful to you or anybody else.  |
|
| Back to top |
|
 |
sebgarden Guru

Joined: 21 Dec 2002 Posts: 353
|
Posted: Sun Mar 16, 2003 11:13 pm Post subject: |
|
|
Cool, thx HotShotDJ
Sébastien. |
|
| Back to top |
|
 |
|