curl-loader0.52 on fedora13
Hi i was trying to install curl-loader in fedora13, but then also it is showing an error below:
gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/batch.o batch.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/cl_alloc.o cl_alloc.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/client.o client.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/conf.o conf.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/environment.o environment.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/heap.o heap.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/ip_secondary.o ip_secondary.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/loader.o loader.c loader.c: In function ‘client_tracing_function’: loader.c:1236: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1240: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1250: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1265: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1273: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1292: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1302: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1317: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1333: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1346: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1361: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1373: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1410: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ loader.c:1418: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/loader_fsm.o loader_fsm.c loader_fsm.c: In function ‘handle_cctx_url_completion_timer’: loader_fsm.c:988: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’ gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/loader_hyper.o loader_hyper.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/loader_smooth.o loader_smooth.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/mpool.o mpool.c gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=20000 -D_FILE_OFFSET_BITS=64 -O0 -g -I. -I./inc -I/usr//include -c -o obj/parse_conf.o parse_conf.c parse_conf.c: In function ‘read_callback’: parse_conf.c:3894: error: conflicting types for ‘pread’ /usr/include/unistd.h:385: note: previous declaration of ‘pread’ was here make: *** [obj/parse_conf.o] Error 1 What is the problem with this? Can anyone please help?? Thanks Greesh |
The format ‘%ld’ warning is superfluous.
Quote:
I don't have that source code, so I don't know what parse_conf.c is doing with pread(). You could look at that file and maybe figure out a solution. If it's different by something trivial like a long vs an int, you could try changing the .c file to match the system header and recompiling. One curious thing is the switch -D_FILE_OFFSET_BITS=64. That affects how unistd.h declares it. Did you add that? Is there a way to get rid of it and try again? |
Yes, the problem in my case was that the definitions of pread didn't match.
I changed line 3894 in parse_conf.c like this: extern ssize_t pread(int, void*, size_t, long); and everything compiled fine. |
Quote:
|
Hi Guys,
I am trying to install curl-loader on fc13. I have changed the line 3894 in parse_conf.c like this: extern ssize_t pread(int, void*, size_t, long) Still not able to compile it. Please help me on this. "parse_conf.c: In function ‘read_callback’: parse_conf.c:3894: error: conflicting types for ‘pread’ /usr/include/unistd.h:385: note: previous declaration of ‘pread’ was here make: *** [obj/parse_conf.o] Error 1" |
Try type off_t:
Code:
extern ssize_t pread(int, void *, size_t, off_t); |
Thank you!
extern ssize_t pread(int, void *, size_t, off_t); fixed the compile issues in FC13. |
All times are GMT -5. The time now is 03:22 AM. |