Modify

Opened 7 years ago

Closed 6 years ago

#8002 closed defect (fixed)

busybox fails to build if pam is selected

Reported by: Krisztian VASAS <iron@…> Owned by: nico
Priority: normal Milestone: Features Paradise
Component: base system Version: Backfire 10.03.1 RC2
Keywords: Cc:

Description

I selected to support PAM, busybox fails to build with this error:

  CC      loginutils/login.o
loginutils/login.c:22:31: error: security/pam_appl.h: No such file or directory
loginutils/login.c:23:31: error: security/pam_misc.h: No such file or directory
loginutils/login.c:24: error: variable 'conv' has initializer but incomplete type
loginutils/login.c:25: error: 'misc_conv' undeclared here (not in a function)
loginutils/login.c:25: warning: excess elements in struct initializer
loginutils/login.c:25: warning: (near initialization for 'conv')
loginutils/login.c:27: warning: excess elements in struct initializer
loginutils/login.c:27: warning: (near initialization for 'conv')
loginutils/login.c: In function 'login_main':
loginutils/login.c:292: error: 'pam_handle_t' undeclared (first use in this function)
loginutils/login.c:292: error: (Each undeclared identifier is reported only once
loginutils/login.c:292: error: for each function it appears in.)
loginutils/login.c:292: error: 'pamh' undeclared (first use in this function)
loginutils/login.c:293: warning: ISO C90 forbids mixed declarations and code
loginutils/login.c:355: warning: implicit declaration of function 'pam_start'
loginutils/login.c:356: error: 'PAM_SUCCESS' undeclared (first use in this function)
loginutils/login.c:361: warning: implicit declaration of function 'pam_set_item'
loginutils/login.c:361: error: 'PAM_TTY' undeclared (first use in this function)
loginutils/login.c:366: warning: implicit declaration of function 'pam_authenticate'
loginutils/login.c:376: warning: implicit declaration of function 'pam_acct_mgmt'
loginutils/login.c:385: warning: implicit declaration of function 'pam_get_item'
loginutils/login.c:385: error: 'PAM_USER' undeclared (first use in this function)
loginutils/login.c:399: warning: implicit declaration of function 'pam_open_session'
loginutils/login.c:404: warning: implicit declaration of function 'pam_setcred'
loginutils/login.c:404: error: 'PAM_ESTABLISH_CRED' undeclared (first use in this function)
loginutils/login.c:413: warning: implicit declaration of function 'pam_strerror'
loginutils/login.c:413: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
make[5]: *** [loginutils/login.o] Error 1
make[4]: *** [loginutils] Error 2
make[4]: Leaving directory `/home/iron/repos/openwrt/backfire/build_dir/target-i386_uClibc-0.9.30.3/busybox-1.15.3'
make[3]: *** [/home/iron/repos/openwrt/backfire/build_dir/target-i386_uClibc-0.9.30.3/busybox-1.15.3/.built] Error 2
make[3]: Leaving directory `/home/iron/repos/openwrt/backfire/package/busybox'
make[2]: *** [package/busybox/compile] Error 2
make[2]: Leaving directory `/home/iron/repos/openwrt/backfire'
make[1]: *** [/home/iron/repos/openwrt/backfire/staging_dir/target-i386_uClibc-0.9.30.3/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/iron/repos/openwrt/backfire'
make: *** [world] Error 2

Seems like detecting PAM dependency is not ok.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to accepted

Did you install libpam ?

$ scripts/feeds install -d m libpam

comment:2 Changed 6 years ago by nico

  • Milestone changed from Backfire 10.03.1 to Features Paradise

comment:3 Changed 6 years ago by nico

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [28549]: PAM support in busybox is now an "advanced configuration option (for developers)"

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.