LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2010, 09:20 AM   #1
fqy222425
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
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
 
Old 12-29-2010, 10:28 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 733

Rep: Reputation: 142Reputation: 142
The format ‘%ld’ warning is superfluous.

Quote:
Originally Posted by fqy222425 View Post
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
The file /usr/include/unistd.h declares function pread() on line 385, which is different than how it's declared in parse_conf.c, line 3894.

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?
 
Old 01-14-2011, 06:13 AM   #3
BladeDemon
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
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.

Last edited by BladeDemon; 01-14-2011 at 06:19 AM.
 
Old 01-15-2011, 12:21 AM   #4
fqy222425
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by BladeDemon View Post
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.
thank you, the problem was resolved
 
Old 03-01-2011, 11:22 PM   #5
ram_s
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
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"
 
Old 03-02-2011, 06:05 AM   #6
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 733

Rep: Reputation: 142Reputation: 142
Try type off_t:
Code:
extern ssize_t pread(int, void *, size_t, off_t);
 
Old 03-02-2011, 12:32 PM   #7
ram_s
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Thank you!

extern ssize_t pread(int, void *, size_t, off_t); fixed the compile issues in FC13.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bsnl 3g in fedora13 RudraB Linux - Networking 1 12-24-2010 08:05 AM
network problem in fedora13 RudraB Linux - Networking 7 10-05-2010 08:28 AM
how to install pgplot in Fedora13 yba Fedora 1 08-19-2010 09:59 AM
[SOLVED] Fedora13 nfs problem jkim74 Fedora 2 07-26-2010 07:46 AM
cURL: Server has many IPs, how would I make a cURL script use those IPs to send data? guest Programming 0 04-11-2009 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration