mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <idunham@lavabit.com>
To: musl@lists.openwall.com
Subject: Re: make -i with linux-pam
Date: Mon, 14 May 2012 17:09:31 -0700	[thread overview]
Message-ID: <20120514170931.5ebe58cf@newbook> (raw)
In-Reply-To: <20120514041106.GS163@brightrain.aerifal.cx>

On Mon, 14 May 2012 00:11:06 -0400
Rich Felker <dalias@aerifal.cx> wrote:

> On Sun, May 13, 2012 at 08:58:24PM -0700, Isaac Dunham wrote:
> > .libs/pam_group.o: In function `check_account':
> > pam_group.c:(.text+0x12fe): undefined reference to `innetgr'
> 
innetgr stub attached as patch.

> 
> Basically the problems break down into:
> - missing crypt_r public interface
> - missing NIS/RPC
> - missing rhosts stuff
> - missing netgroup stuff
> - a few minor header file issues

Apparently also logwtmp is missing:
====
Making all in pam_lastlog
make[3]: Entering directory
`/home/ibid/misc/src/musl/Linux-PAM-1.1.3/modules/pam_lastlog' /bin/sh ../../libtool
--tag=CC   --mode=link musl-gcc -I../../libpam/include
-I../../libpamc/include -fno-stack-protector -D_GNU_SOURCE
-D_BSD_SOURCE -I/opt/musl/linux-headers/include -I/opt/musl/pincl
-lssp_nonshared -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual
-Wmissing-declarations -Wmissing-prototypes -Wpointer-arith
-Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow
-no-undefined -avoid-version -module
-Wl,--version-script=./../modules.map -Wl,--as-needed
-Wl,--no-undefined -Wl,-O1 -o pam_lastlog.la
-rpath /opt/musl/lib/security pam_lastlog.lo -L../../libpam -lpam
-lutil libtool: link: musl-gcc -shared  .libs/pam_lastlog.o
-Wl,-rpath -Wl,/home/ibid/misc/src/musl/Linux-PAM-1.1.3/libpam/.libs
-Wl,-rpath -Wl,/opt/musl/lib
-L/home/ibid/misc/src/musl/Linux-PAM-1.1.3/libpam /home/ibid/misc/src/musl/Linux-PAM-1.1.3/libpam/.libs/libpam.so
-lssp_nonshared -ldl -lutil  -Wl,--version-script=./../modules.map
-Wl,--as-needed -Wl,--no-undefined -Wl,-O1   -Wl,-soname
-Wl,pam_lastlog.so -o .libs/pam_lastlog.so .libs/pam_lastlog.o: In
function `last_login_write': pam_lastlog.c:(.text+0x9ea): undefined
reference to `logwtmp' .libs/pam_lastlog.o: In function
`pam_sm_close_session': pam_lastlog.c:(.text+0x11b4): undefined
reference to `logwtmp' collect2: ld returned 1 exit status make[3]: ***
[pam_lastlog.la] Error 1 make[3]: Leaving directory
`/home/ibid/misc/src/musl/Linux-PAM-1.1.3/modules/pam_lastlog'

====
logwtmp would be _BSD_SOURCE || _GNU_SOURCE

Due to what logwtmp does (construct a wtmp log entry, then add to the
system logfile), a stub doesn't sound sensible unless you
actually want all logins to go unrecorded...however, it looks close to
trivial to actually implement.
The BSDs implement this with strncpy--should an implementation for
musl use XOPEN or GNU functions only, or are strn* acceptable?



  parent reply	other threads:[~2012-05-15  0:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14  3:58 Isaac Dunham
2012-05-14  4:11 ` Rich Felker
2012-05-14 18:01   ` Isaac Dunham
2012-05-14 18:17     ` Rich Felker
2012-05-15  0:09   ` Isaac Dunham [this message]
2012-05-16  3:24     ` Rich Felker
2012-05-16 14:23       ` Isaac Dunham
2012-05-21 19:12       ` aep
2012-05-21 19:28         ` Rich Felker
2012-05-21 20:24           ` aep
2012-05-21 20:55             ` Rich Felker
2012-05-21 21:08               ` aep
2012-05-21 21:20                 ` Rich Felker
2012-05-22 16:51             ` Christian Neukirchen
2012-05-22 17:50               ` Rich Felker
2012-05-22 18:22               ` aep
2012-05-22 18:28                 ` Rich Felker
2012-05-22 18:45                   ` aep
2012-05-22 20:00                     ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120514170931.5ebe58cf@newbook \
    --to=idunham@lavabit.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).