[OpenAFS-devel] OpenBSD build

Derrick J Brashear shadow@dementia.org
Thu, 20 Oct 2005 19:31:12 -0400 (EDT)


On Mon, 17 Oct 2005, Jim Rees wrote:

> Any idea why src/sys no longer builds on OpenBSD from cvs head?

It wasn't obvious on first glance, I thought the dependancy would just 
cause it be touched on a bsd.

> Also, SHLIB_LINKER needs to be added to osconf.m4 for all the BSDs.

Someone who knows what it should be should add it, hopefully. Like, that's 
part of the port.

> 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