pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Failed build for wip/policykit See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 0.0 HTML_MESSAGE BODY: HTML included in message 0.3 HTML_10_20 BODY: Message is 10% to 20% HTML



Hi list,

As it is my first message on pkgsrc-wip, I am not particularly aware of the
do's and don'ts of the list. So please be patient with me if I am doing
anything wrong in my attempts  :) 


I tried today to build the wip/hal package, but failed to do so due to an
error during wip/policykit make (required for hald to work). It fails
during preprocessing (see below for details).

Some infos about my system first:

toulouse$ uname -a
NetBSD toulouse 4.99.34 NetBSD 4.99.34 (GENERIC) #0: Wed Oct 31 07:52:16
PDT 2007 
builds@wb46:/home/builds/ab/HEAD/i386/200710310002Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC
i386

with a fresh pkgsrc-current; wip is the 20071117 snapshot.

Steps to reproduce:

# cd /usr/pkgsrc/wip/policykit/
# make install
[snip]
Making all in pam-polkit-console
gmake[2]: Entering directory
`/usr/pkgsrc/wip/policykit/work/PolicyKit/pam-polkit-console'
/bin/sh ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  
-I/usr/pkg/include -I/usr/include -DLOCKDIR=\"/var/run/polkit-console\" -O2
-I/usr/pkg/include -I/usr/include -Wall -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -MT pam_polkit_console_la-pam-polkit-console.lo -MD -MP -MF
.deps/pam_polkit_console_la-pam-polkit-console.Tpo -c -o
pam_polkit_console_la-pam-polkit-console.lo `test -f 'pam-polkit-console.c'
|| echo './'`pam-polkit-console.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I..
-I/usr/pkgsrc/wip/policykit/work/.buildlink/include
-DLOCKDIR=\"/var/run/polkit-console\" -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -MT pam_polkit_console_la-pam-polkit-console.lo -MD -MP -MF
.deps/pam_polkit_console_la-pam-polkit-console.Tpo -c pam-polkit-console.c 
-fPIC -DPIC -o .libs/pam_polkit_console_la-pam-polkit-console.o
pam-polkit-console.c:43:34: error: security/_pam_macros.h: No such file or
directory
pam-polkit-console.c: In function 'pam_sm_open_session':
pam-polkit-console.c:172: warning: implicit declaration of function
'pam_get_item'
pam-polkit-console.c:172: warning: nested extern declaration of
'pam_get_item'
pam-polkit-console.c:176: warning: implicit declaration of function
'pam_get_user'
pam-polkit-console.c:176: warning: nested extern declaration of
'pam_get_user'
gmake[2]: *** [pam_polkit_console_la-pam-polkit-console.lo] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/wip/policykit/work/PolicyKit/pam-polkit-console'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/wip/policykit/work/PolicyKit'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/wip/policykit
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/policykit

Fix:
The #include does not seem to point to the correct file for the pam_get_*
prototypes. To make things short:

--- pam-polkit-console.c        2007-11-17 20:13:57.000000000 +0100
+++ pam-polkit-console.c.new    2007-11-17 20:14:40.000000000 +0100
@@ -40,7 +40,7 @@
 #include <stdarg.h>
 
 #include <security/pam_modules.h>
-#include <security/_pam_macros.h>
+#include <security/pam_appl.h>
 #ifdef HAVE_PAM_MODUTIL_H
 #include <security/pam_modutil.h>

Since I have no idea on how to fix it properly, I am just giving some
pointers.

Comments are welcomed  :) 

Best regards,

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index