Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 165418

Summary: compile app-office/gnucash-2.0.4-r1 fails
Product: Gentoo Linux Reporter: DEMAINE Benoît-Pierre, aka DoubleHP <dhp_gentoo>
Component: Current packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: normal CC: dustin, hkbst
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: var/log/portage/app-office:gnucash-2.0.4-r1:20070205-091716.log
emerge --info

Description DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-05 09:39:14 UTC
After encouring bug #164974 , I am now having compile problem. Firts, I noticed that strange things (while solving configure pb) (hey, 164974 says to re-emerge slib, so, let's try it !):

root@moon_gen:~# emerge -va1 slib
Calculating dependencies... done!
[ebuild     UD] dev-scheme/guile-1.6.8 [1.8.1-r1] USE="(-debug%) (-debug-freelist%) (-debug-malloc%) (-deprecated%) (-discouraged%) (-elisp%) (-networking%) (-nls%*) (-regex%) (-threads%*)" 0 kB
[ebuild     U ] dev-scheme/slib-3.1.4-r2 [3.1.1-r1] 0 kB
Total: 2 packages (1 upgrade, 1 downgrade), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No] y

If I say yes, and later on come back to my emerge world:

root@moon_gen:~# emerge -DaNuv world
These are the packages that would be merged, in order:
Calculating world dependencies |
[...]
... done!
[ebuild     U ] dev-scheme/guile-1.8.1-r1 [1.6.8] USE="nls%* threads%* -debug% -debug-freelist% -debug-malloc% -deprecated% -discouraged% -elisp% -networking% -regex%" 0 kB
[ebuild     UD] dev-scheme/slib-3.1.1-r1 [3.1.4-r2] 0 kB
[ebuild     U ] app-office/gnucash-2.0.4-r1 [2.0.4] USE="doc nls -chipcard -debug -hbci -ofx -quotes" 0 kB
[ebuild     U ] media-video/ffmpeg-0.4.9_p20070129 [0.4.9_p20061016]
[...]

I find this VERY strange that single emerge does downgrade, then world would upgrade again ...

Any way, now, my compile error is:

*** *** *** ERROR

(cd .libs && rm -f libcore-utils.so.0 && ln -s libcore-utils.so.0.0.0 libcore-utils.so.0)
(cd .libs && rm -f libcore-utils.so && ln -s libcore-utils.so.0.0.0 libcore-utils.so)
creating libcore-utils.la
(cd .libs && rm -f libcore-utils.la && ln -s ../libcore-utils.la libcore-utils.la)
if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../..    -std=gnu99    -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -O2 -march=pentium3 -pipe -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations   -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT gw-core-utils.lo -MD -MP -MF ".deps/gw-core-utils.Tpo" -c -o gw-core-utils.lo gw-core-utils.c; \
        then mv -f ".deps/gw-core-utils.Tpo" ".deps/gw-core-utils.Plo"; else rm -f ".deps/gw-core-utils.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -std=gnu99 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -O2 -march=pentium3 -pipe -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT gw-core-utils.lo -MD -MP -MF .deps/gw-core-utils.Tpo -c gw-core-utils.c  -fPIC -DPIC -o .libs/gw-core-utils.o
gw-core-utils.c: In function 'gw__tmp173_gnc_gconf_get_bool_no_error_wrapper':
gw-core-utils.c:42: warning: implicit declaration of function 'SCM_FALSEP'
gw-core-utils.c:46: warning: implicit declaration of function 'SCM_STRINGP'
gw-core-utils.c:48: warning: implicit declaration of function 'SCM_STRING_CHARS'
gw-core-utils.c:48: warning: assignment makes pointer from integer without a cast
gw-core-utils.c:68: warning: assignment makes pointer from integer without a cast
gw-core-utils.c:81: error: 'SCM_DEFER_INTS' undeclared (first use in this function)
gw-core-utils.c:81: error: (Each undeclared identifier is reported only once
gw-core-utils.c:81: error: for each function it appears in.)
gw-core-utils.c:83: error: 'SCM_ALLOW_INTS' undeclared (first use in this function)
gw-core-utils.c: In function 'gw__tmp175_gnc_is_debugging_wrapper':
gw-core-utils.c:116: error: 'SCM_DEFER_INTS' undeclared (first use in this function)
gw-core-utils.c:118: error: 'SCM_ALLOW_INTS' undeclared (first use in this function)
gw-core-utils.c: In function 'gw__tmp177_g_find_program_in_path_wrapper':
gw-core-utils.c:156: warning: assignment makes pointer from integer without a cast
gw-core-utils.c:169: error: 'SCM_DEFER_INTS' undeclared (first use in this function)
gw-core-utils.c:171: error: 'SCM_ALLOW_INTS' undeclared (first use in this function)
gw-core-utils.c:176: warning: implicit declaration of function 'scm_makfrom0str'
gw-core-utils.c:176: warning: assignment makes pointer from integer without a cast
gw-core-utils.c: In function 'gw__tmp179_gnc_utf8_strip_invalid_wrapper':
gw-core-utils.c:214: warning: assignment makes pointer from integer without a cast
gw-core-utils.c:227: error: 'SCM_DEFER_INTS' undeclared (first use in this function)
gw-core-utils.c:229: error: 'SCM_ALLOW_INTS' undeclared (first use in this function)
make[4]: *** [gw-core-utils.lo] Error 1
make[4]: Leaving directory `/mnt/big/portage/app-office/gnucash-2.0.4-r1/work/gnucash-2.0.4/src/core-utils'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/mnt/big/portage/app-office/gnucash-2.0.4-r1/work/gnucash-2.0.4/src/core-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/big/portage/app-office/gnucash-2.0.4-r1/work/gnucash-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/big/portage/app-office/gnucash-2.0.4-r1/work/gnucash-2.0.4'
make: *** [all] Error 2

!!! ERROR: app-office/gnucash-2.0.4-r1 failed.
Call stack:
  ebuild.sh, line 1613:   Called dyn_compile
  ebuild.sh, line 970:   Called qa_call 'src_compile'
  environment, line 3512:   Called src_compile
  gnucash-2.0.4-r1.ebuild, line 80:   Called die

*** *** *** /ERROR

I will atatch log when BTS allows me to ... 

This bug seems linked to bug #164974 , bug #143012 , and may block bug #163921

Good luck :s
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-05 09:40:43 UTC
Created attachment 109208 [details]
var/log/portage/app-office:gnucash-2.0.4-r1:20070205-091716.log
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-05 09:42:10 UTC
Created attachment 109209 [details]
emerge --info
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-05 09:48:16 UTC
Is my complain about "versions to emerge" dup of bug #79606 ?

about my dev-scheme/guile-1.6.8 vs dev-scheme/guile-1.8.1-r1 point.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2007-02-05 15:35:37 UTC
Please mask slib-3.1.4 locally.

Marijn, I think we need a better solution :)
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-05 17:27:22 UTC
According to bug #164974c7 ( bug #164974c#7 ), I masked locally dev-scheme/slib-3.1.4-r2 but it still have the same problem at compile time.
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2007-02-05 17:40:51 UTC
you seem to be missing deprecated use flag for guile
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-05 19:05:47 UTC
+/- deprecated/discouraged did not help
Comment 8 Dustin C. Hatch 2007-02-06 01:37:37 UTC
(In reply to comment #7)
> +/- deprecated/discouraged did not help
> 

I had this problem, and I am not sure what I did to correct it.  It doesn't matter because now that gnucash compiles, it won't run.

Ensure the following:
Compile dev-scheme/guile with USE="deprecated"
Re-compile dev-libs/g-wrap against dev-scheme/guile as above
Re-compile dev-scheme/slib
Re-compile app-office/gnucash

Not sure if that will help, but give it a try
Comment 9 Dustin C. Hatch 2007-02-06 01:38:45 UTC
Here is the error I get at runtime:

 ~ $ gnucash
Backtrace:
In unknown file:
   ?: 0* [primitive-load-path "qif-import/qif-parse.scm"]
In /usr/share/gnucash/scm/qif-import/qif-parse.scm:
   8: 1* (define qif-category-compiled-rexp #)
   9: 2* (make-regexp "^ *(\\[)?([^]/\\|]*)(]?)(/?)([^\\|]*)(\\|(\\[)?([^]/]*)(]?)(/?)(.*))? *$")

/usr/share/gnucash/scm/qif-import/qif-parse.scm:9:3: In expression (make-regexp "^ *(\\[)?([^]/\\|]*)(]?)(/?)([^\\|]*)(\\|(\\[)?([^]/]*)(]?)(/?)(.*))? *$"):
/usr/share/gnucash/scm/qif-import/qif-parse.scm:9:3: Unbound variable: make-regexp

Possibly related to this bug, or should I start a new report?
Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2007-02-06 02:41:01 UTC
Hi, sorry, you need the regex flag on guile as well.
Comment 11 Seemant Kulleen (RETIRED) gentoo-dev 2007-02-06 02:45:44 UTC
Next sync will have gnucash die if the correct flags were not applied on guile's compile.Additionally, 2.0.4-r1 now specifically depends on the 1.8 series of guile.
Comment 12 Dustin C. Hatch 2007-02-06 04:48:00 UTC
(In reply to comment #10)
> Hi, sorry, you need the regex flag on guile as well.
> 

Hooray! Now I can balance my checkbook!
Comment 13 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-06 16:16:02 UTC
1170775556:  ::: completed emerge (4 of 4) app-office/gnucash-2.0.4-r1 to /

***

I had to:
echo "dev-scheme/guile deprecated regex discouraged" >> /etc/portage/package.use
emerge -va1 dev-scheme/guile dev-libs/g-wrap dev-scheme/slib app-office/gnucash
esync
emerge -va1 dev-scheme/guile dev-libs/g-wrap dev-scheme/slib app-office/gnucash

and it is now compiled, and I can run it.

Closing: FIXED.
Comment 14 Chris Arndt 2007-07-12 20:53:05 UTC
I also had to add dev-libs/libofx to the list in the previous post.