Subject: libpam error cross-compiling for hpcsh
To: None <current-users@NetBSD.org>
From: Matt Dainty <matt@bodgit-n-scarper.com>
List: current-users
Date: 01/03/2005 15:31:08
I've hit the attached error cross-compiling for hpcsh on Linux/i386
(Fedora Core 2):

src/dist/openpam/lib/openpam_log.c(81): warning: illegal combination of
pointer and integer, op = [123]

Sources as of yesterday evening, I've successfully cross-compiled
hpcmips from the same tree.

Matt

...
--- openpam_log.o ---
--- openpam_get_option.so ---
rm -f openpam_get_option.so.tmp
--- openpam_log.o ---
#   compile  libpam/openpam_log.o
/home/matt/netbsd/tools/bin/shle--netbsdelf-gcc -O -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
/home/matt/netbsd/destdir.hpcsh/usr/include -c   
/home/matt/netbsd/src/dist/openpam/lib/openpam_log.c -o
openpam_log.o.tmp
--- openpam_log.so ---
--- openpam_load.so ---
/home/matt/netbsd/tools/bin/shle--netbsdelf-ld -x -r openpam_load.so.tmp
-o openpam_load.so
rm -f openpam_load.so.tmp
--- openpam_log.so ---
#   compile  libpam/openpam_log.so
/home/matt/netbsd/tools/bin/shle--netbsdelf-gcc -O -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
/home/matt/netbsd/destdir.hpcsh/usr/include -c    -DNO_STATIC_MODULES
-fPIC -DPIC /home/matt/netbsd/src/dist/openpam/lib/openpam_log.c -o
openpam_log.so.tmp
--- openpam_log.ln ---
#   compile  libpam/openpam_log.ln
CC=/home/matt/netbsd/tools/bin/shle--netbsdelf-gcc
/home/matt/netbsd/tools/bin/shle--netbsdelf-lint -chapbxzF -Sw -X 233 -d
/home/matt/netbsd/destdir.hpcsh/usr/include  -DLIB_MAJ=0
-DOPENPAM_STATIC_MODULES -DOPENPAM_STATIC_MODULE    -i
/home/matt/netbsd/src/dist/openpam/lib/openpam_log.c
--- openpam_log.o ---
/home/matt/netbsd/tools/bin/shle--netbsdelf-ld -x -r openpam_log.o.tmp
-o openpam_log.o
rm -f openpam_log.o.tmp
--- openpam_log.ln ---
/home/matt/netbsd/src/dist/openpam/lib/openpam_log.c(81): warning:
illegal combination of pointer and integer, op = [123]
*** [openpam_log.ln] Error code 1
--- openpam_log.so ---
/home/matt/netbsd/tools/bin/shle--netbsdelf-ld -x -r openpam_log.so.tmp
-o openpam_log.so
rm -f openpam_log.so.tmp
1 error
  
nbmake: stopped in /home/matt/netbsd/src/lib/libpam/libpam
*** [dependall] Error code 2
1 error
  
nbmake: stopped in /home/matt/netbsd/src/lib/libpam/libpam
*** [dependall-libpam] Error code 2
1 error