Compiling on 64 bit SuSE (Was Re: List OK?)

Des Dougan des at DouganConsulting.com
Mon Sep 5 17:10:53 EDT 2005


On Mon, 2005-09-05 at 12:44 -0700, Des Dougan wrote:
> On Mon, 2005-09-05 at 14:08 -0400, Derek Atkins wrote:
> > Quoting Des Dougan <des at DouganConsulting.com>:
> > 
> > > The make step has failed, though - something in make is looking at a 32
> > > bit library instead of the 64 bit:
> > 
> > That's not surprising -- GnuCash 1.8 was never ported to 64-bit platforms...
> > 
> > > make[4]: Entering directory 
> > > `/home/des/Downloads/tarballs/gnucash/gnucash-1.8.11/src/gnc-module'
> > > /bin/sh ../../libtool --mode=link gcc -I../../src/core-utils 
> > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib64/glib/include -I 
> > > /usr/local/include/g-wrap  -g -O2 -Wall -Wunused    -o 
> > > libgncmodule.la -rpath /usr/lib64 -module gnc-module.lo 
> > > ../core-utils/libcore-utils.la -L/usr/local/lib -lgwrap-wct 
> > > -lgwrap-glib -L/opt/gnome/lib64 -lglib -lltdl -lpopt -lm  -lm
> > > gcc -shared  .libs/gnc-module.o  -Wl,--rpath 
> > > -Wl,/home/des/Downloads/tarballs/gnucash/gnucash/src/core-utils/.libs 
> > > -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/gnome/lib64 
> > > -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath 
> > > -Wl,/opt/gnome/lib64  -L/usr/lib64 -L/opt/gnome/lib64 
> > > ../core-utils/.libs/libcore-utils.so -L/usr/local/lib 
> > > /usr/local/lib/libgwrap-wct.so /usr/local/lib/libgwrap-glib.so 
> > > /opt/gnome/lib64/libglib.so /usr/lib/libltdl.so -lpopt -lm  
> > > -Wl,-soname -Wl,libgncmodule.so.0 -o .libs/libgncmodule.so.0.0.0
> > > /usr/lib/libltdl.so: could not read symbols: File in wrong format
> > >
> > > I've confirmed that there is a libltdl.so in the /usr/lib64 directory,
> > > and I've gone through the configure script and the make man pages to
> > > check how to inform make that it's a 64 bit compile, but can find
> > > nothing that help me.
> > 
> > Sorry, don't know what to tell you...
> > 
> > > Am I missing something fundamental at the configure stage? The script
> > > I'm using is as follows:
> > >
> > > #!/bin/sh
> > > CC=gcc
> > > CFLAGS=-O2
> > > PATH="$PATH:/opt/gnome/bin"
> > > (cd gnucash
> > > rm -rf config.cache
> > > ./configure --prefix=/opt/gnome --libdir=/usr/lib64 --enable-gui 
> > > --enable-ofx \
> > >        --build=x86_64-linux-gnu --disable-error-on-warning
> > > )
> > > # end of script
> > >
> > > Thanks,
> > >
> > > Des
> > 
> > Honestly, I don't know.  But I don't think 1.8 will build on 64-bit 
> > platforms. I know a bunch of changes have gone into CVS to get gnucash 
> > working on 64-bit
> > platforms, but I'm fairly certain those didn't go into 1.8...   So it's quite
> > likely you're working on a futile effort in any event.
> 
> Well, that is a major issue for me - the shipped gnucash on SuSE 9.3 has
> a bug with importing OFX files (which I've reported to SuSE) and which
> is why I built 1.8.11 on my previous box...
> 
> Thanks for all your help (and I see that my last email made it to the
> list...).
> 
> Regards,
> 
> Des


Well, I decided to press on. libltdl.so is a symbolic link to
libltdl.so.1 in /usr/lib, so I created a new symbolic link to
the /usr/lib64 directory. This got me further and carrying out the same
steps again for subsequent links had "make" completing, apparently
successfully. "make install" ran through, although it provided warnings
about static libraries such as this example:

*** Warning: This system can not link to static lib archive ../../../src/business/business-ledger/libgnc-business-ledger.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** But as you try to build a module library, libtool will still create
*** a static module, that should work as long as the dlopening application
*** is linked with the -dlopen flag to resolve symbols at runtime.

I therefore tries running gnucash, but got the following failure:

des at sempron:~> gnucash
ERROR: In procedure dynamic-link:
ERROR: file: "libgw-gnc", message: "/usr/lib64/libgw-gnc.a: invalid ELF header"

Can anyone offer any pointers to the cause of this? 

Thanks,

Des
-- 

Des Dougan, Principal
Dougan Consulting Group

Ph: 604-980-2848       Email: des at DouganConsulting dot com     

        www.DouganConsulting.com

Design - Implementation - Support



More information about the gnucash-user mailing list