Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211157 - app-office/gnucash 2.2.3 fails tests with LDFLAGS=--as-needed
Summary: app-office/gnucash 2.2.3 fails tests with LDFLAGS=--as-needed
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest minor (vote)
Assignee: Torsten Veller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-02-23 07:46 UTC by Hans de Graaff
Modified: 2008-03-03 18:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2008-02-23 07:46:12 UTC
app-office/gnucash-2.2.3 fails its tests:

x86_64-pc-linux-gnu-gcc -I../../../src -I../../../src/gnc-module -I../../../src/test-core -I../../../src/engine -I../../../src/app-utils -I../../../src/import-export -pthread -I../../../lib/libqof/qof -I../../../lib/libqof/qof -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -pipe -march=k8 -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -Wl,--as-needed -g -o .libs/test-import-parse test-import-parse.o -pthread -Wl,--export-dynamic  ../../../src/gnc-module/.libs/libgnc-module.so ../../../src/test-core/.libs/libgncmod-test.a /var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/gnc-module/.libs/libgnc-module.so /var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/core-utils/.libs/libgnc-core-utils.so -L/usr/lib64 /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libxml2.so /usr/lib64/libglitz-glx.so /usr/lib64/libglitz.so /usr/lib64/libGL.so /usr/lib64/libXext.so /usr/lib64/libpng12.so -lz /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libguile.so /usr/lib64/libgmp.so -lcrypt /usr/lib64/libltdl.so -lpthread ../.libs/libgncmod-generic-import.so ../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so ../../../src/engine/.libs/libgncmod-engine.so /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so ../../../lib/libqof/qof/.libs/libgnc-qof.so /usr/lib64/libpopt.so -lm  -Wl,--rpath -Wl,/usr/lib64/gnucash
../.libs/libgncmod-generic-import.so: undefined reference to `gnc_get_current_root_account'
../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so: undefined reference to `gnc_sx_instance_model_remove_sx_instances'
../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so: undefined reference to `gnc_get_default_directory'
../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so: undefined reference to `gnc_set_default_directory'
../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so: undefined reference to `gnc_sx_instance_model_update_sx_instances'
collect2: ld returned 1 exit status
make[5]: *** [test-import-parse] Error 1
make[5]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/import-export/test'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/import-export/test'


I'm using --as-needed, perhaps this problem is related to that?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-23 08:14:22 UTC
(In reply to comment #0)
> I'm using --as-needed, perhaps this problem is related to that?

Try without and see? *g* 

Comment 2 Hans de Graaff gentoo-dev Security 2008-02-23 14:29:12 UTC
Removing --as-needed from my LDFLAGS fixes the issue. Strangely enough I can't reproduce the problem anymore after that, even after adding back --as-needed. Weird.
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2008-03-03 09:39:24 UTC
I am using as-needed too but haven't seen this failure.
I don't have time to spend on this now.
Comment 4 Hans de Graaff gentoo-dev Security 2008-03-03 18:56:03 UTC
As I can't reproduce it anymore either it will be quite hard to fix, then. :-)
Let's close this. If there really is a bug here I'm sure I'll run into it on the next update.