[OpenAFS-devel] OpenBSD build
Jim Rees
rees@umich.edu
Mon, 17 Oct 2005 14:03:19 -0400
Any idea why src/sys no longer builds on OpenBSD from cvs head?
Also, SHLIB_LINKER needs to be added to osconf.m4 for all the BSDs.
% cd src/sys
% make
case i386_obsd36 in rs_aix* ) /afs/umich.edu/user/r/e/rees/afs/b/src/pinstall/pinstall afs.exp /afs/umich.edu/user/r/e/rees/afs/b/include/afs/afs.exp ;; esac
case i386_obsd36 in rs_aix* ) /afs/umich.edu/user/r/e/rees/afs/b/src/pinstall/pinstall afs.exp /afs/umich.edu/user/r/e/rees/afs/b/lib/afs.exp ;; esac
rm -f picobj/setpag.c
cp ./setpag.c picobj/setpag.c
cd picobj && cc -I. -I. -I/afs/umich.edu/user/r/e/rees/afs/b/src/config -I/afs/umich.edu/user/r/e/rees/afs/b/include -O2 -fpic -c setpag.c
rm -f picobj/glue.c
cp ./glue.c picobj/glue.c
cd picobj && cc -I. -I. -I/afs/umich.edu/user/r/e/rees/afs/b/src/config -I/afs/umich.edu/user/r/e/rees/afs/b/include -O2 -fpic -c glue.c
case i386_obsd36 in *_linux*) cc -shared -Wl,-h,libafssetpag.so.1 -o libafssetpag.so.1.0 -Wl,--version-script=afssetpag.map picobj/setpag.o picobj/glue.o syscall.o;; rs_aix4*) cc -shared -o libafssetpag.so.1.0 picobj/setpag.o picobj/glue.o syscall.o -bE:afssetpag.exp;; sun*_5*) cc -shared -h libafssetpag.so.1 -Wl,-M afssetpag.map -o libafssetpag.so.1.0 picobj/setpag.o picobj/glue.o syscall.o;; *) cc -shared -o libafssetpag.so.1.0 picobj/setpag.o picobj/glue.o syscall.o;; esac
syscall.o: file not recognized: File truncated
collect2: ld returned 1 exit status
*** Error code 1
Stop in /afs/citi.umich.edu/projects/openafs/i386_obsd36/src/sys (line 68 of Makefile).
% ls -l syscall.o
-rw-r--r-- 1 rees staff 0 Oct 17 14:01 syscall.o