Re: [libposix-development] bzip2
Status: Pre-Alpha
Brought to you by:
hdante
From: Henrique A. <hd...@gm...> - 2009-08-01 18:20:15
|
Fixed for x86_64 too, which means that we have a malloc. :-D 2009/8/1 Henrique Almeida <hd...@gm...>: > Simple test is working perfectly on linux and freebsd x86. :-) > > 2009/8/1 Henrique Almeida <hd...@gm...>: >> I've fixed compilation in all platforms. Tests are still missing. >> >> 2009/8/1 John Haitas <jh...@gm...>: >>> it seems as if mmap isn't defined for 64bit >>> >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c: In function ‘mmap’: >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:62: error: >>> ‘LINUX_SYS_mmap2’ undeclared (first use in this function) >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:62: error: >>> (Each undeclared identifier is reported only once >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:62: error: >>> for each function it appears in.) >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:63: >>> warning: cast to pointer from integer of different size >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:63: >>> warning: cast to pointer from integer of different size >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:64: >>> warning: cast to pointer from integer of different size >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c: In >>> function ‘system_open’: >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:75: >>> warning: cast to pointer from integer of different size >>> /home/jhaitas/src/libposix-git/system/linux/system_calls.c:76: >>> warning: cast to pointer from integer of different size >>> >>> >>> On Sat, Aug 1, 2009 at 1:15 AM, <jh...@gm...> wrote: >>>> its not building on 64bit linux... >>>> >>>> [ 55%] Building C object CMakeFiles/posix.dir/mandatory/printf_scanner.c.o >>>> [ 58%] Building C object CMakeFiles/posix.dir/system/linux/system_calls.c.o >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c: >>>> In function ‘write’: >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:38: >>>> warning: cast to pointer from integer of different size >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c: >>>> In function ‘_Exit’: >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:44: >>>> warning: cast to pointer from integer of different size >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c: >>>> In function ‘mmap’: >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:62: >>>> error: ‘LINUX_SYS_mmap2’ undeclared (first use in this function) >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:62: >>>> error: (Each undeclared identifier is reported only once >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:62: >>>> error: for each function it appears in.) >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:63: >>>> warning: cast to pointer from integer of different size >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:63: >>>> warning: cast to pointer from integer of different size >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:64: >>>> warning: cast to pointer from integer of different size >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c: >>>> In function ‘system_open’: >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:75: >>>> warning: cast to pointer from integer of different size >>>> /home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5/system/linux/system_calls.c:76: >>>> warning: cast to pointer from integer of different size >>>> make[3]: *** [CMakeFiles/posix.dir/system/linux/system_calls.c.o] Error 1 >>>> make[3]: Leaving directory >>>> `/home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5' >>>> make[2]: *** [CMakeFiles/posix.dir/all] Error 2 >>>> make[2]: Leaving directory >>>> `/home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5' >>>> make[1]: *** [all] Error 2 >>>> make[1]: Leaving directory >>>> `/home/jhaitas/src/build-area/libposix-0.0.3+git20090731t2300x80072a5' >>>> make: *** [build] Error 2 >>>> dpkg-buildpackage: failure: debian/rules build gave error exit status 2 >>>> bzr: ERROR: The build failed. >>>> >>>> >>>> On Fri, Jul 31, 2009 at 9:00 PM, Henrique Almeida<hd...@gm...> wrote: >>>>> >>>>> I've fixed the compilation for x86 and included mmap (I've changed >>>>> the sbrk call to mmap). I don't know yet if it compiles under other >>>>> platforms and I haven't tested on any platform, so expect crashes. >>>>> >>>>> 2009/7/31 <jh...@gm...>: >>>>>> >>>>>> The current HEAD doesn't build... My fault... >>>>>> >>>>>> >>>>>> On Fri, Jul 31, 2009 at 3:24 PM, <jh...@gm...> wrote: >>>>>>> >>>>>>> There is one error. Search for sbrk >>>>>>> >>>>>>> On Fri, Jul 31, 2009 at 2:10 PM, Henrique Almeida<hd...@gm...> >>>>>>> wrote: >>>>>>>> >>>>>>>> Yes, that would be a good start. >>>>>>>> >>>>>>>> 2009/7/31 <jh...@gm...>: >>>>>>>>> >>>>>>>>> I could get us started by implementing the version of malloc taught in >>>>>>>>> K&R >>>>>>>>> C. >>>>>>>>> >>>>>>>>> Just an thought... >>>>>>>>> >>>>>>>>> On Fri, Jul 31, 2009 at 11:29 AM, Henrique Almeida<hd...@gm...> >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> I've spent too much time studying dlmalloc and there are still many >>>>>>>>>> details that I don't understand. I'm considering trying alternative >>>>>>>>>> implementations. >>>>>>>>>> >>>>>>>>>> 2009/7/22 Henrique Almeida <hd...@gm...>: >>>>>>>>>>> >>>>>>>>>>> I'm thinking about reimplementing Doug Lea's malloc for libposix, >>>>>>>>>>> at >>>>>>>>>>> least while we don't have threading support. I'm currently studying >>>>>>>>>>> his implementation. malloc is an important function that we're >>>>>>>>>>> missing. >>>>>>>>>>> >>>>>>>>>>> 2009/7/16 Henrique Almeida <hd...@gm...>: >>>>>>>>>>>> >>>>>>>>>>>> 2009/7/16 Chris Forbes <ch...@fa...>: >>>>>>>>>>>>> >>>>>>>>>>>>> I think I've finally got git figured out (unwiring my brain from >>>>>>>>>>>>> using >>>>>>>>>>>>> SVN :(), >>>>>>>>>>>>> so I'll do some of the other functions for bzip2 after work. >>>>>>>>>>>> >>>>>>>>>>>> I have to write a git howto for the project, but I won't have time >>>>>>>>>>>> in >>>>>>>>>>>> the next weeks. The task is at TaskFreak site. Basically, git has >>>>>>>>>>>> two >>>>>>>>>>>> main differences from svn (that make things look complicated), >>>>>>>>>>>> which >>>>>>>>>>>> are multiple repositories (as a natural part of the development) >>>>>>>>>>>> and >>>>>>>>>>>> somewhat different terminology. So, to work with git you first need >>>>>>>>>>>> to >>>>>>>>>>>> recreate your own repository. Then you'll work by commiting >>>>>>>>>>>> frequently >>>>>>>>>>>> to your local repository. When the code is in a usable state for >>>>>>>>>>>> everyone, you merge your repository with SF repository. The >>>>>>>>>>>> commands >>>>>>>>>>>> are the following: >>>>>>>>>>>> >>>>>>>>>>>> # Create a full local clone of the remote repository (and setup >>>>>>>>>>>> remote >>>>>>>>>>>> merges) >>>>>>>>>>>> git clone >>>>>>>>>>>> ssh://hd...@li.../gitroot/libposix >>>>>>>>>>>> >>>>>>>>>>>> # Merge the remote repository in your local repository >>>>>>>>>>>> git pull >>>>>>>>>>>> >>>>>>>>>>>> # Merge the remote repository (other than SF) in your local >>>>>>>>>>>> repository >>>>>>>>>>>> git pull http://remote.repository.com/ >>>>>>>>>>>> >>>>>>>>>>>> # Edit code >>>>>>>>>>>> editor source1 source2 source3 (git is not used) >>>>>>>>>>>> >>>>>>>>>>>> # View list of changed files >>>>>>>>>>>> git status >>>>>>>>>>>> >>>>>>>>>>>> # View code changes >>>>>>>>>>>> git diff >>>>>>>>>>>> >>>>>>>>>>>> # Add files to commit >>>>>>>>>>>> git add source1/dir1 >>>>>>>>>>>> >>>>>>>>>>>> # Remove files >>>>>>>>>>>> git rm source1 >>>>>>>>>>>> >>>>>>>>>>>> # Move files >>>>>>>>>>>> git mv source1 dest1 >>>>>>>>>>>> >>>>>>>>>>>> # View code changes that were marked as added to commit (with git >>>>>>>>>>>> add) >>>>>>>>>>>> git diff HEAD >>>>>>>>>>>> >>>>>>>>>>>> # Commit (to the local repository) >>>>>>>>>>>> git commit >>>>>>>>>>>> >>>>>>>>>>>> # View the commit log >>>>>>>>>>>> git log >>>>>>>>>>>> >>>>>>>>>>>> # Merge the local repository to the remote repository (upload code >>>>>>>>>>>> to >>>>>>>>>>>> SF) >>>>>>>>>>>> git push >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- Chris >>>>>>>>>>>>> >>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>> From: Henrique Almeida [mailto:hd...@gm...] >>>>>>>>>>>>> Sent: Thursday, 16 July 2009 3:18 p.m. >>>>>>>>>>>>> To: lib...@li... >>>>>>>>>>>>> Subject: [libposix-development] bzip2 >>>>>>>>>>>>> >>>>>>>>>>>>> I've started implementing functions required by bzip2. I'm trying >>>>>>>>>>>>> to >>>>>>>>>>>>> implement them as simple as possible, with only the functionality >>>>>>>>>>>>> required by bzip2. Example functions are fileno() and strerror(). >>>>>>>>>>>>> I'll >>>>>>>>>>>>> begin to implement open() in the next days. >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Henrique Dante de Almeida >>>>>>>>>>>>> hd...@gm... >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>>>>>> ------ >>>>>>>>>>>>> Enter the BlackBerry Developer Challenge >>>>>>>>>>>>> This is your chance to win up to $100,000 in prizes! For a limited >>>>>>>>>>>>> time, >>>>>>>>>>>>> >>>>>>>>>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>>>>>>>>> will >>>>>>>>>>>>> have >>>>>>>>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>>>>>>>>>> full >>>>>>>>>>>>> prize >>>>>>>>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> Libposix-development mailing list >>>>>>>>>>>>> Lib...@li... >>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>>>>> Enter the BlackBerry Developer Challenge >>>>>>>>>>>>> This is your chance to win up to $100,000 in prizes! For a limited >>>>>>>>>>>>> time, >>>>>>>>>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>>>>>>>>> will >>>>>>>>>>>>> have >>>>>>>>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>>>>>>>>>> full >>>>>>>>>>>>> prize >>>>>>>>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> Libposix-development mailing list >>>>>>>>>>>>> Lib...@li... >>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Henrique Dante de Almeida >>>>>>>>>>>> hd...@gm... >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Henrique Dante de Almeida >>>>>>>>>>> hd...@gm... >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Henrique Dante de Almeida >>>>>>>>>> hd...@gm... >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>>>>>>>> 30-Day >>>>>>>>>> trial. Simplify your report design, integration and deployment - and >>>>>>>>>> focus >>>>>>>>>> on >>>>>>>>>> what you do best, core application coding. Discover what's new with >>>>>>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>>>>>>> _______________________________________________ >>>>>>>>>> Libposix-development mailing list >>>>>>>>>> Lib...@li... >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> John Haitas >>>>>>>>> jh...@gm... >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>>>>>>> 30-Day >>>>>>>>> trial. Simplify your report design, integration and deployment - and >>>>>>>>> focus >>>>>>>>> on >>>>>>>>> what you do best, core application coding. Discover what's new with >>>>>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>>>>>> _______________________________________________ >>>>>>>>> Libposix-development mailing list >>>>>>>>> Lib...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Henrique Dante de Almeida >>>>>>>> hd...@gm... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>>>>>> 30-Day >>>>>>>> trial. Simplify your report design, integration and deployment - and >>>>>>>> focus >>>>>>>> on >>>>>>>> what you do best, core application coding. Discover what's new with >>>>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>>>>> _______________________________________________ >>>>>>>> Libposix-development mailing list >>>>>>>> Lib...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> John Haitas >>>>>>> jh...@gm... >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> John Haitas >>>>>> jh...@gm... >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>>>> 30-Day >>>>>> trial. Simplify your report design, integration and deployment - and >>>>>> focus >>>>>> on >>>>>> what you do best, core application coding. Discover what's new with >>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>>> _______________________________________________ >>>>>> Libposix-development mailing list >>>>>> Lib...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Henrique Dante de Almeida >>>>> hd...@gm... >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>>> 30-Day >>>>> trial. Simplify your report design, integration and deployment - and focus >>>>> on >>>>> what you do best, core application coding. Discover what's new with >>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>> _______________________________________________ >>>>> Libposix-development mailing list >>>>> Lib...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>>> >>>> >>>> >>>> >>>> -- >>>> John Haitas >>>> jh...@gm... >>>> >>>> >>> >>> >>> >>> -- >>> John Haitas >>> jh...@gm... >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Libposix-development mailing list >>> Lib...@li... >>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>> >> >> >> >> -- >> Henrique Dante de Almeida >> hd...@gm... >> > > > > -- > Henrique Dante de Almeida > hd...@gm... > -- Henrique Dante de Almeida hd...@gm... |