[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] make test/test_bindings failed, "‘CURLOPT_MUTE’"



Your version of curl is recent, and they removed that option. Just delete the 
line in test_bindings.c that has "curl_easy_setopt(curl, CURLOPT_MUTE, 1)".

-anil

On 30 Nov 2009, at 14:16, Johnny Huang wrote:

> hi,
>   I have successed in making in /xen3.3.1/tools/libxen, But when I tried 
> "make test/test_bindings", It reports a error like this:
> "test/test_bindings.c:102: error: ‘CURLOPT_MUTE’ undeclared (first use in 
> this function)", How should I solve this problem?
> 
> The whole information it reports is as follows:
> gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall 
> -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  
> -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Iinclude 
> -I/usr/include/libxml2  -fPIC -c -o test/test_bindings.o test/test_bindings.c
> test/test_bindings.c:33: warning: function declaration isn’t a prototype
> test/test_bindings.c: In function ‘call_func’:
> test/test_bindings.c:90: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:95: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:102: error: ‘CURLOPT_MUTE’ undeclared (first use in this 
> function)
> test/test_bindings.c:102: error: (Each undeclared identifier is reported only 
> once
> test/test_bindings.c:102: error: for each function it appears in.)
> test/test_bindings.c:102: warning: type defaults to ‘int’ in declaration of 
> ‘_curl_opt’
> test/test_bindings.c:109: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c: In function ‘main’:
> test/test_bindings.c:136: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:152: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:171: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:180: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:189: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:199: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:210: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:222: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:235: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:249: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:265: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:281: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:298: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:387: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c: In function ‘create_new_vm’:
> test/test_bindings.c:423: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:435: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:474: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:484: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:511: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:540: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:561: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c: In function ‘print_session_info’:
> test/test_bindings.c:668: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:673: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c: In function ‘print_vm_metrics’:
> test/test_bindings.c:744: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:752: warning: ISO C90 forbids mixed declarations and code
> test/test_bindings.c:788: warning: ISO C90 forbids mixed declarations and code
> make: *** [test/test_bindings.o] Error 1
> 
> 
>   Thanks a lot!
> 
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.