Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   EXT3 Users (http://www.linux-archive.org/ext3-users/)
-   -   Error compiling on Cent OS 4 (http://www.linux-archive.org/ext3-users/65812-error-compiling-cent-os-4-a.html)

Carlo Wood 04-07-2008 07:54 PM

Error compiling on Cent OS 4
 
On Mon, Apr 07, 2008 at 12:11:18PM -0300, Ranieri Oliveira wrote:
> /usr/include/ext2fs/bitops.h:440: error: invalid conversion from `unsigned
> char*' to `char*'

What is on line 440?

Please keep ext3-users@redhat.com in the CC.

--
Carlo Wood <carlo@alinoe.com>

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

"Ranieri Oliveira" 04-07-2008 08:29 PM

Error compiling on Cent OS 4
 
*** 437 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
*** 439 {
*** 440******** char*** *cp = (unsigned char *) addr;
*** 441******** int**** res = 0, d0;
*** 442
*** 443******** if (!size)

*** 444**************** return 0;
*** 445
*** 446******** while ((size > res) && (*cp == 0)) {
*** 447**************** cp++;
*** 448**************** res += 8;
*** 449******** }
*** 450******** d0 = ffs(*cp);

*** 451******** if (d0 == 0)
*** 452**************** return size;
*** 453
*** 454******** return res + d0 - 1;
*** 455 }


On Mon, Apr 7, 2008 at 4:54 PM, Carlo Wood <carlo@alinoe.com> wrote:



On Mon, Apr 07, 2008 at 12:11:18PM -0300, Ranieri Oliveira wrote:

> /usr/include/ext2fs/bitops.h:440: error: invalid conversion from `unsigned

> char*' to `char*'



What is on line 440?



Please keep ext3-users@redhat.com in the CC.



--

Carlo Wood <carlo@alinoe.com>



--~--~---------~--~----~------------~-------~--~----~

To post to this group, send email to ext3grep@googlegroups.com

To unsubscribe from this group, send email to ext3grep-unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/ext3grep?hl=en

-~----------~----~----~----~------~----~------~--~---





_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

Carlo Wood 04-07-2008 11:00 PM

Error compiling on Cent OS 4
 
On Mon, Apr 07, 2008 at 05:29:46PM -0300, Ranieri Oliveira wrote:
> 437 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
> 439 {
> 440 char *cp = (unsigned char *) addr;
> 441 int res = 0, d0;
> 442
> 443 if (!size)
> 444 return 0;
> 445
> 446 while ((size > res) && (*cp == 0)) {
> 447 cp++;
> 448 res += 8;
> 449 }
> 450 d0 = ffs(*cp);
> 451 if (d0 == 0)
> 452 return size;
> 453
> 454 return res + d0 - 1;
> 455 }

That is an error in ext2progs.
You can workaround the problem by changing

char *cp = (unsigned char *) addr;

into

char *cp = (char *) addr;

I'd think that better is to upgrade your ext2progs
devel package. The current version has this right.

--
Carlo Wood <carlo@alinoe.com>

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users


All times are GMT. The time now is 10:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.