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 616216 - glib compile from remote directory fails
glib compile from remote directory fails
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 617756 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-04-19 20:20 UTC by Paul Smith
Modified: 2010-05-12 21:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix "remote" build error in glib (475 bytes, patch)
2010-04-19 20:20 UTC, Paul Smith
none Details | Review

Description Paul Smith 2010-04-19 20:20:09 UTC
Created attachment 159110 [details] [review]
Patch to fix "remote" build error in glib

Trying to compile glib from outside the source directory fails, with this error:


ccache gcc -DHAVE_CONFIG_H -I. -I../../../../glib/gthread/tests -I../.. -g -I../../../../glib -I../../../../glib/glib -DG_ENABLE_DEBUG  -DG_DISABLE_SINGLE_INCLUDES -pthread -DTEST_EMULATED_FUTEX -g -Wall -MT 1bit_emufutex-1bit-mutex.o -MD -MP -MF .deps/1bit_emufutex-1bit-mutex.Tpo -c -o 1bit_emufutex-1bit-mutex.o `test -f '1bit-mutex.c' || echo '../../../../glib/gthread/tests/'`1bit-mutex.c
In file included from ../../../../glib/gthread/tests/1bit-mutex.c:42:
../../../../glib/glib/gbitlock.c:32:20: error: galias.h: No such file or directory
../../../../glib/glib/gbitlock.c:300:23: error: galiasdef.c: No such file or directory
make[4]: *** [1bit_emufutex-1bit-mutex.o] Error 1
make[4]: Leaving directory `/home/src/evo/evo-master/obj/glib/gthread/tests'
make[3]: *** [all-recursive] Error 1


This is because galias.h and galiasdef.c are created as part of the build and live in the object directory, not the source directory.
Comment 1 Paul Smith 2010-04-23 16:52:19 UTC
Hi all; I noticed this bug exists in the glib-2.24 branch as well;  can it be fixed there?
Comment 2 Javier Jardón (IRC: jjardon) 2010-05-12 20:58:44 UTC
*** Bug 617756 has been marked as a duplicate of this bug. ***
Comment 3 Javier Jardón (IRC: jjardon) 2010-05-12 21:03:39 UTC
Patch applied to 2.24 branch too in commit 2e43d1e614c328cf6514282307e06dfb63ca9ed7