Compiling Difficulty
Derek Atkins
warlord at MIT.EDU
Fri May 11 03:51:47 EDT 2007
Quoting frank <frank at overtons.org>:
> I am working on compiling gnucash for CentOS 5
>
> So far I have :
> downloaded, configured, make, make install
> compat-guile-16-1.6.7-6.fc6.src.rpm
> downloaded, configured, make, make install g-wrap-1.9.6-7.1.src.rpm
> downloaded, configured
> gnucash-2.0.5-1.fc6.src.rpm
Wait -- why did you "make, make install" from an srpm? Why not
just rpmbuild --rebuild ; rpm -Uvh .. ?
> When I try to make gnucash I run into difficulties. Specifically, make
> check on /src/engine/test fails as follows:
>
[snip]
> -Wl,/usr/local/lib/gnucash -Wl,--rpath -Wl,/usr/local/lib
> ../.libs/libgncmod-engine.so: undefined reference to `scm_makfrom0str'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_gc_protect_object'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_call_2'
> ../.libs/libgncmod-engine.so: undefined reference to
> `scm_gc_unprotect_object'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_make_real'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_call_1'
> ../.libs/libgncmod-engine.so: undefined reference to `gw_wcp_assimilate_ptr'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_equal_p'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_call_0'
> ../.libs/libgncmod-engine.so: undefined reference to `scm_c_eval_string'
> collect2: ld returned 1 exit status
> make: *** [test-link] Error 1
This implies that libguile is missing or broken (most likely).
> I suspect the guile libs are somehow not correctly versioned or configured
>> # rpm -qa | grep guile
>> compat-guile-16-devel-1.6.7-6.fc6
>> guile-1.8.0-8.20060831cvs
>> guile-devel-1.8.0-8.20060831cvs
> I force installed compat-guile-16-devel-1.6.7-6.fc6 with --nodeps
> because compat-guile-16-1.6.7-6.fc6.src.rpm was installed with make install.
UM... You can't have compat-guile-16-devel AND guile-1.8 AND
guile-devel-1.8 all at the same time. I'm sorry to say but you've
just royally f**ked up your system. The fact that you used "make install"
made it even worse.
Right now, i suggest you re-install your machine and try again. This time,
use RPM for everything. Don't "make install" anything by hand. And pick
either guile-1.6 or guile-1.8 and stick with it.
> # guile
> guile> (version)
> "1.6.7"
>
> Any ideas on what's wrong and what can be done to get this to compile
> and work?
Start over again.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list