More build breakages due to Debian libtool

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

More build breakages due to Debian libtool

Ganesan Rajagopal-2

Hi,

Please apply the following patch to fix build problems in SVN revision 12971

Index: src/register/ledger-core/test/Makefile.am
===================================================================
--- src/register/ledger-core/test/Makefile.am (revision 12971)
+++ src/register/ledger-core/test/Makefile.am (working copy)
@@ -3,6 +3,8 @@
 noinst_PROGRAMS = test-link-module
 
 test_link_module_SOURCES=test-link-module.c
-test_link_module_LDADD=../libgncmod-ledger-core.la
+test_link_module_LDADD=../libgncmod-ledger-core.la \
+    ../../../gnome-utils/libgncmod-gnome-utils.la \
+    ../../../engine/libgncmod-engine.la
 
 AM_CFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}
Index: src/import-export/qif-import/test/Makefile.am
===================================================================
--- src/import-export/qif-import/test/Makefile.am (revision 12971)
+++ src/import-export/qif-import/test/Makefile.am (working copy)
@@ -10,5 +10,6 @@
   ${top_builddir}/src/engine/libgncmod-engine.la \
   ${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \
   ${top_builddir}/src/app-utils/libgncmod-app-utils.la \
+  ${top_builddir}/src/core-utils/libcore-utils.la \
   ${LIBXML2_LIBS}
 
Index: src/import-export/test/Makefile.am
===================================================================
--- src/import-export/test/Makefile.am (revision 12971)
+++ src/import-export/test/Makefile.am (working copy)
@@ -11,6 +11,7 @@
 
 LDADD = \
   ${top_builddir}/src/gnc-module/libgncmodule.la \
+  ${top_builddir}/src/core-utils/libcore-utils.la \
   ${top_builddir}/src/test-core/libgncmod-test.la \
   ../libgncmod-generic-import.la \
   ${GLIB_LIBS} ${QOF_LIBS}
@@ -45,3 +46,5 @@
 noinst_PROGRAMS = \
   test-link \
   test-import-parse


Index: src/engine/test/Makefile.am
===================================================================
--- src/engine/test/Makefile.am (revision 12971)
+++ src/engine/test/Makefile.am (working copy)
@@ -85,7 +85,8 @@
   test-transaction-voiding
 
 test_link_SOURCES = test-link.c
-test_link_LDADD = ../libgncmod-engine.la ${QOF_LIBS}
+test_link_LDADD = ../../core-utils/libcore-utils.la \
+  ../libgncmod-engine.la ${QOF_LIBS}
 
 EXTRA_DIST = \
   test-create-account \

--
Ganesan Rajagopal
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: More build breakages due to Debian libtool

Neil Williams-2
On Tuesday 24 January 2006 12:01 pm, Ganesan Rajagopal wrote:
> Please apply the following patch to fix build problems in SVN revision
> 12971

Ganesan, I've been building gnucash svn on Debian since I started (when it was
cvs) and not needed these changes.

I'm using Debian unstable with g-wrap 1.9. I'll gladly confirm any library
versions that I'm using but it's nearly always in sync with unstable because
I use cron-apt every 24hrs to download and install updates for every
available package.

I fear these changes may be masking another problem that _only_ appears on
your system and I'd advise that you double-check if any more come up because
the only problems I've ever had with building gnucash svn on Debian are
already fixed and liberally distributed through the gnucash-devel mailing
list archive!
:-)

(and FTR, they ALL relate solely to g-wrap, not libtool or any other part of
the underlying auto-magic.)

--

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: More build breakages due to Debian libtool

Martin Preuss
Hi,

On Saturday 28 January 2006 22:49, Neil Williams wrote:
> On Tuesday 24 January 2006 12:01 pm, Ganesan Rajagopal wrote:
> > Please apply the following patch to fix build problems in SVN revision
> > 12971
>
> Ganesan, I've been building gnucash svn on Debian since I started (when it
> was cvs) and not needed these changes.
[...]
I can at least confirm that I always had the same problems with my Debian
system (unstable): For example I always get an error about undefined symbols,
so up until yesterday I was still unable to even compile gnucash on my system
(and I didn't test today due to a lack of time)...

This is what I always get:

gcc -I../../../../src/test-core -I.. -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign
-o .libs/test-link-module
test-link-module.o  ../.libs/libgncmod-ledger-core.so /usr/lib/libpopt.so -lm
-Wl,--rpath -Wl,/usr/lib/gnucash
../.libs/libgncmod-ledger-core.so: undefined reference to
`gnc_date_make_mnemonic_target'
collect2: ld returned 1 exit status
make[5]: *** [test-link-module] Fehler 1
make[5]: Leaving directory
`/home/martin/projekte/c/gnucash/gnucash/src/register/ledger-core/test'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory
`/home/martin/projekte/c/gnucash/gnucash/src/register/ledger-core'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory
`/home/martin/projekte/c/gnucash/gnucash/src/register'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/martin/projekte/c/gnucash/gnucash/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/martin/projekte/c/gnucash/gnucash'
make: *** [all] Fehler 2


regards
Martin
--
"Things are only impossible until they're not"

AqBanking - http://www.aquamaniac.de/aqbanking/
LibChipcard - http://www.libchipcard.de/
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: More build breakages due to Debian libtool

Ganesan Rajagopal-2
In reply to this post by Neil Williams-2
>>>>> Neil Williams <[hidden email]> writes:

> I'm using Debian unstable with g-wrap 1.9. I'll gladly confirm any library
> versions that I'm using but it's nearly always in sync with unstable because
> I use cron-apt every 24hrs to download and install updates for every
> available package.

That's not really relevant because the link errors are not with external
libraries but with internal libraries within gnucash.

> I fear these changes may be masking another problem that _only_ appears on
> your system and I'd advise that you double-check if any more come up because
> the only problems I've ever had with building gnucash svn on Debian are
> already fixed and liberally distributed through the gnucash-devel mailing
> list archive!
> :-)

Looks like you're correct. I found a build problem today because of a
missing symbol that's no longer in the source tree. It turned out that the
linker is picking up older installed libraries. Once I cleaned up my
installed tree everything is fine. The patches I sent are not
required. Sorry for the false alarm.

Ganesan

--
Ganesan Rajagopal
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: More build breakages due to incomplete uninstalls

Neil Williams-2
On Monday 30 January 2006 5:34 am, Ganesan Rajagopal wrote:
> > :-)
>
> Looks like you're correct. I found a build problem today because of a
> missing symbol that's no longer in the source tree. It turned out that the
> linker is picking up older installed libraries. Once I cleaned up my
> installed tree everything is fine. The patches I sent are not
> required. Sorry for the false alarm.

Aha! OK, one bit of advice for everyone building regularly from the svn tree -

1. make uninstall is often incomplete on rapidly changing trees.

2. make will try to use installed libraries and if svn update changes any part
of those (which it will), they need to be removed, however you cannot then
rely on make uninstall to do this for you because the tree has changed.

3. If you use make uninstall, this relies on you having completed a
previous ./autogen and configure.

4. If you've done 'svn update' prior to 'make uninstall', then make will
re-run autogen and configure and therefore potentially miss some modified
installed code.

Therefore, my advice is:

If you use 'make uninstall', follow it up with 'rm -rf <prefix>'. Or just use
'rm -rf <prefix>'. I guess there would be a way of detecting whether files
still remain below the <prefix> path but I'm not convinced they would be
worth either saving or selectively deleting.

The unfortunate result is that you must then complete a full make install.

The breakages that result from NOT deleting the installation directory and all
files beneath it are not due to Debian libtool or anything else, they are
simply due to you having incompatible code lying around. Sorry.
:-(

--

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

attachment0 (196 bytes) Download Attachment