From owner-freebsd-ports@FreeBSD.ORG Sun Jun 15 16:37:46 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43BDB1065673 for ; Sun, 15 Jun 2008 16:37:46 +0000 (UTC) (envelope-from aurelien.larcher@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 0310B8FC18 for ; Sun, 15 Jun 2008 16:37:45 +0000 (UTC) (envelope-from aurelien.larcher@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2395121ywe.13 for ; Sun, 15 Jun 2008 09:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=E7A0CJpoMbNjDmJQB7Fr1xdbVTM8wgKgao+BHjocE28=; b=RvzTOF4rHpIBgLGNBJ6Jdw7ifIyYsrK2H7hTnnO9J/tkVhLn8e42CjytNPitxbjIaB ZlkAjGkM0TWJZKHzSfeduNi1+qZ9SlNkKt2FW9i5Wv5Jzr2zfxRT9Hng1ztAZFVK2s+1 dB/q8UMSTNklgp4P963+61RislGfyZgd/6ZOg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=YB2PWcdKNhsYpJ9qozx1oTricdD1HeTV3HtNuYStSmiVb+F/w+DaUpIudFMrO2JMZA CgS4V9rz+xuxLgNUrL7ixndo9JJE1KIvjXeiSfyk2fAZIrbn9xzeMPR7wPc5fxH3gswU PvNs/wQ8Xn6/MgdO70zwFbRKLS2jJxbx8LODA= Received: by 10.151.11.19 with SMTP id o19mr8904664ybi.207.1213546201790; Sun, 15 Jun 2008 09:10:01 -0700 (PDT) Received: by 10.150.148.1 with HTTP; Sun, 15 Jun 2008 09:10:01 -0700 (PDT) Message-ID: <6ce4973f0806150910n666ff052w9ff623167eec3de9@mail.gmail.com> Date: Sun, 15 Jun 2008 18:10:01 +0200 From: "=?ISO-8859-1?Q?Aur=E9lien_Larcher?=" To: ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: PETSc and external package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2008 16:37:46 -0000 hello, I have an amd64 server thats runs freebsd 7.0 and I tried to use petsc from the ports. The port is build ok and with blocksolve95, umfpack but when i try to link petsc libraries when building an executable the linking failed with "undefined reference to" errors. The references are all related to the blocksolve95 static library. This is a weird behaviour to me. I've read that static libraries have to be build with the -fPIC option on amd64. Since blocksolve95 is not build with -fPIC is it possible that the linker discard the libraries not built with fPIC ? Moreover when linking a static library (blocksolve95) to build a shared library (pelicans) an error says that relocation R_X64_64_32 is not allowed and libs must be compiled with fPIC Have you any insight ? Thank you Aurelien