COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 02-05-2008, 02:30 PM   #1
tgehrig
Human being with feelings
 
Join Date: Nov 2006
Posts: 24
Default WDL on 64bit Systems

Hi,
I needed the following patch to get the authentication of the ninjam-server working on a 64bit Linux.
Code:
--- sha.cpp     (Revision 73)
+++ sha.cpp     (Arbeitskopie)
@@ -69,7 +69,7 @@
 }
 
 
-#define SHA_ROTL(X,n) (((X) << (n)) | ((X) >> (32-(n))))
+#define SHA_ROTL(X,n) ((((X)&0xffffffffL) << (n)) | (((X)&0xffffffffL) >> (32-(n))))
 #define SHUFFLE() E = D; D = C; C = SHA_ROTL(B, 30); B = A; A = TEMP
 
 void WDL_SHA1::add(const void *data, int datalen)
tgehrig is offline   Reply With Quote
Old 02-07-2008, 11:48 AM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Cool, I'll merge in...

-Justin
Justin is offline   Reply With Quote
Old 03-28-2017, 05:36 AM   #3
akademie
Human being with feelings
 
Join Date: Mar 2007
Posts: 3,978
Default

Hi Justin,
it seems that updating of the source code for 64bit systems never happened...?
I did install linux ninjam server (64 bit Ubuntu server) few weeks ago and I had the same problem with authenticating until I found this thread and modified the sha.cpp file by myself according to tgehrig's suggestion.

It would be fine to have the downloadable sources updated ;-)

Thanks
akademie
akademie is offline   Reply With Quote
Old 03-28-2017, 05:41 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by akademie View Post
Hi Justin,
it seems that updating of the source code for 64bit systems never happened...?
I did install linux ninjam server (64 bit Ubuntu server) few weeks ago and I had the same problem with authenticating until I found this thread and modified the sha.cpp file by myself according to tgehrig's suggestion.

It would be fine to have the downloadable sources updated ;-)

Thanks
akademie
You must be using some very old WDL source, the change is in the WDL source I've got from the WDL git repo. (Using git is preferable over using source code direct downloads.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 03-28-2017, 05:52 AM   #5
akademie
Human being with feelings
 
Join Date: Mar 2007
Posts: 3,978
Default

Hello Xenakios, thank you for reply. I have not much experience with Linux and gits...
When installing ninjam server, from terminal I downloaded sourcecode.gz from cockos site unpacked and make...
How can I incorporate/perform git sync/update of downloaded source code from Terminal before "make", please?

Thank you
akademie
akademie is offline   Reply With Quote
Old 03-28-2017, 06:04 AM   #6
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by akademie View Post
Hello Xenakios, thank you for reply. I have not much experience with Linux and gits...
When installing ninjam server, from terminal I downloaded sourcecode.gz from cockos site unpacked and make...
How can I incorporate/perform git sync/update of downloaded source code from Terminal before "make", please?

Thank you
akademie
Ah, you are using some source code that has the very old WDL included with it? I don't suppose there's anything to be done in that case except manually edit the wrong WDL line.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.