[Clc-crux64] linux-PAM 32 & VMware GSX Server

David M. Strang dstrang at shellpower.net
Thu Nov 10 17:09:36 UTC 2005


Hey all --

I'm new to Crux64 as of yesterday, at present I'm using Daniel Mueller's 
(STABLE) image. I'm trying to install VMware GSX Server.... emphasis on 
trying, it's giving me a real hard time. I've gotten the base to install, 
however vmware-authd needs PAM... more specifically, 32bit PAM. I've sluffed 
together the following Pkgfile:

name=Linux-PAM
version=0.81
release=1
source=(http://www.kernel.org/pub/linux/libs/pam/pre/library/$name-$version.tar.gz)

build() {
        export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
        export CFLAGS="-m32 -O2 -march=i686 -pipe"
        export CXXFLAGS="-m32 -O2 -march=i686 -pipe"
        export LDFLAGS="-L/usr/lib32 $LDFLAGS"

        cd $name-$version
        linux32 
./configure --prefix=/usr --libdir=/usr/lib32 --enable-fakeroot="$PKG"
        linux32 make
        make install
}

It almost works... except for this:

make[2]: Entering directory 
`/usr/ports/my_ports/linux-pam32/work/src/Linux-PAM-0.81/modules/pam_access'
mkdir -p ./dynamic
gcc -Wall -Wwrite-strings       -Wpointer-arith -Wcast-qual -Wcast-align     
    -Wstrict-prototypes -Wmissing-prototypes        -Wnested-externs -Winline 
 -Wshadow -Dlinux -m32 -O2 -march=i686 -pipe   -I./include -I/usr/ports/my_ports/linux-pam32/work/src/Linux-PAM-0.81/libpam/include 
 -I/usr/ports/my_ports/linux-pam32/work/src/Linux-PAM-0.81 -I/usr/ports/my_ports/linux-pam32/work/src/Linux-PAM-0.81/libpamc/include 
  -fPIC -DDEFAULT_CONF_FILE=\"/usr/etc/security/access.conf\" -I../pammodutil/include 
 -DPAM_DYNAMIC  -c pam_access.c -o dynamic/pam_access.o
gcc -shared -L/usr/lib32  -o pam_access.so 
dynamic/pam_access.o -lnsl -lc -L../pammodutil -lpammodutil -L../../libpam -lpam
/usr/bin/ld: skipping incompatible /usr/lib32/libnsl.so when searching 
for -lnsl
/usr/bin/ld: skipping incompatible /usr/lib32/libnsl.a when searching 
for -lnsl
/usr/bin/ld: skipping incompatible /usr/lib32/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib32/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible ../pammodutil/libpammodutil.a when 
searching for -lpammodutil
/usr/bin/ld: cannot find -lpammodutil
collect2: ld returned 1 exit status
make[2]: *** [pam_access.so] Error 1
make[2]: Leaving directory 
`/usr/ports/my_ports/linux-pam32/work/src/Linux-PAM-0.81/modules/pam_access'
make[1]: *** [all] Error 1
make[1]: Leaving directory 
`/usr/ports/my_ports/linux-pam32/work/src/Linux-PAM-0.81/modules'
make: *** [modules] Error 2
=======> ERROR: Building 
'/usr/ports/my_ports/linux-pam32/Linux-PAM#0.81-1.pkg.tar.gz' failed.

Also, throught the build log I'm seeing these messages...

/usr/bin/ld: skipping incompatible /usr/lib32/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib32/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib32/libdl.so when searching 
for -ldl
/usr/bin/ld: skipping incompatible /usr/lib32/libdl.a when searching 
for -ldl
/usr/bin/ld: skipping incompatible /usr/lib32/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib32/libc.a when searching for -lc
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_item.o' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_strerror.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_end.o' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_start.o' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_data.o' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_delay.o' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_dispatch.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_handlers.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_misc.o' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_account.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_auth.o' 
is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_prelude.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_session.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file 
`dynamic/pam_password.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_env.o' is 
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `dynamic/pam_log.o' is 
incompatible with i386:x86-64 output


Obviously I'm missing something... it's getting half confused between 32 / 
64 bit. Any suggestions would be greatly appreciated.

-- David M. Strang




More information about the crux64 mailing list