[libvirt] Fix for newer yajl

Brecht Sanders brecht at sanders.org
Wed Jul 27 08:24:05 UTC 2011


>> Hi,
>> I just notices that compiling libvirt against yail version 2 there
>> were some errors, mainly because yajl_parser_config is no longer
>> used.
> What version of libvirt is your patch against ?  The latest releases
> already have fixed compatibility with YAJL 2, so I'm assuming you have
> an old release ?
>
> Regards,
> Daniel
Hmm, you're right. My bad.
I forgot I was compiling 0.9.0 because I had other issues compiling 
later versions under MinGW/MSYS on Windows.
In case you were not aware of this I'm including the end of my 0.9.3 
output below.

libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. 
-I../gnulib/lib -I../gnulib/lib -I../include -I../src/util -I../include 
-DIN_LIBVIRT -I/custombuilt32/include/libxml2 -Wall -W -Wformat-y2k 
-Wformat-security -Winit-self -Wmissing-include-dirs -Wunused 
-Wunknown-pragmas -Wstrict-aliasing -Wshadow -Wpointer-arith 
-Wbad-function-cast -Wcast-align -Wwrite-strings -Wlogical-op 
-Waggregate-return -Wstrict-prototypes -Wold-style-definition 
-Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn 
-Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Winline 
-Winvalid-pch -Wvolatile-register-var -Wdisabled-optimization 
-Wbuiltin-macro-redefined -Wmudflap -Wpacked-bitfield-compat -Wsync-nand 
-Wattributes -Wcoverage-mismatch -Wmultichar 
-Wno-missing-field-initializers -Wno-sign-compare -Wjump-misses-init 
-Wframe-larger-than=4096 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fasynchronous-unwind-tables -fdiagnostics-show-option -funit-at-a-time 
-Drestrict=__restrict -DWSAAPI -Dsiginfo_t=int -MT 
libvirt_net_rpc_server_la-virnetserver.lo -MD -MP -MF 
.deps/libvirt_net_rpc_server_la-virnetserver.Tpo -c rpc/virnetserver.c  
-DDLL_EXPORT -DPIC -o .libs/libvirt_net_rpc_server_la-virnetserver.o
rpc/virnetserver.c: In function 'virNetServerSignalHandler':
rpc/virnetserver.c:392:12: error: request for member 'si_signo' in 
something not a structure or union
rpc/virnetserver.c: In function 'virNetServerSignalEvent':
rpc/virnetserver.c:423:20: error: request for member 'si_signo' in 
something not a structure or union
rpc/virnetserver.c:432:5: error: request for member 'si_signo' in 
something not a structure or union
make[3]: *** [libvirt_net_rpc_server_la-virnetserver.lo] Error 1
make[3]: Leaving directory `/home/win32/libvirt-0.9.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/win32/libvirt-0.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/win32/libvirt-0.9.3'
make: *** [all] Error 2




More information about the libvir-list mailing list