After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 536299 - Fix two underlinking issues
Fix two underlinking issues
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks: backport
 
 
Reported: 2008-06-02 18:42 UTC by freggy1
Modified: 2018-06-29 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix underlinking in the file back-end (485 bytes, patch)
2008-06-02 18:44 UTC, freggy1
accepted-commit_now Details | Review
Patch to fix underlinking in the gnome-utils directory (363 bytes, patch)
2008-06-02 18:44 UTC, freggy1
needs-work Details | Review
Add ZLIB_LIBS (1.47 KB, patch)
2008-09-21 15:13 UTC, Andreas Köhler
committed Details | Review
Conditionally add -lX11 to gnome-utils (907 bytes, patch)
2008-09-30 22:57 UTC, Andreas Köhler
committed Details | Review

Description freggy1 2008-06-02 18:42:03 UTC
Mandriva is now using -Wl,--no-undefined as LDFLAGS. With this option, we encoutered some underlinking issues in gnucash (http://wiki.mandriva.com/en/Underlinking)

Attached are two patches which made gnucash build correctly with these LDFLAGS.
Comment 1 freggy1 2008-06-02 18:44:16 UTC
Created attachment 111987 [details] [review]
Patch to fix underlinking in the file back-end
Comment 2 freggy1 2008-06-02 18:44:43 UTC
Created attachment 111988 [details] [review]
Patch to fix underlinking in the gnome-utils directory
Comment 3 Andreas Köhler 2008-06-02 19:38:14 UTC
Thanks for the report!  Hey, only two incidents, I think that is quite good :-D

> Created an attachment (id=111987) [edit]
> Patch to fix underlinking in the file back-end

Looks correct.

> Created an attachment (id=111988) [edit]
> Patch to fix underlinking in the gnome-utils directory

I doubt that will work on Windows.
If you have the time, please make up a patch that uses an AM_CONDITIONAL for HAVE_X11_XLIB_H and if/endif in Makefile.am.  Thanks!
Comment 4 Derek Atkins 2008-06-02 19:50:31 UTC
>> Created an attachment (id=111987) [edit]
>> Patch to fix underlinking in the file back-end
>
> Looks correct.

Actually, it should probably use $(ZLIB_LIBS) and not -lz -- but we don't even check for zlib in configure!  We should do that.
Comment 5 Andreas Köhler 2008-09-21 15:13:08 UTC
Created attachment 119101 [details] [review]
Add ZLIB_LIBS

Frederik, does this patch work for you?
Comment 6 Andreas Köhler 2008-09-30 22:57:25 UTC
Created attachment 119691 [details] [review]
Conditionally add -lX11 to gnome-utils

This one is not tested yet, anyway, Frederik and Derek, would that work for you?
Comment 7 Derek Atkins 2008-10-01 12:36:39 UTC
Not sure why you're asking me, but it looks correct by inspection.  I question the original report and wonder if it's really OUR problem or a problem with a dependent library?
Comment 8 Andreas Köhler 2008-10-01 20:46:14 UTC
I am asking you because I thought you might want to have a check whether we can actually link with -lX11 and include -lX11 in yet another variable $(X11_LIBS).
And no, in src/gnome-utils/gnc-gnome-utils.c, we conditionally use XSetErrorHandler(3) to log x errors with the glib logging system.  Actually, I am not even sure we really need that.
Comment 9 Christian Stimming 2008-11-07 21:24:02 UTC
Applied the first as r17683, requesting back-port.

As for the other: There is a simple explanation for why "only two" issues showed up in Mandriva: Windows compiled with this option from the very beginning, which meant Andi and I had to fix all those issues already 2 years ago. The last missing libraries are those that appear only on Unix.

For that reason, we could just as well add the -lX11 conditional on being not on Windows, but I have no clear opinion right now.
Comment 10 Christian Stimming 2008-11-26 14:22:48 UTC
Committed the second as well. r17723.
Comment 11 Christian Stimming 2008-11-27 12:30:09 UTC
2.2-branch, r17740 and r17741.
Comment 12 John Ralls 2018-06-29 22:05:10 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=536299. Please update any external references or bookmarks.