Return-Path: X-Original-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FDCACFB9 for ; Fri, 22 Jun 2012 08:02:12 +0000 (UTC) Received: (qmail 29917 invoked by uid 500); 22 Jun 2012 08:02:12 -0000 Delivered-To: apmail-incubator-celix-dev-archive@incubator.apache.org Received: (qmail 29871 invoked by uid 500); 22 Jun 2012 08:02:12 -0000 Mailing-List: contact celix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-dev@incubator.apache.org Received: (qmail 29851 invoked by uid 99); 22 Jun 2012 08:02:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 08:02:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of a.broekhuis@gmail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yw0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 08:02:06 +0000 Received: by yhjj56 with SMTP id j56so2448974yhj.6 for ; Fri, 22 Jun 2012 01:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9YLb1jm4XA1TLTVdt+XlAhsGZiIkq9JZT+Mj1GgwzQ0=; b=QZsA/h40Q1uiWzJXPCtVT8ft7x6jRvkowR3QeeO4OjUJL7icR5ug8CxwRg4KaLtGg3 y3vhIw0MLJhizv95GCMu44xmn+mXlEyoJZVPD3y1DOz1DNRvRIS0o8wj0NzGhPdUWgE/ 1CeoWmTiBlOhNoXVE6y/hkRB3BBGnQUdExOthTtpdb4/0zJqs0UbESj838P9rIpk367s Sxi8D81+ahlWWssStYm6aQAvs4RQ/pTKDj1cE4lmw5aB04ubs8GtjpczyvNHYzRkJgpb m3UcOlhRiFJ0P3XJZh//QHAvWKRqq7UQSpVKxlQ4j4RWS3tdLPXqyR867h+kOIKF5OR8 cmSA== MIME-Version: 1.0 Received: by 10.60.3.39 with SMTP id 7mr939826oez.4.1340352105340; Fri, 22 Jun 2012 01:01:45 -0700 (PDT) Received: by 10.182.32.2 with HTTP; Fri, 22 Jun 2012 01:01:45 -0700 (PDT) In-Reply-To: <4FE41DC8.20707@hupie.com> References: <4FE41DC8.20707@hupie.com> Date: Fri, 22 Jun 2012 10:01:45 +0200 Message-ID: Subject: Re: compiling fails on Fedora 17 x86_64 From: Alexander Broekhuis To: celix-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8f83ad2f1cdec104c30b0b11 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f83ad2f1cdec104c30b0b11 Content-Type: text/plain; charset=ISO-8859-1 Hi Ferry, /usr/bin/ld: ../utils/libremote_services_**utils.a(remote_services_utils.**c.o): >> relocation R_X86_64_PC32 against undefined symbol >> `bundleContext_getProperty' can not be used when making a shared object; >> recompile with -fPIC >> /usr/bin/ld: final link failed: Bad value >> collect2: error: ld returned 1 exit status >> make[2]: *** [remote_services/topology_**manager/libtopology_manager.**so] >> Error 1 >> make[1]: *** [remote_services/topology_**manager/CMakeFiles/topology_**manager.dir/all] >> Error 2 >> make: *** [all] Error 2 >> > At the moment I don't have a 64bit installation, so I can't test this myself. I'll install a system for this, because it should work. > > Since I know nothing of cmake, I wonder if someone can point me in the > right direction? I've tried looking up where the CFLAGS are defined but > could not find it. What you can try is to take some CMake script from the Dependency Manager CMake file. This checks if the system is Unix/Linux and 64bit, and then sets the PIC option. I've pasted it below this message. Also it might be convenient to disable several subdirectories, currently everything is build, making it difficult to track and fix problems. See [1] for more details on this. I'm working on a quick and simple fix which will do the job for now. I hope this helps, if not, please send a reply! [1]: http://incubator.markmail.org/thread/ckeecjio44244knj ----------- # Add -fPIC for x86_64 Unix platforms; this lib will be linked to a shared lib if(UNIX AND NOT WIN32) find_program(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin ) if(CMAKE_UNAME) exec_program(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR) set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR} CACHE INTERNAL "processor type (i386 and x86_64)") if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") add_definitions(-fPIC) endif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") endif(CMAKE_UNAME) endif(UNIX AND NOT WIN32) > > > -- > Ferry Huberts > > -- Met vriendelijke groet, Alexander Broekhuis --e89a8f83ad2f1cdec104c30b0b11--