Re: Error in compiling "pgcrypto" module in Win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Maurizio Merli" <maurizio(dot)merli(at)libero(dot)it>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Error in compiling "pgcrypto" module in Win32
Date: 2004-08-29 17:05:33
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE475B53@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)4'
>> crypt-des.o(.text+0xbbe):crypt-des.c: undefined reference to
>`htonl(at)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

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2004-08-29 17:08:45 Re: Error in compiling "pgcrypto" module in Win32
Previous Message Tom Lane 2004-08-29 16:55:32 Re: Error in compiling "pgcrypto" module in Win32