Linking the functions in pi-md5.h

Rick Stevens rstevens at internap.com
Wed Apr 25 21:30:11 UTC 2007


On Wed, 2007-04-25 at 17:21 -0400, Robert Cahn wrote:
> I need to write a little program that computes an md5 checksum.
> In /usr/include there is a nice header file that includes the
> functions
> 
> void MD5Init(struct MD5Context *context);
> void MD5Update(struct MD5Context *context, UINT8 const *buf, unsigned
> len); 
> void MD5Final(unsigned char digest[16], struct MD5Context *context);
> void MD5Transform(UINT32 buf[4], UINT32 const in[16]);
> 
> void byteSwap(UINT32 * buf, unsigned words);
> 
> When I do 
> 
> #include " pi-md5.h" the code compiles but the linker can't find the
> function.  Does anybody know what library contains the code?

/usr/lib/libpisock.so  Part of pilot-link-devel.  Add "-lpisock" to your
ld command line or make sure that it's in your /etc/ld.so.conf config
and run ldconfig.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens at internap.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-      Always remember you're unique, just like everyone else.       -
----------------------------------------------------------------------




More information about the fedora-list mailing list