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 352239 - gnome-panel failing to build because of libXau unresolved symbols
gnome-panel failing to build because of libXau unresolved symbols
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
git master
Other All
: Normal major
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-21 10:19 UTC by Matt Keenan (IRC:MattMan)
Modified: 2006-10-08 13:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Add -lXau to X_LIBS in configure.in (252 bytes, patch)
2006-08-21 10:20 UTC, Matt Keenan (IRC:MattMan)
none Details | Review
Add -lXau to X_LIBS in configure.in (259 bytes, patch)
2006-08-23 10:03 UTC, Matt Keenan (IRC:MattMan)
committed Details | Review

Description Matt Keenan (IRC:MattMan) 2006-08-21 10:19:43 UTC
Please describe the problem:
When compiling gnome-panel on Solaris, it is failing because of libXau unresolved symbols. It was not failing before on Solaris symbols for libXau were included in
libX11, but have now been removed.

panel-gdm.c explicitly calls libXau API : 
   XauFileName()
   XauReadAuth()
   XauDisposeAuth()

And really should include -lXau on linker line

Steps to reproduce:
1. Try to build gnome-panel on Solaris Express.

Fails for panel-gdm.o during linking of gnome-panel for symbols :

   XauFileName()
   XauReadAuth()
   XauDisposeAuth()




Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Solution is simply to amend gnome-panel/gnome-panel/Makefile.am
and include -lXau on linker line.
Comment 1 Matt Keenan (IRC:MattMan) 2006-08-21 10:20:52 UTC
Created attachment 71290 [details] [review]
Add -lXau to X_LIBS in configure.in
Comment 2 Vincent Untz 2006-08-22 07:14:39 UTC
Matt: does X on solaris provide pkg-config files? I'd very much prefer to have this in configure.in.
Comment 3 Matt Keenan (IRC:MattMan) 2006-08-23 09:53:46 UTC
Comment on attachment 71290 [details] [review]
Add -lXau to X_LIBS in configure.in

Index: configure.in
===================================================================
RCS file: /cvs/gnome/gnome-panel/configure.in,v
retrieving revision 1.672
diff -r1.672 configure.in
198a199
>     AC_CHECK_LIB(Xau, XauFileName, [X_LIBS="$X_LIBS -lXau"])
Comment 4 Matt Keenan (IRC:MattMan) 2006-08-23 10:03:52 UTC
Created attachment 71445 [details] [review]
Add -lXau to X_LIBS in configure.in

Vincent there is not pc file for Xau on solaris, Attached a patch that will add -lXau via configure.in.
Comment 5 Vincent Untz 2006-08-23 14:07:58 UTC
I'll commit something this asap. Would be nice if you could push to get pc files ;-)
Comment 6 Matt Keenan (IRC:MattMan) 2006-08-23 15:12:16 UTC
Thanks vincent, I'll push the xserver team here to try and go down that very route. e.g. pc files.
Comment 7 André Klapper 2006-10-07 15:44:34 UTC
vincent: *ping* - can this be committed? :-)
Comment 8 Vincent Untz 2006-10-08 13:08:59 UTC
Thanks for the ping ;-)