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.
     
    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?
      
      Thanks