All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem compiling busybox with libpam
       [not found] <AANLkTi=SoMmj4_=FMZnJ3cYTyJcTj2ymizEOM9PGSO3r@mail.gmail.com>
@ 2011-01-26  2:09 ` Spider
  2011-01-26  7:39   ` Thomas Petazzoni
  2011-01-26 11:35 ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Spider @ 2011-01-26  2:09 UTC (permalink / raw)
  To: buildroot

I was using buildroot to compile busybox and got the following error
when I add libpam using "make busybox-menuconfig". ?(The output is
below).
How can I get libpam to compile without this errors? If I "make clean"
and remake everything from scratch will it work? (I wil try this
tomorrow because of the time to compile and fear of configuration files changes)

I searched for a similar problem but didnt find anything on
documentation. Do I need to manually supply security/pam_appl.h and
security/pam_misc.h? Where to find them?

-----------------------------

(make busybox-menuconfig ... )

make
>>> busybox 1.17.1 Building
PATH="/home/nrx/buildroot/buildroot-2010.08/output/host/bin:/home/nrx/buildroot/buildroot-2010.08/output/host/usr/bin:/home/nrx/buildroot/buildroot-2010.08/output/host/usr/sbin/:/usr/local/bin:/usr/bin:/bin:/usr/games"
PERLLIB="/home/nrx/buildroot/buildroot-2010.08/output/host/usr/lib/perl"
CFLAGS="-pipe -Os ?-mtune=603e -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/nrx/buildroot/buildroot-2010.08/output/staging/usr/include
-I/home/nrx/buildroot/buildroot-2010.08/output/staging/include
-I/home/nrx/buildroot/buildroot-2010.08/output/toolchain/linux/include"
/usr/bin/make -j6
CC="/home/nrx/buildroot/buildroot-2010.08/output/staging/usr/bin/powerpc-unknown-linux-uclibc-gcc
--sysroot=/home/nrx/buildroot/buildroot-2010.08/output/staging"
ARCH=powerpc PREFIX="/home/nrx/buildroot/buildroot-2010.08/output/target"
EXTRA_LDFLAGS="-L/home/nrx/buildroot/buildroot-2010.08/output/staging/lib
-L/home/nrx/buildroot/buildroot-2010.08/output/staging/usr/lib"
CROSS_COMPILE="/home/nrx/buildroot/buildroot-2010.08/output/staging/usr/bin/powerpc-unknown-linux-uclibc-"
-C /home/nrx/buildroot/buildroot-2010.08/output/build/busybox-1.17.1
make[1]: Entering directory
`/home/nrx/buildroot/buildroot-2010.08/output/build/busybox-1.17.1'
?SPLIT ? include/autoconf.h -> include/config/*
?HOSTCC ?applets/usage
?HOSTCC ?applets/applet_tables
?GEN ? ? include/bbconfigopts.h
?GEN ? ? include/applet_tables.h
?HOSTCC ?applets/usage_pod
?GEN ? ? include/usage_compressed.h
?CC ? ? ?applets/applets.o
?LD ? ? ?applets/built-in.o
?DOC ? ? busybox.pod
?DOC ? ? BusyBox.txt
?DOC ? ? BusyBox.1
?DOC ? ? BusyBox.html
?CC ? ? ?loginutils/login.o
?CC ? ? ?libbb/appletlib.o
loginutils/login.c:23:32: error: security/pam_appl.h: No such file or directory
loginutils/login.c:24:32: error: security/pam_misc.h: No such file or directory
loginutils/login.c:25: error: variable 'conv' has initializer but
incomplete type
loginutils/login.c:26: error: 'misc_conv' undeclared here (not in a function)
loginutils/login.c:26: warning: excess elements in struct initializer
loginutils/login.c:26: warning: (near initialization for 'conv')
loginutils/login.c:28: warning: excess elements in struct initializer
loginutils/login.c:28: warning: (near initialization for 'conv')
loginutils/login.c: In function 'login_main':
loginutils/login.c:215: error: 'pam_handle_t' undeclared (first use in
this function)
loginutils/login.c:215: error: (Each undeclared identifier is reported only once
loginutils/login.c:215: error: for each function it appears in.)
loginutils/login.c:215: error: 'pamh' undeclared (first use in this function)
loginutils/login.c:216: warning: ISO C90 forbids mixed declarations and code
loginutils/login.c:273: warning: implicit declaration of function 'pam_start'
loginutils/login.c:274: error: 'PAM_SUCCESS' undeclared (first use in
this function)
loginutils/login.c:279: warning: implicit declaration of function 'pam_set_item'
loginutils/login.c:279: error: 'PAM_TTY' undeclared (first use in this function)
loginutils/login.c:284: warning: implicit declaration of function
'pam_authenticate'
loginutils/login.c:294: warning: implicit declaration of function
'pam_acct_mgmt'
loginutils/login.c:303: warning: implicit declaration of function 'pam_get_item'
loginutils/login.c:303: error: 'PAM_USER' undeclared (first use in
this function)
loginutils/login.c:317: warning: implicit declaration of function
'pam_open_session'
loginutils/login.c:322: warning: implicit declaration of function 'pam_setcred'
loginutils/login.c:322: error: 'PAM_ESTABLISH_CRED' undeclared (first
use in this function)
loginutils/login.c:333: warning: implicit declaration of function 'pam_strerror'
loginutils/login.c:333: warning: format '%s' expects type 'char *',
but argument 4 has type 'int'
make[2]: *** [loginutils/login.o] Error 1
make[1]: *** [loginutils] Error 2
make[1]: *** Waiting for unfinished jobs....
?AR ? ? ?libbb/lib.a
make[1]: Leaving directory
`/home/nrx/buildroot/buildroot-2010.08/output/build/busybox-1.17.1'
make: *** [/home/nrx/buildroot/buildroot-2010.08/output/build/busybox-1.17.1/.stamp_built]
Error 2


-- 
Marcelo Rodrigues Pinheiro
Tel: (61) 9117-5729

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

* [Buildroot] Problem compiling busybox with libpam
  2011-01-26  2:09 ` [Buildroot] Problem compiling busybox with libpam Spider
@ 2011-01-26  7:39   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-01-26  7:39 UTC (permalink / raw)
  To: buildroot

Hello Spider,

On Wed, 26 Jan 2011 00:09:13 -0200
Spider <spiderwebmail@gmail.com> wrote:

> I was using buildroot to compile busybox and got the following error
> when I add libpam using "make busybox-menuconfig". ?(The output is
> below).
> How can I get libpam to compile without this errors? If I "make clean"
> and remake everything from scratch will it work? (I wil try this
> tomorrow because of the time to compile and fear of configuration files changes)
> 
> I searched for a similar problem but didnt find anything on
> documentation. Do I need to manually supply security/pam_appl.h and
> security/pam_misc.h? Where to find them?

It looks like Busybox PAM support depends on the PAM library, for which
we don't have a package yet.

So you would need to :

 * Create a Buildroot package for
   ftp://ftp.kernel.org/pub/linux/libs/pam/library/Linux-PAM-1.1.3.tar.bz2

 * Create a sub-option in the Busybox Buildroot package to
   enable/disable PAM support. This option should select the PAM
   library package created at the previous step.

 * In package/busybox/busybox.mk, if PAM support is enabled, then tweak
   the Busybox configuration file, and add the dependencies on the PAM
   library.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] Problem compiling busybox with libpam
       [not found] <AANLkTi=SoMmj4_=FMZnJ3cYTyJcTj2ymizEOM9PGSO3r@mail.gmail.com>
  2011-01-26  2:09 ` [Buildroot] Problem compiling busybox with libpam Spider
@ 2011-01-26 11:35 ` Peter Korsgaard
  2011-01-26 13:10   ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2011-01-26 11:35 UTC (permalink / raw)
  To: buildroot

>>>>> "Spider" == Spider  <spiderwebmail@gmail.com> writes:

Hi,

 Spider> I was using buildroot to compile busybox and got the following error
 Spider> when I add libpam to "make busybox-menuconfig".  (The output is
 Spider> below).
 Spider> How can I get libpam to compile without this errors? If I "make clean"
 Spider> and remake everything from scratch will it work? (I am avoiding this
 Spider> because of the time to compile and fear of configuration changes)

 Spider> I searched for a similar problem but didnt find anything on
 Spider> documentation.

There's no pam support in uClibc/buildroot, so this can only work if you
use an external glibc toolchain with pam support.

Please follow up on the buildroot list rather than here on busybox.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Problem compiling busybox with libpam
  2011-01-26 11:35 ` Peter Korsgaard
@ 2011-01-26 13:10   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-01-26 13:10 UTC (permalink / raw)
  To: buildroot

On Wed, 26 Jan 2011 12:35:28 +0100
Peter Korsgaard <jacmet@sunsite.dk> wrote:

> There's no pam support in uClibc/buildroot, so this can only work if you
> use an external glibc toolchain with pam support.

Hum, I'm not familiar at all with PAM, but it looks like it's a separate
library from the C library. At least on Debian systems,
security/pam_*.h are coming from libpam0g-dev, and the library is in
libpam0g, both of which are coming from the Linux-PAM project it seems.

How does it relate to the choosen C library ?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2011-01-26 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTi=SoMmj4_=FMZnJ3cYTyJcTj2ymizEOM9PGSO3r@mail.gmail.com>
2011-01-26  2:09 ` [Buildroot] Problem compiling busybox with libpam Spider
2011-01-26  7:39   ` Thomas Petazzoni
2011-01-26 11:35 ` Peter Korsgaard
2011-01-26 13:10   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.