ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Пересборка pam
@ 2005-05-13  6:49 Sergey Lebedev
  2005-05-13 13:15 ` php-coder
  2005-05-13 21:26 ` Dmitry V. Levin
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Lebedev @ 2005-05-13  6:49 UTC (permalink / raw)
  To: community

День добрый.

Чего-то я не пойму.

Дистрибутив ALM 2.4 без update'ов, ядро 2.4.26-std-up-alt6.

Понадобилось пересобрать pam-0.75-alt27.src.rpm с --enable-debug
и --enable-libdebug, в spece сделал изменения:

%configure \
  --prefix=/ \
  --exec-prefix=/ \
  --libdir=/%_lib \
  --sbindir=/sbin \
  --enable-static-libpam \
  --disable-read-both-confs \
  --enable-debug \
  --enable-libdebug \
  --enable-fakeroot=$RPM_BUILD_ROOT \
  --enable-suplementedir=%helperdir

Начинаю компилировать и в итоге получаю следующую ошибку

gcc -pipe -Wall -O2 -march=i586 -mcpu=i686 -fPIC -DPIC -D_GNU_SOURCE -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75/include -Wall -Wwrite-strings  -Wpointer-arith -Wcast-qual -Wcast-align        -Wstrict-prototypes -Wmissing-prototypes        -Wnested-externs -Winline -Wshadow -Dlinux  -I./include -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75/libpam/include -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75 -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75/libpamc/include  -DPAM_DYNAMIC  -D"DEFAULT_MODULE_PATH=\"/lib/security/\"" -DLIBPAM_VERSION_MAJOR=0 -DLIBPAM_VERSION_MINOR=75   -c pam_handlers.c -o dynamic/pam_handlers.o
pam_handlers.c: In function `_pam_load_conf_file':
pam_handlers.c:295: `filename' undeclared (first use in this function)
pam_handlers.c:295: (Each undeclared identifier is reported only once
pam_handlers.c:295: for each function it appears in.)
make[1]: *** [dynamic/pam_handlers.o] Error 1
make[1]: Leaving directory `/home/barabashka/RPM/BUILD/Linux-PAM-0.75/libpam'
make: *** [libpam] Error 2
make: Leaving directory `/home/barabashka/RPM/BUILD/Linux-PAM-0.75'
ошибка: Неверный код возврата из /home/barabashka/tmp/rpm-tmp.5971 (%build)


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

Пробовал  gcc3.2, gcc2.96 все едино. В чем может быть проблема и 
как собрать пакет с debug'ом?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Пересборка pam
  2005-05-13  6:49 [Comm] Пересборка pam Sergey Lebedev
@ 2005-05-13 13:15 ` php-coder
  2005-05-13 21:26 ` Dmitry V. Levin
  1 sibling, 0 replies; 4+ messages in thread
From: php-coder @ 2005-05-13 13:15 UTC (permalink / raw)
  To: community


--- Sergey Lebedev 2005-05-13 10:49:17 +0400
+++ php-coder 2005-05-13 20:08:45 +0700

>   --enable-suplementedir=%helperdir

    О! Что за макрос такой?? В Сизифе такого нет. Похожего тоже не нашел
    :-/

> pam_handlers.c:295: `filename' undeclared (first use in this function)
> pam_handlers.c:295: (Each undeclared identifier is reported only once
> pam_handlers.c:295: for each function it appears in.)

    Ну говорит, что не объявлена функция filename. Поробуйте так:
    
    Найдите ее определение в исходниках и подключите файл ее содержащий в
    файл pam_handlers.c
    
-- 
+ php-coder
+ php-coder[at]ngs[dot]ru



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Пересборка pam
  2005-05-13  6:49 [Comm] Пересборка pam Sergey Lebedev
  2005-05-13 13:15 ` php-coder
@ 2005-05-13 21:26 ` Dmitry V. Levin
  2005-05-14 14:22   ` Sergey Lebedev
  1 sibling, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2005-05-13 21:26 UTC (permalink / raw)
  To: ALT Linux general discussion list

[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]

Hi,

On Fri, May 13, 2005 at 10:49:17AM +0400, Sergey Lebedev wrote:
> Дистрибутив ALM 2.4 без update'ов, ядро 2.4.26-std-up-alt6.
> 
> Понадобилось пересобрать pam-0.75-alt27.src.rpm с --enable-debug
> и --enable-libdebug, в spece сделал изменения:
> 
> %configure \
>   --prefix=/ \
>   --exec-prefix=/ \
>   --libdir=/%_lib \
>   --sbindir=/sbin \
>   --enable-static-libpam \
>   --disable-read-both-confs \
>   --enable-debug \
>   --enable-libdebug \
>   --enable-fakeroot=$RPM_BUILD_ROOT \
>   --enable-suplementedir=%helperdir
> 
> Начинаю компилировать и в итоге получаю следующую ошибку
> 
> gcc -pipe -Wall -O2 -march=i586 -mcpu=i686 -fPIC -DPIC -D_GNU_SOURCE -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75/include -Wall -Wwrite-strings  -Wpointer-arith -Wcast-qual -Wcast-align        -Wstrict-prototypes -Wmissing-prototypes        -Wnested-externs -Winline -Wshadow -Dlinux  -I./include -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75/libpam/include -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75 -I/home/barabashka/RPM/BUILD/Linux-PAM-0.75/libpamc/include  -DPAM_DYNAMIC  -D"DEFAULT_MODULE_PATH=\"/lib/security/\"" -DLIBPAM_VERSION_MAJOR=0 -DLIBPAM_VERSION_MINOR=75   -c pam_handlers.c -o dynamic/pam_handlers.o
> pam_handlers.c: In function `_pam_load_conf_file':
> pam_handlers.c:295: `filename' undeclared (first use in this function)
> pam_handlers.c:295: (Each undeclared identifier is reported only once
> pam_handlers.c:295: for each function it appears in.)
> make[1]: *** [dynamic/pam_handlers.o] Error 1
> make[1]: Leaving directory `/home/barabashka/RPM/BUILD/Linux-PAM-0.75/libpam'

Придётся вам покопаться в исходном коде, я _так_ Linux-PAM собирать не
пробовал, надобности не было.  Скорее всего, какой-то из патчей "забыл"
скорректировать одно из отладочных сообщений.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Пересборка pam
  2005-05-13 21:26 ` Dmitry V. Levin
@ 2005-05-14 14:22   ` Sergey Lebedev
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Lebedev @ 2005-05-14 14:22 UTC (permalink / raw)
  To: community

On 14 May, Dmitry V. Levin wrote:
> Hi,
> 
> On Fri, May 13, 2005 at 10:49:17AM +0400, Sergey Lebedev wrote:

[skip]

> Придётся вам покопаться в исходном коде, я _так_ Linux-PAM собирать не
> пробовал, надобности не было.  Скорее всего, какой-то из патчей "забыл"
> скорректировать одно из отладочных сообщений.

Оказалось достаточно двух патчей

diff -k.orig -Naur Linux-PAM-0.75.orig/libpam/pam_handlers.c Linux-PAM-0.75/libpam/pam_handlers.c
--- Linux-PAM-0.75.orig/libpam/pam_handlers.c   2005-05-13 12:47:08 +0400
+++ Linux-PAM-0.75/libpam/pam_handlers.c        2005-05-13 12:48:25 +0400
@@ -292,7 +292,7 @@
                            "_pam_load_conf_file: error reading %s: %s",
                            config_name, pam_strerror(pamh, retval));
     } else {
-       D(("unable to open %s", filename));
+       D(("unable to open %s", config_name));
        _pam_system_log(LOG_ERR,
                        "_pam_load_conf_file: unable to open %s",
                        config_name);

И

diff -k.orig -Naur Linux-PAM-0.75.orig/libpam_misc/Makefile Linux-PAM-0.75/libpam_misc/Makefile
--- Linux-PAM-0.75.orig/libpam_misc/Makefile    2005-05-13 13:07:12 +0400
+++ Linux-PAM-0.75/libpam_misc/Makefile 2005-05-13 13:07:45 +0400
@@ -42,7 +42,12 @@
 SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS))
 endif
 
+ifeq ($(WITH_LIBDEBUG),yes)
+LINKLIBS += -L../libpam -lpamd
+else
 LINKLIBS += -L../libpam -lpam
+endif
+
 
 # ---------------------------------------------
 ## rules

Все собралось.
Всем спасибо. 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-14 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13  6:49 [Comm] Пересборка pam Sergey Lebedev
2005-05-13 13:15 ` php-coder
2005-05-13 21:26 ` Dmitry V. Levin
2005-05-14 14:22   ` Sergey Lebedev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git