Thread: Unable to compile on Ubuntu 10.10
Status: Alpha
Brought to you by:
coroberti
From: Jan K. <jk...@gm...> - 2010-12-22 13:59:07
|
Hello people, when I run make in curl-loader's directory, I end up with the following message: 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 I have some idea what it means, but how do I work it around? Thx for any assistance. Mahy |
From: Robert I. <cor...@gm...> - 2010-12-22 14:20:07
|
Hi Jan, On Wed, Dec 22, 2010 at 3:58 PM, Jan Kotuc <jk...@gm...> wrote: > Hello people, > > when I run make in curl-loader's directory, I end up with the following > message: > > 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 > > I have some idea what it means, but how do I work it around? Thx for any > assistance. > > Mahy > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > curl-loader-devel mailing list > cur...@li... > https://lists.sourceforge.net/lists/listinfo/curl-loader-devel > 1. Rename pread to e.g. prep_read. 2, Recompile, make cleanall; make. 3. Submit patch, Tnx -- Regards, Robert Iakobashvili, Ph.D. Home: http://www.ghotit.com Blog: http://dyslexia-blog.ghotit.com Twitter: http://twitter.com/ghotit Facebook: http://facebook.com/ghotit ...................................................................... Ghotit Dyslexia Assistive technology that understands you ...................................................................... |
From: Jan K. <jk...@gm...> - 2010-12-22 17:12:26
|
Thanks a lot, renaming fixed this one issue and compilation went far further, but still did not finish successfully. When the compilation and make is seemingly over, it displays this: <snipped> libevent-1.4.13-stable/compat/sys/_libevent_time.h libevent-1.4.13-stable/compat/sys/queue.h cd /home/janci/apps/curl-loader/build/libevent/libevent-1.4.13-stable; patch -p1 < ../../../patches/libevent-nevent.patch; ./configure --prefix /home/janci/apps/curl-loader/build/libevent \ CFLAGS=" -g -O0" patching file devpoll.c Hunk #1 succeeded at 85 with fuzz 1 (offset -3 lines). patching file epoll.c Hunk #1 FAILED at 97. 1 out of 1 hunk FAILED -- saving rejects to file epoll.c.rej checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes ... ...and then the whole process reiterates and starts checking and building from scratch *over and over again* until i stop it with Ctrl+C Apparently there's some patch gone wrong. Any ideas of fixing it? Has anybody succeeded in building curl-loader on Ubuntu? Thx for your help. Mahy On 12/22/2010 03:19 PM, Robert Iakobashvili wrote: > Hi Jan, > > > 1. Rename pread to e.g. prep_read. > 2, Recompile, make cleanall; make. > 3. Submit patch, > > Tnx > -- |
From: Robert I. <cor...@gm...> - 2010-12-22 17:19:37
|
Hi, On Wed, Dec 22, 2010 at 7:11 PM, Jan Kotuc <jk...@gm...> wrote: > Thanks a lot, renaming fixed this one issue and compilation went far > further, but still did not finish successfully. When the compilation and > make is seemingly over, it displays this: > > <snipped> > > libevent-1.4.13-stable/compat/sys/_libevent_time.h > libevent-1.4.13-stable/compat/sys/queue.h > cd /home/janci/apps/curl-loader/build/libevent/libevent-1.4.13-stable; > patch -p1 < ../../../patches/libevent-nevent.patch; ./configure --prefix > /home/janci/apps/curl-loader/build/libevent \ > CFLAGS=" -g -O0" > patching file devpoll.c > Hunk #1 succeeded at 85 with fuzz 1 (offset -3 lines). > patching file epoll.c > Hunk #1 FAILED at 97. > 1 out of 1 hunk FAILED -- saving rejects to file epoll.c.rej > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > ... > > ...and then the whole process reiterates and starts checking and > building from scratch *over and over again* until i stop it with Ctrl+C > > Apparently there's some patch gone wrong. Any ideas of fixing it? Has > anybody succeeded in building curl-loader on Ubuntu? Thx for your help. > > Sounds like Ubuntu developers have broke many things. delete in Makefile patch -p1 < ../../../patches/libevent-nevent.patch; and re-compile. > Mahy > > On 12/22/2010 03:19 PM, Robert Iakobashvili wrote: > > Hi Jan, > > > > > > 1. Rename pread to e.g. prep_read. > > 2, Recompile, make cleanall; make. > > 3. Submit patch, > > > > Tnx > > -- > > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > curl-loader-devel mailing list > cur...@li... > https://lists.sourceforge.net/lists/listinfo/curl-loader-devel > -- Regards, Robert Iakobashvili, Ph.D. Home: http://www.ghotit.com Blog: http://dyslexia-blog.ghotit.com Twitter: http://twitter.com/ghotit Facebook: http://facebook.com/ghotit ...................................................................... Ghotit Dyslexia Assistive technology that understands you ...................................................................... |
From: Jan K. <jk...@gm...> - 2010-12-22 19:53:20
|
Thanks, it looks like the renaming from "pread" to "mypread" didn't work: In function `read_callback': /home/janci/apps/curl-loader/parse_conf.c:3905: undefined reference to `mypread' collect2: ld returned 1 exit status make: *** [curl-loader] Error 1 Should I rename some header file as well? I scanned through all files in the build directory and there's no other relevant occurence of "pread"... :-/ Mahy |
From: Jan K. <jk...@gm...> - 2010-12-22 20:03:37
|
I retract my last post. This time, i changed the line 3905 back to "pread", while keeping "mypread" on the line 3894. And I added back the patch you suggested to remove. It doesn't work as it should but doesn't block the build. Anyway curl-loader compiled! :) Very likely I'll post some more, because I'm trying to integrate curl-loader with continuous integration tools... Mahy On 12/22/2010 08:52 PM, Jan Kotuc wrote: > Thanks, it looks like the renaming from "pread" to "mypread" didn't work: > > In function `read_callback': > /home/janci/apps/curl-loader/parse_conf.c:3905: undefined reference to > `mypread' > collect2: ld returned 1 exit status > make: *** [curl-loader] Error 1 > > Should I rename some header file as well? I scanned through all files in > the build directory and there's no other relevant occurence of > "pread"... :-/ > > Mahy |