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

From Magnus Hagander
Subject Re: Error in compiling "pgcrypto" module in Win32
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE475B53@algol.sollentuna.se
Whole thread Raw
In response to Error in compiling "pgcrypto" module in Win32  ("Maurizio Merli" <maurizio.merli@libero.it>)
List pgsql-hackers
>> 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 ...

This looks a lot like win32, in which case you need to link to "ws2_32"
for those.


//Magnus


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error in compiling "pgcrypto" module in Win32
Next
From: Andreas Pflug
Date:
Subject: Re: Error in compiling "pgcrypto" module in Win32