Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Hardened (http://www.linux-archive.org/gentoo-hardened/)
-   -   Problems with re-emerging openssh (http://www.linux-archive.org/gentoo-hardened/545533-problems-re-emerging-openssh.html)

nert 06-28-2011 01:47 PM

Problems with re-emerging openssh
 
Hello everybody,

I use hardened gentoo, now with disabled grsecurity, and I can't emerge openssh because it is unable to find libpam even though it really is there (if you ask why to reemerge, well I just want to do emerge -e @world with new versions of everything). I would file a bugreport but I haven't done that before and I would like to be sure it's not my machine that causes the problem. In attachments, there are all the things you should need, but if something is missing, I'll send whatever you say (I hope I'll erase all passwords there :) ). This is just the simplest part from what happened, for full story you can skip to the last paragraph.

This is the actual error:
checking for pam_set_item in -lpam... no
configure: error: *** libpam missing

The full story: I am using Gentoo for a few years now and I was able to help myself out with all the passive support available (google, man/info pages etc.) but recently I've stumbled upon a weird problem that seem unsolvable for me, so I'm trying to write to you guys as my first try of getting any active help. Everything worked well until I tried to install qemu on one machine. The installation failed on searching for libraries that were actually there, but ld reported them missing. I realised, that when emerging qemu on x86_64 machine, I should just try to emulate x86_64 (and not i386 as I tried for the first time) and so I switched to x86_64 in /etc/make.conf and everything went well. I suppose, that the error message should have said something about incompatible library version (non-compatible ELF class or something), I guess. After this problem occurred, I had the same libraries missing while emerging different package that had nothing to do with any architecture stuff. I was using ccache that time and I desperately wanted to get the package installed, so I tried to compile it myself (it worked) and tried to compile it after I established the portage environment (it didn't work). So I straced the command in both cases and with the environment it used ccache, so I disabled ccache and it worked. However after cleaning the ccache and enabling it back, it didn't work again. Because that didn't bother me too much, I left the ccache disabled and went on. Now I had new error with libraries, this time with openssh. The package failed in the configuration phase while searching for pam_set_item in -lpam. When I tried to compile the same thing (testing the symbol), it compiled correctly and it didn't matter if I was in clean environment or in the one given by portage. I didn't know what to do. After one day of googling, I tried lots of possibilities and nothing helped. I tried to emerge it with ccache again and it gave me error with openssl (cannot find openssl libcrypto). After checking that libcrypto is on this system, I reemerged openssl and it didn't help. I disabled ccache and I was still stuck with this openssl libcrypto error. As a last resort, I rebooted (I really did that :'( ) and I am back with the -lpam error. Everything else (from what I tried) works great. I'm not sure if I should file a bug because I haven't done that before either (but I created my account there today). So please if anyone can guide me to some path, I'd be very grateful.

Thanks anyone who answers in advance.

app-shells/bash: 4.2_p10
dev-lang/python: 2.7.2, 3.2
dev-util/ccache: 3.1.5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1-r1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.5.2
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc: 2.13-r2
Repositories:

gentoo
location: /usr/portage
sync: rsync://rsync.europe.gentoo.org/gentoo-portage
priority: -1000

ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="2G"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
EDITOR="emacs"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=${2#sftp://} ; host=${x%%/*} ; port=${host##*:} ; host=${host%:*} ; [[ ${host} = ${port} ]] && port=22 ; exec sftp -P ${port} "${host}:/${x#*/}" "$1"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=${2#ssh://} ; host=${x%%/*} ; port=${host##*:} ; host=${host%:*} ; [[ ${host} = ${port} ]] && port=22 ; exec rsync --rsh="ssh -p${port}" -avP "${host}:/${x#*/}" "$1"" rsync "${DISTDIR}/${FILE}" "${URI}""
FFLAGS=""
GCC_SPECS=""
GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo ftp://gentoo.mirror.dkm.cz/pub/gentoo rsync://gentoo.mirror.dkm.cz/pub/gentoo ftp://gentoo.mirror.web4u.cz/ http://gentoo.mirror.web4u.cz/ http://gentoo.supp.name/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://distfiles.gentoo.org"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/info:/usr/share/info/emacs-23"
INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:s o=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05; 37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw =30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tg z=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma =01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01; 31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz =01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=0 1;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;3 1:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31: *.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*. rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bm p=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga= 01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=0 1;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01 ;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01; 35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35 :*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:* .nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rm vb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv =01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01; 35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35 :*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:* .ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:* .log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.a u=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mk a=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=0 0;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00; 36:*.xspf=00;36:"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2"
PHP_TARGETS="php5-3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_MAILFROM="glados@kentus.net"
PORTAGE_ELOG_MAILSUBJECT="[portage] ${PACKAGE} emerged on ${HOST} with messages"
PORTAGE_ELOG_MAILURI="***@gmail.com ***@***:***@smtp.gmail.com:100587"
PORTAGE_ELOG_SYSTEM="save save_summary mail_summary syslog:warn,error"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="5"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
QEMU_SOFTMMU_TARGETS=""
QEMU_USER_TARGETS="i386 x86_64"
RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=${2#ssh://} ; host=${x%%/*} ; port=${host##*:} ; host=${host%:*} ; [[ ${host} = ${port} ]] && port=22 ; exec rsync --rsh="ssh -p${port}" -avP "${host}:/${x#*/}" "$1"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="hardened multilib nptl nptlonly"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DRACUT_MODULES DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d "
VIDEO_CARDS="intel"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
_="/usr/bin/emerge"
Portage 2.1.10.3 (hardened/linux/amd64, gcc-4.5.2, glibc-2.13-r2, 2.6.39-hardened-r2 x86_64)
================================================== ===============
System Settings
================================================== ===============
System uname: Linux-2.6.39-hardened-r2-x86_64-Intel-R-_Atom-TM-_CPU_D510_@_1.66GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 28 Jun 2011 00:15:01 +0000
ccache version 3.1.5 [disabled]
USE="acl amd64 bash-completion berkdb bzip2 caps cli cracklib crypt cups cxx dri emacs gdbm git gnutls hardened iconv idn ipv6 justify lm_sensors lzma mmx modules mudflap multilib multiuser ncurses nls nptl nptlonly offensive openmp pam pcre perl pic pppd prediction python python3 rar readline romio sasl sensord session smp sqlite sse sse2 ssl subversion sysfs threads unicode urandom vi vim vt xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

================================================== ===============
Package Settings
================================================== ===============
USE="hpn (multilib) pam -X -X509 -kerberos -ldap -libedit (-selinux) -skey -static -tcpd"

net-misc/openssh-5.8_p2 was built with the following:

[ebuild R ] net-misc/openssh-5.8_p2 USE="hpn pam -X -X509 -kerberos -ldap -libedit (-selinux) -skey -static -tcpd"


All times are GMT. The time now is 11:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.