GNOME Bugzilla – Bug 724276
gdm_session_worker_LDFLAGS causes build failure
Last modified: 2014-02-25 21:51:26 UTC
I get a lot of this error when trying to build gdm in a JHBuild prefix:
gdm-session.o: In function `gdm_session_class_intern_init':
/home/lantw44/gnome/source/gdm/daemon/gdm-session.c:163: undefined reference to `g_type_class_adjust_private_offset'
This is caused by the usage of LDFLAGS in daemon/Makefile.am. I have two glib installed on the system, one is from the package manager and the other is from JHBuild. The LDFLAGS causes the old version (installed using package manager, not JHBuild) to be used, so the new symbol cannot be found.
If I move all LIBS to LDADD, gdm-session-worker will be successfully built.
LDFLAGS is also used to build other things, is it still required or we can move them to LDADD?
*** This bug has been marked as a duplicate of bug 724283 ***