Re: Error in compiling "pgcrypto" module in Win32 - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: Error in compiling "pgcrypto" module in Win32
Date
Msg-id 41320D9D.5060205@pse-consulting.de
Whole thread Raw
In response to Re: Error in compiling "pgcrypto" module in Win32  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> "Maurizio Merli" <maurizio.merli@libero.it> writes:
> 
>>I'm using PostgreSQL 8.0.0 beta1
> 
> 
> On what?
> 
> 
>>md5.o(.text+0x1ee):md5.c: undefined reference to `bcopy'
> 
> 
> I've fixed these by changing to the more-standard memmove() routine.
> 
> 
>>crypt-des.o(.text+0x520):crypt-des.c: undefined reference to `ntohl@4'
>>crypt-des.o(.text+0xbbe):crypt-des.c: undefined reference to `htonl@4'
> 
> 
> Can't help you on these, unless you can say which system header file
> ntohl and htonl are in on your platform.  It looks to me like
> crypt-des.c is including what it's supposed to include to get at
> those functions ...

-lws2_32 is needed.

Regards,
Andreas


pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: Error in compiling "pgcrypto" module in Win32
Next
From: Andrew Piskorski
Date:
Subject: Re: Contrib -- PostgreSQL shared variables