LINUX.ORG.RU

pam_pgsql не собирается


0

0

Дистрибутив: FC 6 Zod
Скачал libpam-pgsql с http://sourceforge.net/projects/pam-pgsql
Написал простенький spec-файл:

Name: pam-pgsql
Version: 0.6.3
Release: 1
Summary: PAM module to authenticate using a PostgreSQL database
Group: System Environment/Base
License: GPL
URL: http://sourceforge.net/projects/pam-pgsql

BuildRoot: %{_tmppath}/%{name}-%{version}
ExclusiveArch: i386
Source: %{name}-%{version}.tar.bz2

%description
This module provides support to authenticate against PostgreSQL
tables for PAM-enabled appliations.

%prep
%setup

%build
%configure
make

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

Пробую собрать: rpmbuild -ba libpam-pgsql.spec
Получаю вот такую ошибку:
+ make
cc -O2 -frename-registers -fstrict-aliasing -fPIC -DPIC -Wall -W -Wdisabled-optimization -Wredundant-decls -Wmissing-format-attribute -Wmissing-noreturn -D_GNU_SOURCE -I/usr/include -I/usr/include    -c -o pam_pgsql.o pam_pgsql.c
pam_pgsql.c: In function 'pam_sm_authenticate':
pam_pgsql.c:582: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_pgsql.c: In function 'pam_sm_acct_mgmt':
pam_pgsql.c:641: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_pgsql.c: In function 'pam_sm_chauthtok':
pam_pgsql.c:690: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_pgsql.c: In function 'pam_sm_setcred':
pam_pgsql.c:755: warning: unused parameter 'pamh'
pam_pgsql.c:755: warning: unused parameter 'flags'
pam_pgsql.c:755: warning: unused parameter 'argc'
pam_pgsql.c:755: warning: unused parameter 'argv'
cc -O2 -frename-registers -fstrict-aliasing -fPIC -DPIC -Wall -W -Wdisabled-optimization -Wredundant-decls -Wmissing-format-attribute -Wmissing-noreturn -D_GNU_SOURCE -I/usr/include -I/usr/include    -c -o pam_get_pass.o pam_get_pass.c
cc -O2 -frename-registers -fstrict-aliasing -fPIC -DPIC -Wall -W -Wdisabled-optimization -Wredundant-decls -Wmissing-format-attribute -Wmissing-noreturn -D_GNU_SOURCE -I/usr/include -I/usr/include    -c -o pam_std_option.o pam_std_option.c
cc -O2 -frename-registers -fstrict-aliasing -fPIC -DPIC -Wall -W -Wdisabled-optimization -Wredundant-decls -Wmissing-format-attribute -Wmissing-noreturn -D_GNU_SOURCE -I/usr/include -I/usr/include    -c -o pam_get_service.o pam_get_service.c
pam_get_service.c: In function 'pam_get_service':
pam_get_service.c:10: error: 'NULL' undeclared (first use in this function)
pam_get_service.c:10: error: (Each undeclared identifier is reported only once
pam_get_service.c:10: error: for each function it appears in.)
make: *** [pam_get_service.o] Error 1
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.57310 (%build)


Ошибки сборки пакетов:
    Неверный код возврата из /var/tmp/rpm-tmp.57310 (%build)

Как решить? Подскажите, уважаемые!
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.