Compiling Gnucash 2.2.0 on Solaris 10 x86 using GCC - error
Alan Pae
alanpae at ilkda.com
Fri Jul 27 18:35:15 EDT 2007
Derek Atkins wrote:
> Alan Pae <alanpae at ilkda.com> writes:
>
>> Derek Atkins wrote:
>>> Alan Pae <alanpae at ilkda.com> writes:
>>>
>>>>> ld: warning: file
>>>>> /export/home/alan/gnucash/gnucash-2.2.0/src/core-utils/.libs/libgnc-core-utils.so:
>>>>> linked
>>>> to ../../src/core-utils/.libs/libgnc-core-utils.so: attempted multiple
>>>> inclusion of file
>>>>
>>>>> Undefined first referenced
>>>>> symbol in file
>>>>> SCM_LIST1 /gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
>>>>> SCM_LIST4 /gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
>>>>> scm_listify /gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
>>>>> SCM_LENGTH /gnucash-2.2.0/src/app-utils/.libs/libgncmod-app-utils.so
>>>>> scm_makstr ../../src/engine/.libs/libgncmod-engine.so
>>>>> ld: fatal: Symbol referencing errors. No output written to .libs/gnucash-bin
>>>>> collect2: ld returned 1 exit status
>>>> Getting close to a binary?
>>> Closer. What version of guile do you have? It looks like we
>>> might need to link against GUILE_LIBS in report-gnome.
>> Guile is 1.6.8. Compile errors prevent me from jumping up to 1.8.x.
>
> Guile 1.6.8 should work just fine..
>
>> Tell me what to change and let's finish this up.
>
> Well, that's a good question. Do you maybe have multiple versions
> of guile lying around? Maybe configure found one version but
> the compiler sees the headers for a different version?
>
> I don't see what else could be going on; GUILE_LIBS is listed on
> the gnucash_bin_LDADD line. Maybe I need more context from your
> error message; perhaps the actual linker line that's failing?
find only finds one guile binary on my system.
make[3]: Entering directory
`/export/home/alan/gnucash/gnucash-2.2.0/src/bin'
Making all in .
make[4]: Entering directory
`/export/home/alan/gnucash/gnucash-2.2.0/src/bin'
/bin/bash ../../libtool --tag=CC --mode=link gcc -I../.. -D_REENTRANT
-D_PTHREADS -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -DORBIT2=1 -D_REENTRANT -D_PTHREADS
-I/opt/local/include/gtk-2.0 -I/opt/local/include/libart-2.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/orbit-2.0 -I/opt/local/include/libbonobo-2.0
-I/opt/local/include/gnome-vfs-2.0
-I/opt/local/lib/gnome-vfs-2.0/include
-I/opt/local/include/bonobo-activation-2.0
-I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2
-I/opt/local/include -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
-I/opt/local/include/libxml2 -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/libpng12 -I/opt/local/include/gtk-2.0
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include
-I/usr/include/libpng12 -I/opt/local/include -I../../lib/libqof/qof
-I../../lib/libqof/qof -DPKGSYSCONFDIR=\"/opt/local/etc/gnucash\"
-DPKGDATADIR=\"/opt/local/share/gnucash\"
-DGNC_HELPDIR=\"/opt/local/share\" -I../../src -I../../src
-I../../src/core-utils -I../../src/app-utils -I../../src/gnome-utils
-I../../src/engine -I../../src/gnome -I../../src/gnome-utils
-I../../src/gnc-module -Wdeclaration-after-statement
-I/opt/local/include -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Wno-unused -L/opt/local/lib -R/opt/local/lib
-g -o gnucash-bin gnucash-bin.o -L/opt/local/lib -lguile -lguile-ltdl
-L/opt/local/lib -R/opt/local/lib -lqthreads -lsocket -lnsl -lm
-L/opt/local/lib -lgthread-2.0 -lpthread -lthread -lrt -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgnomeui-2 -lSM
-lICE -lbonoboui-2 -lxml2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2
-lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgnomevfs-2 -lbonobo-2
-lgconf-2 -lbonobo-activation -lgmodule-2.0 -lORBit-2 -lgthread-2.0
-lpthread -lthread -lrt -lgobject-2.0 -lglib-2.0 -lintl
-L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl ../../lib/libqof/qof/libgnc-qof.la
../../src/engine/libgncmod-engine.la ../../src/gnome/libgnc-gnome.la
../../src/gnome-utils/libgncmod-gnome-utils.la
../../src/app-utils/libgncmod-app-utils.la
../../src/core-utils/libgnc-core-utils.la
../../src/gnc-module/libgnc-module.la -lpopt -lm -lm
gcc -I../.. -D_REENTRANT -D_PTHREADS -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -DORBIT2=1 -D_REENTRANT -D_PTHREADS
-I/opt/local/include/gtk-2.0 -I/opt/local/include/libart-2.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/orbit-2.0 -I/opt/local/include/libbonobo-2.0
-I/opt/local/include/gnome-vfs-2.0
-I/opt/local/lib/gnome-vfs-2.0/include
-I/opt/local/include/bonobo-activation-2.0
-I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2
-I/opt/local/include -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
-I/opt/local/include/libxml2 -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/libpng12 -I/opt/local/include/gtk-2.0
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include
-I/usr/include/libpng12 -I/opt/local/include -I../../lib/libqof/qof
-I../../lib/libqof/qof -DPKGSYSCONFDIR=\"/opt/local/etc/gnucash\"
-DPKGDATADIR=\"/opt/local/share/gnucash\"
-DGNC_HELPDIR=\"/opt/local/share\" -I../../src -I../../src
-I../../src/core-utils -I../../src/app-utils -I../../src/gnome-utils
-I../../src/engine -I../../src/gnome -I../../src/gnome-utils
-I../../src/gnc-module -Wdeclaration-after-statement
-I/opt/local/include -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Wno-unused -g -o .libs/gnucash-bin gnucash-bin.o
-L/opt/local/lib -L/usr/openwin/lib
../../lib/libqof/qof/.libs/libgnc-qof.so
../../src/engine/.libs/libgncmod-engine.so
../../src/gnome/.libs/libgnc-gnome.so
/export/home/alan/gnucash/gnucash-2.2.0/src/register/ledger-core/.libs/libgncmod-ledger-core.so
-L/usr/lib
/export/home/alan/gnucash/gnucash-2.2.0/src/register/register-gnome/.libs/libgncmod-register-gnome.so
/export/home/alan/gnucash/gnucash-2.2.0/src/register/register-core/.libs/libgncmod-register-core.so
/export/home/alan/gnucash/gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
/export/home/alan/gnucash/gnucash-2.2.0/src/report/report-system/.libs/libgncmod-report-system.so
/export/home/alan/gnucash/gnucash-2.2.0/src/gnome-search/.libs/libgncmod-gnome-search.so
/export/home/alan/gnucash/gnucash-2.2.0/src/gnome-utils/.libs/libgncmod-gnome-utils.so
../../src/gnome-utils/.libs/libgncmod-gnome-utils.so
/export/home/alan/gnucash/gnucash-2.2.0/src/backend/file/.libs/libgnc-backend-file-utils.so
/export/home/alan/gnucash/gnucash-2.2.0/src/app-utils/.libs/libgncmod-app-utils.so
/opt/local/lib/libgtkhtml-3.14.so -lgailutil -lgnomeui-2 -lbonoboui-2
-lgnomecanvas-2 -lgnome-2 /opt/local/lib/libgnomevfs-2.so
/opt/local/lib/libbonobo-2.so /opt/local/lib/libbonobo-activation.so
/opt/local/lib/libORBitCosNaming-2.so /opt/local/lib/libgoffice-0.so
-lXext /opt/local/lib/libpcre.so /opt/local/lib/libgsf-1.so -lbz2
/opt/local/lib/libglade-2.0.so -lgnomeprint-2-2
/opt/local/lib/libart_lgpl_2.so /opt/local/lib/libintl.so -lc
/opt/local/lib/libxml2.so
../../src/app-utils/.libs/libgncmod-app-utils.so
/export/home/alan/gnucash/gnucash-2.2.0/src/engine/.libs/libgncmod-engine.so
/export/home/alan/gnucash/gnucash-2.2.0/src/gnc-module/.libs/libgnc-module.so
/export/home/alan/gnucash/gnucash-2.2.0/src/calculation/.libs/libgncmod-calculation.so
/export/home/alan/gnucash/gnucash-2.2.0/lib/libqof/qof/.libs/libgnc-qof.so
../../src/core-utils/.libs/libgnc-core-utils.so
../../src/gnc-module/.libs/libgnc-module.so
/export/home/alan/gnucash/gnucash-2.2.0/src/core-utils/.libs/libgnc-core-utils.so
-lgconf-2 /opt/local/lib/libORBit-2.so -lresolv
/opt/local/lib/libgtk-x11-2.0.so /opt/local/lib/libgdk-x11-2.0.so
/opt/local/lib/libatk-1.0.so /opt/local/lib/libgdk_pixbuf-2.0.so
/opt/local/lib/libpangocairo-1.0.so /opt/local/lib/libpangoft2-1.0.so
/opt/local/lib/libpango-1.0.so /opt/local/lib/libcairo.so
/opt/local/lib/libfreetype.so -lfontconfig -lpng12 -lz -lXrender -lSM
-lICE -lX11 /opt/local/lib/libguile.so /opt/local/lib/libguile-ltdl.so
-ldl /opt/local/lib/libqthreads.so -lsocket -lnsl
/opt/local/lib/libgthread-2.0.so -lpthread -lthread -lrt
/opt/local/lib/libgobject-2.0.so /opt/local/lib/libgmodule-2.0.so
/opt/local/lib/libglib-2.0.so -lpopt -lm -R/opt/local/lib
-R/opt/local/lib/gnucash
ld: warning: file ../../src/gnome-utils/.libs/libgncmod-gnome-utils.so:
linked to
/export/home/alan/gnucash/gnucash-2.2.0/src/gnome-utils/.libs/libgncmod-gnome-utils.so:
attempted multiple inclusion of file
ld: warning: file ../../src/app-utils/.libs/libgncmod-app-utils.so:
linked to
/export/home/alan/gnucash/gnucash-2.2.0/src/app-utils/.libs/libgncmod-app-utils.so:
attempted multiple inclusion of file
ld: warning: file
/export/home/alan/gnucash/gnucash-2.2.0/src/engine/.libs/libgncmod-engine.so:
linked to ../../src/engine/.libs/libgncmod-engine.so: attempted multiple
inclusion of file
ld: warning: file
/export/home/alan/gnucash/gnucash-2.2.0/lib/libqof/qof/.libs/libgnc-qof.so:
linked to ../../lib/libqof/qof/.libs/libgnc-qof.so: attempted multiple
inclusion of file
ld: warning: file ../../src/gnc-module/.libs/libgnc-module.so: linked to
/export/home/alan/gnucash/gnucash-2.2.0/src/gnc-module/.libs/libgnc-module.so:
attempted multiple inclusion of file
ld: warning: file
/export/home/alan/gnucash/gnucash-2.2.0/src/core-utils/.libs/libgnc-core-utils.so:
linked to ../../src/core-utils/.libs/libgnc-core-utils.so: attempted
multiple inclusion of file
Undefined first referenced
symbol in file
SCM_LIST1
/export/home/alan/gnucash/gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
SCM_LIST4
/export/home/alan/gnucash/gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
scm_listify
/export/home/alan/gnucash/gnucash-2.2.0/src/report/report-gnome/.libs/libgncmod-report-gnome.so
SCM_LENGTH
/export/home/alan/gnucash/gnucash-2.2.0/src/app-utils/.libs/libgncmod-app-utils.so
scm_makstr
../../src/engine/.libs/libgncmod-engine.so
ld: fatal: Symbol referencing errors. No output written to .libs/gnucash-bin
collect2: ld returned 1 exit status
make[4]: *** [gnucash-bin] Error 1
nm libguile.so
[4470] | 258376| 66|FUNC |GLOB |0 |11 |scm_length
[4576] | 288592| 151|FUNC |GLOB |0 |11 |scm_leq_p
[3938] | 287904| 537|FUNC |GLOB |0 |11 |scm_less_p
[4064] | 315256| 261|FUNC |GLOB |0 |11 |scm_lfwrite
[4917] | 435736| 243|FUNC |GLOB |0 |11 |scm_link
[4898] | 625512| 4|OBJT |GLOB |0 |29 |scm_lisp_nil
[3918] | 625452| 4|OBJT |GLOB |0 |29 |scm_lisp_t
[4483] | 260048| 5|FUNC |GLOB |0 |11 |scm_list
[4669] | 257384| 99|FUNC |GLOB |0 |11 |scm_list_1
[4672] | 257484| 174|FUNC |GLOB |0 |11 |scm_list_2
[4674] | 257660| 270|FUNC |GLOB |0 |11 |scm_list_3
[4676] | 257932| 53|FUNC |GLOB |0 |11 |scm_list_4
Can't find scm_listify in either guile library.
More information about the gnucash-devel
mailing list