Обсуждение: error when running make

Поиск
Список
Период
Сортировка

error when running make

От
Linda Fousek
Дата:
I'm getting the following error when I run the make command on Windows2000:

...
pg_passwd.o(.text+0x763):pg_passwd.c:undefined reference to 'crypt'
collect2: ld returned 1 exit status
make[3]: ***[pg_passwd] Error 1
make[3]: ***leaving directory '/usr/src/postgresql-7.2/src/bin/pg_passwd'
make[2]: ***[all] Error 2
make[2]: ***leaving directory '/usr/src/postgresql-7.2/src/bin'
make[1]: ***leaving directory '/usr/src/postgresql-7.2/src'
make: ***[all] Error 2

./configure completed successfully, and the crypt lib is installed. I tried
uninstalling and reinstalling the crypt lib and still get the same error.

Anybody know what might be causing this error?

Thanks

Re: error when running make

От
Tom Lane
Дата:
Linda Fousek <lfousek@v2group.com> writes:
> I'm getting the following error when I run the make command on Windows2000:
> ...
> pg_passwd.o(.text+0x763):pg_passwd.c:undefined reference to 'crypt'
> collect2: ld returned 1 exit status
> make[3]: ***[pg_passwd] Error 1

Difficult to tell much when you didn't show us the commands leading up
to this.  But I'm guessing that configure didn't find libcrypt and so
didn't insert it into the LIBS list.

            regards, tom lane