xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* libxenstore.so Makefile dependency issue
@ 2012-02-20 19:26 Olaf Hering
  2012-02-20 19:54 ` Olaf Hering
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Olaf Hering @ 2012-02-20 19:26 UTC (permalink / raw)
  To: xen-devel


This is the second time I run into this linking issue. A few days ago it
happend with a make -j 4 or 8 during automated rpm package build. Now it
happend with a fresh tree. My local system is openSuSE 11.4 with make
3.82, the failed automated build was either openSUSE 11.4 or 12.1.

For some reason the libxenstore.so symlink is created after
init-xenstore-domain is about to be linked. The ln command is not
visible in this output, I saw the ln invocation in the rpm build log.

Hmm, and for some reason the symlink was not created anyway in my local
build. A second make run worked ok, libxenstore.so was created.  It
looks like I can reproduce it by running make clean in tools/xenstore.

Looking at the Makefile, init-xenstore-domain depends on LIBXENSTORE,
and libxenstore.so is also a target. So its not clear to me how make can
miss that, or how the dependencies should be listed.

Any idea whats going on here?

Olaf

...
gcc  -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement   -D__XEN_TOOLS__ -MMD -MF .xenstored_posix.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -Werror -I. -I/work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/libxc -I/work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/include  -c -o xenstored_posix.o xenstored_posix.c
gcc  -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement   -D__XEN_TOOLS__ -MMD -MF .init-xenstore-domain.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -Werror -I. -I/work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/libxc -I/work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/include -I/work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/libxc -I/work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/include  -c -o init-xenstore-domain.o init-xenstore-domain.c
gcc     -Wl,-soname -Wl,libxenstore.so.3.0 -shared -o libxenstore.so.3.0.1 xs.opic xs_lib.opic  -lpthread
ar rcs libxenstore.a xs.o xs_lib.o
gcc     xs_tdb_dump.o utils.o tdb.o talloc.o -o xs_tdb_dump
gcc     xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored_transaction.o xs_lib.o talloc.o utils.o tdb.o hashtable.o xenstored_linux.o xenstored_posix.o /work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/libxc/libxenctrl.so  -o xenstored
gcc     init-xenstore-domain.o libxenstore.so /work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/libxc/libxenctrl.so /work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/libxc/libxenguest.so /work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/xenstore/libxenstore.so -o init-xenstore-domain
gcc: libxenstore.so: Datei oder Verzeichnis nicht gefunden
gcc: /work/xen/xendebug/xen-unstable.hg/tools/xenstore/../../tools/xenstore/libxenstore.so: Datei oder Verzeichnis nicht gefunden
make[3]: *** [init-xenstore-domain] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory `/work/xen/xendebug/xen-unstable.hg/tools/xenstore'
make[2]: *** [subdir-install-xenstore] Fehler 2
make[2]: Leaving directory `/work/xen/xendebug/xen-unstable.hg/tools'
make[1]: *** [subdirs-install] Fehler 2
make[1]: Leaving directory `/work/xen/xendebug/xen-unstable.hg/tools'
make: *** [install-tools] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-02-21 22:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 19:26 libxenstore.so Makefile dependency issue Olaf Hering
2012-02-20 19:54 ` Olaf Hering
2012-02-21 11:21 ` Ian Campbell
2012-02-21 14:34   ` Olaf Hering
2012-02-21 14:49   ` Olaf Hering
2012-02-21 18:24 ` Ian Jackson
2012-02-21 18:30   ` Olaf Hering
2012-02-21 18:33     ` Ian Jackson
2012-02-21 22:01       ` Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).