Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236396 - net-misc/dropbear fails with "pam" and "static" useflags set
Summary: net-misc/dropbear fails with "pam" and "static" useflags set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 22:05 UTC by xo0ox
Modified: 2008-11-12 17:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,94.79 KB, text/plain)
2008-09-01 22:07 UTC, xo0ox
Details
sytem information (emerge--info,3.67 KB, text/plain)
2008-09-01 22:09 UTC, xo0ox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xo0ox 2008-09-01 22:05:31 UTC
If i emerge dropbear with "pam" and "static" useflags, it fails with "cannot find -lpam". If i only use one of these flags, everything works great.

I tested different versions of dropbear. I think this might be a problem with sys-libs/pam.

Reproducible: Always

Steps to Reproduce:
1. echo "net-misc/dropbear static pam">>/etc/portage/package.use
2. emerge net-misc/dropbear

Actual Results:  
x86_64-pc-linux-gnu-gcc -Wl,-O1 -static -o dbclient dbutil.o buffer.o dss.o bignum.o signkey.o rsa.o random.o queue.o atomicio.o compat.o  fake-rfc2553.o common-session.o packet.o common-algo.o common-kex.o common-channel.o common-chansession.o termcodes.o loginrec.o tcp-accept.o listener.o process-packet.o common-runopts.o circbuffer.o cli-algo.o cli-main.o cli-auth.o cli-authpasswd.o cli-kex.o cli-session.o cli-service.o cli-runopts.o cli-chansession.o cli-authpubkey.o cli-tcpfwd.o cli-channel.o cli-authinteract.o libtomcrypt/libtomcrypt.a libtommath/libtommath.a -lutil -lpam  -lcrypt
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpam
collect2: ld gab 1 als Ende-Status zurück
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpam
collect2: ld gab 1 als Ende-Status zurück
Comment 1 xo0ox 2008-09-01 22:07:24 UTC
Created attachment 164299 [details]
build.log
Comment 2 xo0ox 2008-09-01 22:09:36 UTC
Created attachment 164300 [details]
sytem information
Comment 3 Wormo (RETIRED) gentoo-dev 2008-09-02 06:51:30 UTC
I don't see how you can compile pam statically, PAM = Pluggable Authentication Modules -> authentication via dynamically loaded modules...

Probably dropbear should have a check that both flags are not enabled at the same time, and bail out if they are.
Comment 4 SpanKY gentoo-dev 2008-11-12 17:41:27 UTC
Wormo is right ... USE="static pam" is a garbage setting

dropbear-0.52 will outright reject such settings