Re: [WEB REQ] don\'t compile - silc-server-1.0.1.tar.bz2
Patrik Weiskircher <[email protected]>
| Newsgroups | gmane.network.silc.user |
|---|---|
| Message-ID | <[email protected]> |
> when i try to compile, in my sparc, i have this resolte: > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -finline-functions > -D_REENTRANT -DHAVE_SILCDEFS_H -I. -I../.. -I/root/silc- > server-1.0.1 -I/root/silc-server-1.0.1/lib/contrib -I/root/silc- > server-1.0.1/lib/silccore -I/root/silc-server-1.0.1/lib/silccrypt - > I/root/silc-server-1.0.1/lib/silcmath -I/root/silc-server-1.0.1/lib/ > silcutil -I/root/silc-server-1.0.1/lib/silcske -I/root/silc- > server-1.0.1/lib/silcsim -I/root/silc-server-1.0.1/includes -I/root/ > silc-server-1.0.1/doc -c sha256.c -fPIC -DPIC -o .libs/sha256.o > sha256.c: In function `sha256_compress\': > sha256.c:91: error: `unsignedlong\' undeclared (first use in this > function) > sha256.c:91: error: (Each undeclared identifier is reported only once > sha256.c:91: error: for each function it appears in.) > gmake[3]: *** [sha256.lo] Error 1 > gmake[3]: Leaving directory `/root/silc-server-1.0.1/lib/silccrypt\' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/root/silc-server-1.0.1/lib\' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/root/silc-server-1.0.1\' > Can you try applying the attached patch? cd lib/silccrypt/ patch -p1 < silccrypt_sha256_compilefix.patch After that it should work. Thanks, Patrik _______________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-users Archive: https://lists.silcnet.org/pipermail/silc-users FAQ: http://silcnet.org/support/faq/
silccrypt_sha256_compilefix.patch
(application/octet-stream, 495 B)
--- sha256.c.old 2005-11-29 07:40:07.000000000 +0100 +++ sha256.c 2005-11-29 07:40:17.000000000 +0100 @@ -58,7 +58,7 @@ } #else -#define RORc(x, y) ( ((((unsigned long)(x)&0xFFFFFFFFUL)>>(unsignedlong)((y)&31)) | ((unsigned long)(x)<<(unsigned long)(32-((y)&31)))) &0xFFFFFFFFUL) +#define RORc(x, y) ( ((((unsigned long)(x)&0xFFFFFFFFUL)>>(unsigned long)((y)&31)) | ((unsigned long)(x)<<(unsigned long)(32-((y)&31)))) &0xFFFFFFFFUL) #endif /* _MSC_VER */ /* Various logical functions */