From owner-freebsd-questions@FreeBSD.ORG Fri Aug 13 18:12:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17AD2106566B for ; Fri, 13 Aug 2010 18:12:17 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 029AC8FC16 for ; Fri, 13 Aug 2010 18:12:16 +0000 (UTC) Received: from eagle.syrec.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id o7DICGdj076429; Fri, 13 Aug 2010 11:12:16 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4C658B00.4050901@rawbw.com> Date: Fri, 13 Aug 2010 11:12:16 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.10) Gecko/20100630 Thunderbird/3.0.5 MIME-Version: 1.0 To: Anonymous References: <4C656E8F.8090105@rawbw.com> <20100813162429.GE18896@dan.emsphone.com> <4C65852B.807@rawbw.com> <868w4av1hp.fsf@gmail.com> In-Reply-To: <868w4av1hp.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Documentation on how to build 32bit applications on amd64? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 18:12:17 -0000 On 08/13/2010 10:58, Anonymous wrote: > I guess machine-dependent headers are involved. > > $ cc -m32 -B/usr/lib32 a.c > $ ./a.out > match: off=0 so=3 eo=0 > $ ln -s /usr/src/sys/i386/include machine > $ cc -m32 -B/usr/lib32 -isystem. a.c > $ ./a.out > match: off=0 so=3 eo=4 > match: off=4 so=3 eo=4 > > Same thing is happening for mmap() > http://docs.freebsd.org/cgi/mid.cgi?20100524.134955.2300883222251175323.okuno.kohji > But what is the general solution for this problem? Symbolic link that you created only exists in one local directory. Yuri