Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2008 00:07:45 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        Matt Benjamin <matt@linuxbox.com>
Cc:        freebsd-afs@FreeBSD.org
Subject:   Re: OpenAFS on FreeBSD Progress (Works)
Message-ID:  <24975806@bs1.sp34.ru>
In-Reply-To: <493EB3EB.7000300@linuxbox.com> (Matt Benjamin's message of "Tue\, 09 Dec 2008 13\:07\:39 -0500")
References:  <493ACAC4.5020806@linuxbox.com> <12501719@bb.ipt.ru> <493D898C.1030609@linuxbox.com> <39213648@bb.ipt.ru> <493EB3EB.7000300@linuxbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Matt,

Matt Benjamin <matt@linuxbox.com> writes:

> Which patches from RT (#s) do you have?  For now, please attach any
> patch that we don't have.  I have OpenAFS compiling at amd64, in
> #123811,

I took the diff from this ticket and create patches based on it.

> and I thought it compiled at CURRENT (but it maybe stopped at
> some point),

I test ports with ports-mgmt/tinderbox. This program creates a vanilla
environment for building/packaging. The environment of the main system
don't influence testing.

> and will merge any reasonable change you have.

The first one is just like a diff for src/cf/osconf.m4:
ftp://ftp.ipt.ru/pub/tmp/openafs/files/patch-configure
Without this patch I got an error at amd64 build:
-----
...
cd picobj && cc -I. -I.  -I/work/a/ports/net/openafs/work/openafs-1.4.8/src/config -I/work/a/ports/net/openafs/work/openafs-1.4.8/include  -O2 -pipe   -c glue.c
+ cc -shared -o libafssetpag.so.1.0 picobj/setpag.o picobj/glue.o syscall.o
/usr/bin/ld: picobj/setpag.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
picobj/setpag.o: could not read symbols: Bad value
*** Error code 1
-----

The second patch (I called it a hack) deals with the absence of sgtty.h
since __FreeBSD_version=800039:
ftp://ftp.ipt.ru/pub/tmp/openafs/files/patch-curseswindows.c
A better way may be to use ifdefs here.
Without this patch I get an error at 8-CURRENT build:
-----
...
cd src && cd gtx && make all
...
cc  -O -I/work/a/ports/net/openafs/work/openafs-1.4.8/src/config -I. -I. -I/work/a/ports/net/openafs/work/openafs-1.4.8/include -I/work/a/ports/net/openafs/work/openafs-1.4.8/include/afs -I/work/a/ports/net/openafs/work/openafs-1.4.8/include/rx -I/work/a/ports/net/openafs/work/openafs-1.4.8 -I/work/a/ports/net/openafs/work/openafs-1.4.8/src -I/work/a/ports/net/openafs/work/openafs-1.4.8/src -O2 -pipe -fPIC  -c curseswindows.c
curseswindows.c:35:19: error: sgtty.h: No such file or directory
*** Error code 1
-----


WBR & HTH
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24975806>