* Re: [Xen-users] Fwd: Compilation of Xen 4.2 Utils breaks on NetBSD 6
[not found] <50BE46C0.8020406@laukamp.me>
@ 2012-12-04 19:34 ` Lukas Laukamp
0 siblings, 0 replies; only message in thread
From: Lukas Laukamp @ 2012-12-04 19:34 UTC (permalink / raw)
To: xen-users; +Cc: port-xen, xen-devel@lists.xen.org
[-- Attachment #1.1: Type: text/plain, Size: 10017 bytes --]
-------- Original-Nachricht --------
Betreff: Re: [Xen-users] Fwd: Compilation of Xen 4.2 Utils breaks on
NetBSD 6
Datum: Tue, 04 Dec 2012 19:53:52 +0100
Von: Lukas Laukamp <lukas@laukamp.me>
An: Roger Pau Monné <roger.pau@citrix.com>
Kopie (CC): xen-users@lists.xen.org <xen-users@lists.xen.org>
Am 04.12.2012 17:30, schrieb Roger Pau Monné:
> On 04/12/12 15:43, Lukas Laukamp wrote:
>> Am 04.12.2012 15:10, schrieb Roger Pau Monné:
>>> On 04/12/12 14:45, Lukas Laukamp wrote:
>>>> Hello all,
>>>>
>>>> because there are still problems to build Xen 4.2 on NetBSD (there was
>>>> also another thread on the port-xen list) I forward this message to get
>>>> a solution for the problem. The complete output of my build is in a log
>>>> file in the attachment.
>>>>
>>>> I used this commands for compilation:
>>>>
>>>> ./configure PYTHON=/usr/pkg/bin/python2.7 APPEND_INCLUDES=/usr/pkg/include APPEND_LIB=/usr/pkg/lib --prefix=/usr/xen42
>>>> gmake PYTHON=/usr/pkg/bin/python2.7 xen
>>>> gmake tools
>>>>
>>>> I took the commans from this wiki article: http://wiki.xen.org/wiki/Compiling_Xen_From_Source_on_NetBSD
>>>>
>>>> The build error appears in the tools target in libxl.
>>>>
>>>> This is the last mail from port-xen list related to this theme:
>>>>
>>>> On 30/11/12 21:16, Mike Bowie wrote:
>>>>
>>>>> On 11/30/12 12:13 PM, Jeff Rizzo wrote:
>>>>>> Anyone up for creating a pkgsrc package for xen 4.2? There's clearly a
>>>>>> lot to be done, and my pkgsrc-fu is not all that great.
>>>>> I could be up for that... might not be until next week, but if the build
>>>>> steps all work out, I should be able to cobble something together into
>>>>> pkgsrc/wip. (Which would motivate me to get a box onto 4.2 also...
>>>>> double win.)
>>>> I would definetely help, this will probably require some Makefile
>>>> changes, which I think should be submitted upstream.
>>>>
>>>> Is the problem solvable without big changes in the build system to get 4.2 running on a NetBSD 6 box? Or isn't it able to compile th toolstack on NetBSD for 4.2 without big changes?
>>>>
>>>>
>>>>
>>>> -------- Original-Nachricht --------
>>>> Betreff: Compilation of Xen 4.2 Utils breaks on NetBSD 6
>>>> Datum: Mon, 3 Dec 2012 17:19:16 +0000
>>>> Von: Miguel Clara<miguelmclara@gmail.com>
>>>> An: port-xen@netbsd.org, lukas@laukamp.me
>>>>
>>>>
>>>>
>>>> Lukas Laukamp<lukas<at> laukamp.me<http://laukamp.me>> writes:
>>>>
>>>>> Hey all,
>>>>>
>>>>> I trying to compile Xen 4.2 on NetBSD 6. The hypervisor it self compiled
>>>>> fine but the compilation of the utils breaks with this error:
>>>>>
>>>>> In file included from xl_cmdimpl.c:40:0:
>>>>> libxl_json.h:18:27: fatal error: yajl/yajl_gen.h: No such file or
>>>> directory
>>>>> compilation terminated.
>>>>> gmake[3]: *** [xl_cmdimpl.o] Error 1
>>>>> gmake[3]: Leaving directory `/root/xen-4.2.0/tools/libxl'
>>>>> gmake[2]: *** [subdir-install-libxl] Error 2
>>>>> gmake[2]: Leaving directory `/root/xen-4.2.0/tools'
>>>>> gmake[1]: *** [subdirs-install] Error 2
>>>>> gmake[1]: Leaving directory `/root/xen-4.2.0/tools'
>>>>> gmake: *** [install-tools] Error 2
>>>>> testdom0#
>>>>>
>>>>> I passed the needed options to the configure script so that it searches
>>>>> in /usr/pkg/include/ and /usr/pkg/lib and so on. The file which is
>>>>> declaired to don't exist, exists in /usr/pkg/include/yajl/ so I don't
>>>>> understand why the file could not be found.
>>>>>
>>>>> Hope that someone could help me.
>>>>>
>>>>> Best Regards
>>>>>
>>>>>
>>>> I'm trying to build following the guide at:
>>>> http://wiki.xen.org/wiki/Compiling_Xen_From_Source_on_NetBSD
>>>>
>>>> All works fine until I try to build "tools"
>>>>
>>>> gmake[3]: Entering directory `/home/xen/xen-4.2.0/tools/libxl' │··········
>>>> rm -f _paths.h.tmp.tmp; echo "SBINDIR=\"/usr/pkg/sbin\""
>>>>>> _paths.h.tmp.tmp; echo "BINDIR=\"/usr/pkg/bin\"">>_paths.h.tmp.tmp;
>>>> echo "LIBEXEC=\"/usr/pkg/l│··········
>>>> ibexec\"">>_paths.h.tmp.tmp; echo "LIBDIR=\"/usr/pkg/lib\""
>>>>>> _paths.h.tmp.tmp; echo "SHAREDIR=\"/usr/pkg/share\""
>>>>>> _paths.h.tmp.tmp; echo "PRIVATE_BIND│··········
>>>> IR=\"/usr/pkg/bin\"">>_paths.h.tmp.tmp; echo
>>>> "XENFIRMWAREDIR=\"/usr/pkg/lib/xen/boot\"">>_paths.h.tmp.tmp; echo
>>>> "XEN_CONFIG_DIR=\"/usr/pkg/etc/xen\"">>_│··········
>>>> paths.h.tmp.tmp; echo "XEN_SCRIPT_DIR=\"/usr/pkg/etc/xen/scripts\""
>>>>>> _paths.h.tmp.tmp; echo "XEN_LOCK_DIR=\"/usr/pkg/var/lib\""
>>>>>> _paths.h.tmp.tmp; echo │··········
>>>> "XEN_RUN_DIR=\"/usr/pkg/var/run/xen\"">>_paths.h.tmp.tmp; echo
>>>> "XEN_PAGING_DIR=\"/usr/pkg/var/lib/xen/xenpaging\"">>_paths.h.tmp.tmp;
>>>> if ! cmp -s _path│··········
>>>> s.h.tmp.tmp _paths.h.tmp; then mv -f _paths.h.tmp.tmp _paths.h.tmp; else
>>>> rm -f _paths.h.tmp.tmp; fi │··········
>>>> sed -e "s/\([^=]*\)=\(.*\)/#define \1 \2/g" _paths.h.tmp>_paths.h.2.tmp
>>>> │··········
>>>> rm -f _paths.h.tmp │··········
>>>> if ! cmp -s _paths.h.2.tmp _paths.h; then mv -f _paths.h.2.tmp _paths.h;
>>>> else rm -f _paths.h.2.tmp; fi │··········
>>>> gcc -pthread -o testidl testidl.o libxlutil.so
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so
>>>> -Wl,-rpath-link=/home/miguelc│··········
>>>> /xen-data/xen-4.2.0/tools/libxl/../../tools/libxc
>>>> -Wl,-rpath-link=/home/xen/xen-4.2.0/tools/libxl/../../tools/xenstore
>>>> /home/xen/x│··········
>>>> en-4.2.0/tools/libxl/../../tools/libxc/libxenctrl.so -L/usr/pkg/lib
>>>> │··········
>>>> ld: warning: libyajl.so.2, needed by
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so, not
>>>> found (try using -rpath or -rpath-lin│··········
>>>> k) │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_parse' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_complete_parse' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_null' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_array_open' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_string' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_map_close' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_get_buf' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_free' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_alloc' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_array_close' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_map_open' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_get_error' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_free_error' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_integer' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_alloc' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_free' │··········
>>>> /home/xen/xen-4.2.0/tools/libxl/../../tools/libxl/libxenlight.so:
>>>> undefined reference to `yajl_gen_bool' │··········
>>>> gmake[3]: *** [testidl] Error 1 │··········
>>>> gmake[3]: Leaving directory `/home/xen/xen-4.2.0/tools/libxl' │··········
>>>> gmake[2]: *** [subdir-install-libxl] Error 2 │··········
>>>> gmake[2]: Leaving directory `/home/xen/xen-4.2.0/tools' │··········
>>>> gmake[1]: *** [subdirs-install] Error 2 │··········
>>>> gmake[1]: Leaving directory `/home/xen/xen-4.2.0/tools' │··········
>>>> gmake: *** [install-tools] Error 2
>>>>
>>>>
>>>> I'm using yajl version 2.... could this be the problem? Is there any patch?
>>> yajl 2 should be supported, since I guess you installed yajl from
>>> pkgsrc, could you try setting LD_LIBRARY_PATH=/usr/pkg/lib before compiling?
>>>
>>> See the following message from Riz:
>>> http://mail-index.netbsd.org/port-xen/2012/11/30/msg007740.html
>>>
>>> Indeed this should be looked at and fixed.
>>>
>>>
>>> _______________________________________________
>>> Xen-users mailing list
>>> Xen-users@lists.xen.org
>>> http://lists.xen.org/xen-users
>> Hello,
>>
>> when I assigne LD_LIBRARY_PATH=/usr/pkg/lib to gmake when trying to
>> compile tools target libxl gets compiled. But later it breaks when
>> building the filesystem structure for the tools-install target because
>> it can't find pygrub. The complete output of the build process is in the
>> attachment.
> Could you remove the dist folder and try again? AFAIK it works for me
> without problems.
>
Hello,
I deleted the dist folder and now everything compiles fine. I have
stored xen in /usr/xen42/ and added this directorys to the PATH variable
now for example xl can't find the libxlutil, the library exists in
/usr/xen42/lib to what is this problem related? Got xl compiled wrong or
is something else wrong?
Best Regards
[-- Attachment #1.2: Type: text/html, Size: 14451 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-04 19:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <50BE46C0.8020406@laukamp.me>
2012-12-04 19:34 ` [Xen-users] Fwd: Compilation of Xen 4.2 Utils breaks on NetBSD 6 Lukas Laukamp
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).