bugmonotone - Bugs: bug #10203, Does not comile on FreeBSD/sparc64

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10203: Does not comile on FreeBSD/sparc64

Submitted by:  None
Submitted on:  Sun 29 Aug 2004 05:21:07 AM UTC  
 
Category: portabilitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Julio Merino <jmmv>
Open/Closed: Closed
mtn version --full: 

Wed 16 Feb 2005 06:46:36 PM UTC, comment #3:

Well, in fact, I've just applied a patch to use uint{8,16,32,64}_t types as some other code in Monotone does (so it doesn't reduce portability); should avoid multiple problems of this kind. Anyway, this doesn't fix the fact that cryptopp's config.h is a royal PITA to fix portability issues and maintain.

Marking this bug as closed since the submitter is unknown.

Julio Merino <jmmv>
Project MemberIn charge of this item.
Wed 16 Feb 2005 03:51:42 PM UTC, comment #2:

As the previous comment says, this is a problem in cryptopp, not in monotone (although we should import any fixes done in the original library).

However, I can't see why this fails. I've fetched a copy of the code from the date you filled the bug, and the line that's triggering the problem (unless I've done some mistake) is the following, from cryptopp/cryptlib.cpp:

CRYPTOPP_COMPILE_ASSERT(sizeof(word32) == 4);

So the problem has to be that the size of the 'word32' type is not 4 bytes in the machine you are building the program. (Well, cryptopp is checking for portability issues in an extremely ugly way, but anyway... not something we want to fix, probably.)

word32 is also an alias for unsigned int in the code. I've looked at what NetBSD does in a sparc64 machine and also checked an IRIX64 systems. In both of them, the size of 'unsigned int' is 4 bytes, which matches the expected value. (I doubt this changes between OSes... right?)

So I don't know how/why this happens in your FreeBSD/sparc64 system. May it be that it has different expectations? Anybody knows or has a FreeBSD/sparc64 machine on which he can run a few tests? (Asking in general because the bug is anonymous; will have to close it if nobody pops up...)

Julio Merino <jmmv>
Project MemberIn charge of this item.
Fri 15 Oct 2004 10:08:31 AM UTC, comment #1:

The failure seems to be in the cryptopp part
e.g. cryptopp/algebra.cpp
Those file probably originated from http://www.cryptopp.com.
If you want to progress this bug, you could try to compile
a recent version of cryptopp and possibly file the bug
with them or try to update monotones files with newer ones
from cryptopp, if possible.

Bernhard Reiter <bernhard>
Sun 29 Aug 2004 05:21:07 AM UTC, original submission:

Compile log is attached.
This was with Monotone 0.14.

Anonymous

 

Attached Files
file #1694:  log added by None (9KiB - application/octet-stream - compilation log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 16 Feb 2005 06:46:36 PM UTCjmmvStatusNone=>Fixed
  Open/ClosedAnalyzed=>Closed
Wed 16 Feb 2005 03:51:42 PM UTCjmmvAssigned toNone=>jmmv
  Open/ClosedOpen=>Analyzed
Sun 29 Aug 2004 05:21:07 AM UTCNoneAttached File-=>Added log, #1623

Back to the top


Powered by Savane 3.1-cleanup1