Subject: libpam cross build.sh (on i386) for sparc64 fails
To: None <current-users@netbsd.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: current-users
Date: 12/30/2004 13:17:14
Hi!

... with:

#   compile  libpam/openpam_load.so
/usr/toolchain-sparc64/bin/sparc64--netbsd-gcc -O2 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings  -Werror    -DLIB_MAJ=0
-DOPENPAM_STATIC_MODULES -DOPENPAM_STATIC_MODULE   -nostdinc -isystem
/usr/sparc64-dest/usr/include -c    -DNO_STATIC_MODULES -fPIC -DPIC
/usr/src/dist/openpam/lib/openpam_load.c -o openpam_load.so.tmp
/usr/toolchain-sparc64/bin/sparc64--netbsd-ld -x -r
openpam_load.so.tmp -o openpam_load.so
rm -f openpam_load.so.tmp
#   compile  libpam/openpam_log.ln
CC=/usr/toolchain-sparc64/bin/sparc64--netbsd-gcc
/usr/toolchain-sparc64/bin/sparc64--netbsd-lint -chapbxzF -Sw -X 233
-d /usr/sparc64-dest/usr/include  -DLIB_MAJ=0 -DOPENPAM_STATIC_MODULES
-DOPENPAM_STATIC_MODULE    -i /usr/src/dist/openpam/lib/openpam_log.c
/usr/src/dist/openpam/lib/openpam_log.c(81): warning: expression has
null effect [129]

*** Failed target:  openpam_log.ln
*** Failed command: CC=/usr/toolchain-sparc64/bin/sparc64--netbsd-gcc
    /usr/toolchain-sparc64/bin/sparc64--netbsd-lint -chapbxzF -Sw -X
    233 -d /usr/sparc64-dest/usr/include -DLIB_MAJ=0
    -DOPENPAM_STATIC_MODULES -DOPENPAM_STATIC_MODULE -i
    /usr/src/dist/openpam/lib/openpam_log.c
*** Error code 1

Stop.